0.1.6 • Published 5 years ago
mamps v0.1.6
mamps
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildRun your unit tests
npm run test:unitRun your end-to-end tests
npm run test:e2e
npm run test:e2e -- --headless
Recommended to run e2e tests in other pipeline not together with Build pipelineLints and fixes files
npm run lintHow to configure CI
1. Install npm packages (it could be configured through cache)
2. Run unit tests (with publishing test results)
3. Build app for specific stage (for example: npm run build -- --mode staging)
In the end there will be "/dist" folder in root directory, it should be copied in CD pipelineHow to configure fallback page for router
Customize configuration
Install plugin
- Deploy the project locally
- n the file
/mamps-frontend/src/vue-appolo.tsin thedefaultOptionsobject, change the value of the fieldhttpEndpoint : 'required backend address' - in the file
/mamps-frontend/package.jsonin the fieldname: 'set the required package name', in the fieldversion: 'change the version to the last value +1' (example "version": "0.1.1" => "version" : "0.1.2",) - after that you need to publish the package
- open the console in the root folder, then enter in
npm login - You will be asked to enter your login and password from the npm.com website.
- After that you need to publish the package
npm publish - If the publication was successful, you can follow the link and see the information about the package.
- After that you can install the package yourself.
- In file
main.(js/ts)import componentAppfrom~your-package-pame~/src/App.vue. Add component in your code
new Vue({
...
render: h => h(App),
}).$mount('#app')===