@smag-web-front/smag-web-legacy-vue-components
v0.15.0
Published
## Project setup
Downloads
223
Readme
smag.web.legacy.vue.components
Project setup
You need to create an access token on your Gitlab user : https://docs.gitlab.com/ee/user/packages/npm_registry/#authenticate-with-a-personal-access-token-or-deploy-token
npm config set //gitlab.infra.smag.tech/api/v4/packages/npm/:_authToken $YOUR_TOKEN
npm install
Project setup with docker
The dev stack of this project is using docker
Create and start the stack
cd docker
bash stack.sh dev up -d
Enter in the docker stack
docker exec -ti web_legacy_vue_components sh
Exit the docker stack
exit
Remove the stack
cd docker
bash stack.sh dev down
Stop the running stack
cd docker
bash stack.sh dev stop
Start the stopped stack
cd docker
bash stack.sh dev start
Commands
Following commands must be run from the docker stack
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Run your unit tests
npm run test
Run your build on localhost
For accessing to the built files from a local URL
npm run preview
Docker setup for development
Copy the .env.example file and rename it to .env.local Replace $MY_TOKEN by your real token (See Project setup)
docker-compose up