Sample project to migrate project created with Angular Seed to Angular CLI.
- Node.js 8.x
- Angular 6.x
- Visual Studio Code 1.20 or higher
- Extension Debugger for Chrome
git clone [email protected]:yasu-s/ng-seed-to-cli.git
cd ng-seed-to-cli
npm install
npm start
npm run ng:serve
Command | Overview |
---|---|
npm start | Execute debugging. |
npm run test | The unit test is executed. |
npm run karma.start-debug | npm run test after execution, debugging can be executed. |
Command | Overview |
---|---|
npm run ng:serve | Execute debugging. |
npm run ng:test | The unit test is executed. |
npm start
ornpm run karma.start-debug
to start.- Run debugging with
Attach to Chrome - Angular Seed
from the debug menu of Visual Studio Code.
npm run ng:serve
ornpm run ng:test
to start.- Run debugging with
Attach to Chrome - Angular CLI
from the debug menu of Visual Studio Code.
Add the following to devDependencies.
- @angular/cli
- @angular-devkit/build-angular
- typescript
- angular.json
- config/ng-cli/index.html
- config/ng-cli/main.ts
- config/ng-cli/polyfills.ts
- config/ng-cli/tsconfig.app.json
- angular.json
- config/ng-cli/test.ts
- config/ng-cli/polyfills.ts
- config/ng-cli/tsconfig.spec.json
Since Angular CLI will be a build error, replace the configuration file at build time.
"fileReplacements": [
{
"replace": "src/client/app/shared/config/env.config.ts",
"with": "src/client/app/shared/config/env.config.test.ts"
}
]
- Angular Seed: https://github.com/mgechev/angular-seed
- Angular CLI: https://cli.angular.io/