Examples and Exercises
For install dependencies use:
- for npm client
$ npm install
- for yarn client
$ yarn
For build the project, you need run this script:
- for npm client
$ npm run build
- for yarn client
$ yarn build
For develop the project, you need run this script:
- for npm client
$ npm run dev
- for yarn client
$ yarn dev
For run production the project, you need run this script:
- for npm client
$ npm run prod
- for yarn client
$ yarn prod
This command trigger this commands:
-
npm run prebuild -
npm run build -
npm run preprod -
npm run serveor
-
yarn prebuild -
yarn build -
yarn preprod -
yarn serve
The server used in production, is a http-server
For deploy the project, you need run this script:
- for npm client
$ npm run deploy
- for yarn client
$ yarn deploy