-
Notifications
You must be signed in to change notification settings - Fork 11
Available Scripts
npm install
Installs project dependencies.
npm start component-name
Starts the development server with webpack.
npm test
or npm test component-name
Runs tests that depend on the DOM using Chrome Headless and generates a coverage report. If a component name is passed as parameter, the tests will run for that specific component but the coverage report will not be generated.
npm run test-debug
or npm run test-debug component-name
Runs tests that depend on the DOM using Chrome. If a component name is passed as parameter, the tests will run for that specific component.
npm run spec
or npm run spec component-name
Runs tests that do not depend on the DOM using Mocha and generates a coverage report. If a component name is passed as parameter, the tests will run for that specific component but the coverage report will not be generated.
npm run build
or npm run build component-name
Generates the distribution folders of all components. If a component name is passed as parameter, it only generates the distribution folder for that specific component.
npm run server
or npm run server component-name
Starts a static server, allowing you to navigate through stand-alone, browser-specific versions of all components. If a component name is passed as parameter, the server will open on that component's folder, otherwise, it will open on the project's root folder.
Note that this command depends on npm run build
to be run first, in order to generate the components' distribution files.
By appending ?es=6
or ?es=5
to the end of URL, you can choose which EcmaScript version is used by the component (either 5 or 6 are allowed).