Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(multilib): Added MultiLib & MultiApp support (#1221)
Please provide a brief summary of this pull request. This PR is first atempt to provide more suitable structure for the repository so it supports multiple libraries as well as multiple application. Even all this is possible with existing CLI but its painfull process as after each run you would need to always modify angular.json to achive something like this. The main feature that was added is https://github.com/nrwl/nx, which enchances existing CLI schematics to provide real enterprise support for multi repo. To add additional app: ng g app <name> <options> To Generate library ng g lib <name> <options> App docs was completly refactored to use use relative scope package name to '@fundamental-ngx/core' instead of hardcoding path to library When creating new library you can have either shared library or publishable. (more in the nx website) This enforces running lint for the CI adn now we are using true angular cli tslint.json Refactored many files under apps/docs to refer to new scope package '@fundamental-ngx/core' (We had many hardcoded links) make some changes in the in the imports where we work with moment js. (We should not import whole moment JS library only features that we use Current structure /apps/* - have docs app /libs/*. => place is existing libray adn created scoped package '@fundamental-ngx/core' Updated build scripts adn paths This will be finetuned in this PR to see if CI can run properly the Library package.json should not include any dependencies or devDependencies - only peer. Also the CI build shoudl npm install from the main/root package.json How it knows to lookup the right classes when you import it like this '@fundamental-ngx/core' ? in the root tsconfig.json you will seePATHS that setups the aliases so application can easily resolve this. To build ng build docs ng build core To lint ng lint docs ng lint core
- Loading branch information