#MMS-lib-front


develop rules

  • use FEATURE branch like: feature/name
  • use MERGE REQUEST => FEATURE to DEVELOP - add comment need relase new version
  • DEVELOP was adding to RELEASE branch and push
  • after release DEVELOP add to MASTER

INIT for develop in new project

  • use instructions in section install in other project

  • copy tsconfig-build.json and tsconfig-serve.json.dist from directory USE_in_project to root path in your project (most important is section 'path')

  • tsconfig-serve.json.dist copy to tsconfig-serve.json and change path to library local paths

  • add to .gitignore file: .env and tsconfig-serve.json

  • in new project in package.json set:

    • "tsconfig:dev": "cp tsconfig-serve.json tsconfig.json" ,

      "tsconfig:prod": "cp tsconfig-prod.json tsconfig.json"

    and set (for run app)

    • "start": "npm run tsconfig:dev && npm run config -- --environment=dev && ng serve"
  • use npm run start to start project in develop mode (serve)

install in other project

before install set in terminal (in repo path):

  • npm config set @front-mms:registry=https://git.mobilems.pl/api/v4/packages/npm/
  • npm config set '//git.mobilems.pl/api/v4/projects/PROJECT_ID/packages/npm/:_authToken' 'PERSONAL_ACCESS_TOKEN'
  • npm config set 'https://git.mobilems.pl/api/v4/packages/npm/:_authToken' 'PERSONAL_ACCESS_TOKEN'

when:

  1. PROJECT_ID - id project ( = 119)
  2. PERSONAL_ACCESS_TOKEN - personal token from gitlab profile settings (access token e.g. dyRxHX7sU7hF-_UwCDN_)

and install:

  • npm i @front-mms/filter-layer or npm i @front-mms/filter-layer@version_number
  • npm i @front-mms/logic-layer or npm i @front-mms/logic-layer@version_number
  • npm i @front-mms/view-layer or npm i @front-mms/view-layer@version_number
  • npm i @front-mms/gallery-layer or npm i @front-mms/gallery-layer@version_number

to test lib modules on library repo

  • .env.dist copy to .env
  • run npm run start
  • add testing module into app.commponent.ts / html

result-matching ""

    No results matching ""