0.2.1 • Published 6 years ago
params-frontend v0.2.1
Params-frontend
Frontend for params-service
Description
This project is a micro frontend service, developed to work embedded to base-web-service.
Getting started
Install dependencies
- use
yarnornpm install
Development
- Run the base-web-service project and make sure that this micro-service is located at the
package.jsonfile of the base-web-service - Start coding. you don't need to run anything more here.
Testing
- with base-web-service running.
- run cypress
With yarn
yarn run cypress open
With npm
npx cypress opennote: npx is included with npm > v5.2 or can be installed separately.
Note: you can run a specefic test with this commands:
With yarn
yarn run cypress run --spec cypress/path/to/spec
With npm
npx cypress run --spec cypress/path/to/spec
See the README of base-web-service for more information.
Publish package
When you finish the code, you will need to compile the package before publish to npm. So, follow this steps to public succesfully.
Steps
- Make sure to commit all changes.
- Run:
npm run publish:npm(to compile) - After compile is done!, you will see a dist folder with the compile folders.
- Run:
npm login(if you are not log in) - Run:
npm version x.x.x(To change the current version, example: 1.2.1) - Run:
npm publish(Finally publish)