mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 18:45:17 +00:00
1.8 KiB
1.8 KiB
Dashboard
Libraries
- Angular CLI
- Run
ng generate component component-name
to generate a new component (you can also useng generate directive|pipe|service|class|guard|interface|enum|module
). - To get more help use
ng help
or go check out the Angular CLI README.
- Run
- Angular Material
- Prettier
Initialization
# Install packages
npm ci
# Generate swagger API Angular modules
npm run codegen
Development server
- Run
npm start
- Navigate to
http://localhost:8000/
Production build
- Run
npm run build
- The build artifacts will be stored in the
dist/
directory.
Add API
-
Add submodule
git submodule -b <SCHEME_BRANCH> add <SCHEME_REPO> schemes/<SCHEME_NAME>/<VER:VX>
-
Add submodule directory (
schemes/<SCHEME_NAME>/<VER:VX>
) to MakefileSWAGGER_SCHEMES_PATH
-
Update
config.json
andstub-config.json
-
Add
src/api/<SCHEME_NAME>
:index.ts
<SCHEME_NAME>.module.ts
<SCHEME_NAME>-config.service.ts
Tests
- Run
npm run test
to execute the unit tests via Karma. - Run
npm run e2e
to execute the end-to-end tests via Protractor.
Utils
Analyze bundle size
npm run build -- --prod --stats-json --extraWebpackConfig webpack.extra.js
npx webpack-bundle-analyzer dist/stats.json