mamps
v0.1.6
Published
## Project setup ``` npm install ```
Downloads
4
Readme
mamps
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Run your unit tests
npm run test:unit
Run 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 pipeline
Lints and fixes files
npm run lint
How 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 pipeline
How to configure fallback page for router
Customize configuration
Install plugin
- Deploy the project locally
- n the file
/mamps-frontend/src/vue-appolo.ts
in thedefaultOptions
object, change the value of the fieldhttpEndpoint : 'required backend address'
- in the file
/mamps-frontend/package.json
in 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 componentApp
from~your-package-pame~/src/App.vue
. - Add component in your code ===
new Vue({
...
render: h => h(App),
}).$mount('#app')
===