add scripts for testing locally consul-ui-toolkit (#16794)
This commit is contained in:
parent
baa1fd3cd6
commit
648f16b4fc
|
@ -19,6 +19,7 @@
|
||||||
/npm-debug.log*
|
/npm-debug.log*
|
||||||
/testem.log
|
/testem.log
|
||||||
/yarn-error.log
|
/yarn-error.log
|
||||||
|
/yalc.lock
|
||||||
|
|
||||||
# ember-try
|
# ember-try
|
||||||
/.node_modules.ember-try/
|
/.node_modules.ember-try/
|
||||||
|
|
|
@ -160,6 +160,13 @@ OSS only tests can also be run using:
|
||||||
|
|
||||||
See `.eslintrc.js` and `.eslintignore` for specific configuration.
|
See `.eslintrc.js` and `.eslintignore` for specific configuration.
|
||||||
|
|
||||||
|
### Testing local changes to `@hashicorp/consul-ui-toolkit`
|
||||||
|
|
||||||
|
| Command | Description |
|
||||||
|
|------------------------|----------------------------------------------------------------------|
|
||||||
|
| `yarn toolkit:link` | Similar to `npm link` it adds the dependency locally from yalc store |
|
||||||
|
| `yarn toolkit:remove"` | It will remove package info from package.json and yarn.lock file |
|
||||||
|
|
||||||
### Building
|
### Building
|
||||||
|
|
||||||
* `make build` builds the UI for production usage (env=production)
|
* `make build` builds the UI for production usage (env=production)
|
||||||
|
|
|
@ -38,6 +38,8 @@
|
||||||
"test:coverage": "COVERAGE=true ember test --environment test --filter=Unit --test-port=${EMBER_TEST_PORT:-7357}",
|
"test:coverage": "COVERAGE=true ember test --environment test --filter=Unit --test-port=${EMBER_TEST_PORT:-7357}",
|
||||||
"test:coverage:ci": "COVERAGE=true ember test --environment test --filter=Unit --path dist --test-port=${EMBER_TEST_PORT:-7357}",
|
"test:coverage:ci": "COVERAGE=true ember test --environment test --filter=Unit --path dist --test-port=${EMBER_TEST_PORT:-7357}",
|
||||||
"test:coverage:view": "COVERAGE=true ember test --server --environment test --filter=Unit --test-port=${EMBER_TEST_PORT:-7357}",
|
"test:coverage:view": "COVERAGE=true ember test --server --environment test --filter=Unit --test-port=${EMBER_TEST_PORT:-7357}",
|
||||||
|
"toolkit:link": "yalc link @hashicorp/consul-ui-toolkit",
|
||||||
|
"toolkit:remove": "yalc remove @hashicorp/consul-ui-toolkit",
|
||||||
"steps:list": "node ./lib/commands/bin/list.js",
|
"steps:list": "node ./lib/commands/bin/list.js",
|
||||||
"storybook": "start-storybook -p 6006 -s dist",
|
"storybook": "start-storybook -p 6006 -s dist",
|
||||||
"build-storybook": "build-storybook -s dist"
|
"build-storybook": "build-storybook -s dist"
|
||||||
|
|
Loading…
Reference in New Issue