remove travis remains (#3051)

This commit is contained in:
Denys Vuika
2023-03-14 17:01:56 -04:00
committed by GitHub
parent 680319596a
commit eba0f9aef8
24 changed files with 28 additions and 527 deletions

View File

@@ -2,36 +2,40 @@
Title: Publish to npm
---
# Create a new library
## Create a new library
New library can be created using standard `ng` command
e.g. if we would like to create `aca-new-lib` we need to run the following:
```
```sh
ng generate @schematics/angular:library aca-new-lib
```
# Publish library
## Publish library
### Build library
## Build library
In order to publish new library, we need to build it first. You need to add build of your library to `build-libs` command in `package.json`
```
```sh
"build-libs": "ng build aca-shared && ng build aca-new-lib",
```
## Update publish script
If we would like to publish the new library we need to update `scripts/ci/npm/publish-libs.sh`
### Update publish script
If we would like to publish the new library we need to update `scripts/gh/npm-publish.sh`
The only thing that need to be done is to update `PROJECTS` variable by adding your library name i.e.
```
```sh
PROJECTS=(
'aca-shared',
'aca-new-lib'
);
```
# Caveats
## Caveats
- The versions of libraries are updated automatically by the script (should not be done manually)
- In travis setting you can find `PUBLISH_PROJECTS` variable, which can be used for enabling dry mode when running the publish command