https://github.com/Swiip/generator-gulp-angular
- Node.js
- Python 2.7.x
- Git
npm install --global --no-optional yo gulp bower tsd
npm install --global --no-optional generator-gulp-angular
mkdir <new-directory>
cd <new-directory>
yo gulp-angular <app-name> --app-path=source/<app-folder> --dist-path=artifacts --e2e-path=tests/end2end --advanced
I use the defaults except:
- Select Typescript for Javascript option
- Select gulp-imagemin as extra option
Run gulp
to find initial errors during build.
- Open ./source/ImpressiveMark.App.Website/app/index.module.ts
- Fix first line.
- todo: Report bug to gulp-angular
ERROR in [default] c:/Users/Tim/Code/impressive-mark/app.impressivemark.com/source/ImpressiveMark.App.Website/app/components/malarkey/malarkey.directive.ts:25:15
- Open ./source/ImpressiveMark.App.Website/app/components/malarkey/malarkey.directive.ts
- Change
private malarkey: any
topublic malarkey: any
- todo: Report bug to gulp-angular
- Open .\source\ImpressiveMark.App.Website\app\index.scss
- Change $icon-font-path value to "/bower_components/bootstrap-sass/assets/fonts/bootstrap/"
- Open .\gulp\build.js
- Replace '../..../bower_components/bootstrap-sass/assets/fonts/bootstrap/' with '../../bower_components/bootstrap-sass/assets/fonts/bootstrap/'
- todo: Report bug to gulp-angular
Run following gulp tasks to smoke test.
- gulp build
- gulp serve
- gulp serve:dist todo: complete list