@abscoders/abs-cli
v1.0.18
Published
Absolution Angular SaaS project generator CLI
Readme
abs-cli
Internal CLI for generating Absolution Angular SaaS starter applications.
Install locally for testing
npm install
npm linkInstall ABS CLI
npm config set @abscoders:registry https://npm.pkg.github.com
npm login --registry=https://npm.pkg.github.com
npm install -g @abscoders/abs-cliThen from any target directory:
abs newOr specify the name inline:
abs new --name timesheetsUse a custom target directory instead of the current working directory:
abs new --name timesheets --directory C:\projectsInside a generated Angular app, create a feature component and register a route:
abs cOr provide the component name inline:
abs c reportsBehavior
abs new will:
- prompt for the project name if not supplied
- prompt for the git user
- prompt for the API domain
- normalize the name to kebab-case
- create a new Angular app with the latest CLI
- copy bundled templates and images
- replace template tokens
- merge
angular.template.jsonintoangular.json - merge
package.template.jsonintopackage.json - run
npm install - initialize Git and add
origin - open VS Code unless
--no-openis used
abs c will:
- prompt for the component name when not supplied
- ask whether the route should be protected
- run
ng generate component features/<name> --standalone --skip-tests - add the new route to
src/app/app.routes.ts - include
authGuardin the route config when the route is protected
Defaults
- API base URL: normalized from the prompted API domain
- Git remote format:
[email protected]:<git-user>/<project>.git - Target directory: current working directory unless
--directoryis supplied
Publish
When ready, publish to your private registry and have coworkers install globally.
