Welcome to NBlocks, the platform toolbox from Nebulr made by developers for developers.
This is a plug-n-play plugin for Ionic Angular.
Check out the documentation and quickstart here:
https://nebulr-group.github.io/nblocks-docs
This project gathers all Angular flavoured libraries for NBlocks. Please head over to each sub project README to get started.
- Authenticate
- Login
- Logout
- Social login
- MFA
- Select workspace / tenant
- Tenant views
- User management
Angular helps organise different libraries and each library is stored as a sub project and located in the /projects
directory.
From the root directory of this project (not in library) run ng build
.
All libraries will compiled to different directories under dist/
.
- To publish a library, make sure to update the package.json version in the project sub folder.
- Make sure you're logged into npm. E.g.
npm login
- Run
npm run publish-${libraryName}
, e.g.npm run publish-ionic
.
A library can be tested locally without publishing.
- Build library from root directory of this project, e.g.
ng build --watch
activate recompilation on source change. - Step into the compiled library output directory in
dist/name-of-lib
. - Run
npm link
to have library linked into a global npm package folder. Observe the name of the output in which this library was saved as. - Go to the root folder of the Angular project where you want to install this library into.
- Run
npm link name-of-lib
(same name as from npm link output). - You now have the plugin installed in
node_modules
and can be used in project. Observe the package.json is not updated which is OK.
Some angular projects have a problem installing and using linked plugins and requires you add preserveSymlinks: true
to angular.json. See this for more information.
- To list all your linked plugins (globally)
npm ls -g --depth=0 --link=true
. - To remove a linked plugin from node_modules
npm unlink name-of-lib
To generate a new project, e.g.
ng generate library nblocks-ionic --prefix=nblocks