inspark-components-container
v14.0.0
Published
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.0.4.
Readme
SemDashboardCommon
This project was generated with Angular CLI version 7.0.4.
Работа с пакетом локально через npm link
Описан процесс разработки пакета с тестированием изменений во внешнем проекте.
- Собрать правки в пакет
npm run build- Перейти в
dist/inspark-componentsи выполнить:
npm link- В том проекте, где нужно протестировать пакет:
npm link @inspark/inspark-componentsТеперь при пересборке библиотеки (npm run build из корня проекта) изменения будут подтягиваться.
Завершение локальной работы с пакетом, отлинковка и публикация
Перед переходом в другую ветку и/или удалении node modules отлинкуйте папку (важен порядок):
- В ПРОЕКТЕ
npm unlink --no-save @inspark/inspark-components- В ПАКЕТЕ (этот проект) перейдите в
dist/inspark-componentsи выполните
npm unlink- Измените версию в
projects/inspark-components/package.json - Из корня проекта выполните:
npm i- Сommit, push
- Перейдите в корень проекта и выполните сборку:
npm run build- Опубликуйте пакет (необходимы права на публикацию в репозитории npm):
npm run publishDevelopment server
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Code scaffolding
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Build
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
Running unit tests
Run ng test to execute the unit tests via Karma.
Running end-to-end tests
Run ng e2e to execute the end-to-end tests via Protractor.
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
