mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
UI kmip acceptance (#7129)
* change the story blueprint so that using -ir will generate a story in the expected place for in-repo addons and engines * update gen-story-md script to do output md to stories folder inside of in-repo addons and engines * update storybook config to look for story files in /lib * add story for list-view component * add list view page object * add kmip page objects and tests * update storybook commands in the README * split tests up more * update var name in storybook
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
#!/usr/bin/env node
|
||||
/* eslint-disable */
|
||||
// run this script via yarn in the ui directory:
|
||||
// yarn gen-story-md some-component
|
||||
//
|
||||
// or if the story is for a component in an in-repo-addon or an engine:
|
||||
// yarn gen-story-md some-component name-of-engine
|
||||
|
||||
const fs = require('fs');
|
||||
const jsdoc2md = require('jsdoc-to-markdown');
|
||||
var args = process.argv.slice(2);
|
||||
@@ -8,7 +14,8 @@ const addonOrEngine = args[1];
|
||||
const inputFile = addonOrEngine
|
||||
? `lib/${addonOrEngine}/addon/components/${name}.js`
|
||||
: `app/components/${name}.js`;
|
||||
const outputFile = `stories/${name}.md`;
|
||||
const outputFile = addonOrEngine ? `lib/${addonOrEngine}/stories/${name}.md` : `stories/${name}.md`;
|
||||
|
||||
const component = name
|
||||
.split('-')
|
||||
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
|
||||
Reference in New Issue
Block a user