README
shiftcode ng commons
Anatomy of this workspace
Package manager client: yarn
Individual packages can depend on each other, the dependency is resolved using ts paths (see ./tsconfig.json) make sure to build the package you depend on. Or change the tsconfig.paths to reference the files under src
directory.
Lerna is used to publish the packages and to run commands in multiple packages.
This workspace contains the following packages:
Add new library
- run
ng generate library my-lib
- change
libs/my-lib/package.json#name
to@shiftcode/ng-my-lib
- alter
libs/my-lib/ng-package.json#dest
to./dist
- add
"assets": [ "CHANGELOG.md" ],
tolibs/my-lib/ng-package.json
- alter
tsconfig.json#compilerOptions.paths
my-lib
entry to@shifcode/ng-my-lib
and edit paths according to #3 - update tsconfig files like other libs
- change from karma config to jest:
- remove
libs/my-lib/src/test.ts
- remove
libs/my-lib/karam-config.js
- in
angular.json
replace the libs test architect to"test": { "builder": "@angular-builders/jest:run" }
- remove