0.1.6 • Published 4 years ago

mamps v0.1.6

Weekly downloads
28
License
-
Repository
-
Last release
4 years ago

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

Link

Customize configuration

See Configuration Reference.

Install plugin

  1. Deploy the project locally
  2. n the file /mamps-frontend/src/vue-appolo.ts in the defaultOptions object, change the value of the field httpEndpoint : 'required backend address'
  3. in the file /mamps-frontend/package.json in the field name: 'set the required package name', in the field version: 'change the version to the last value +1' (example "version": "0.1.1" => "version" : "0.1.2",)
  4. after that you need to publish the package
  5. open the console in the root folder, then enter in npm login
  6. You will be asked to enter your login and password from the npm.com website.
  7. After that you need to publish the package npm publish
  8. If the publication was successful, you can follow the link and see the information about the package.
  9. After that you can install the package yourself.
  10. In file main.(js/ts) import component App from ~your-package-pame~/src/App.vue.
  11. Add component in your code

new Vue({  
    ...   
    render: h => h(App),  
}).$mount('#app')

===