- Build Docker image
docker-compose -f docker/docker-compose_dev.yml build
- Up docker container
docker-compose -f docker/docker-compose_dev.yml up -d
Inside the container
Add an empty component and a spec unit test
npm run add-component ComponentName
This command add the following files:
- /src/components/ComponentName.vue
- /test/unit/ComponentName.spec.js
Add an empty widget and spec unit test
npm run add-widget WidgetName
This command add the following files:
- /src/components/widgets/WidgetName.vue
- /test/unit/WidgetName.spec.js
Run webpack build project
npm run build
Add compiled files in /dist
npm run unit
npm run testJunit
Junit file in:
- /test/test-results.xml