It's not innovative. It's not useful. It's not beautiful. It's just a random project to learn and practice Angular2.
gulp clean
: delete all files and folders insidedist/
.gulp html
: copy all HTML files fromsrc/
todist/
keeping the folders tree.gulp js
:gulp build
:gulp watch
:
- Rename tasks (
build:js
,watch:js
...)?
npm run clean
: delete all files and folders insidedist/
.npm run html
: copy all HTML files fromsrc/
todist/
keeping the folders tree.npm run js
: compile (TypeScript -> ES5) and bundle JS files with Browserify.npm run build
: build application runningclean
+html
+js
.npm run watch:html
: watch HTML files runninghtml
every time an HTML file is modified.npm run watch:js
: watch JS files runningjs
(kinda) every time a JS file is modified.npm run watch:all
: watch HTML and JS files runningclean
thenhtml
thenwatch:html
andwatch:js
at the same time.npm run serve
: lauchlite-server
.npm start
: start application for development runningwatch:all
andserve
at the same time.
- Fix uglify (error with uglifyjs/uglify-to-browserify/uglifyify)
- Make build for production (uglify, no source map, concatenate templates...)
- Use cross-platform scripts
- Use short options (when used to it)
Good (quick and easy to write/read) for small projects. Maybe too limited (no variable, function, comment...) and hard to read for more complex projects.
TODO
- App configuration (normal class)
- Feature module (
SearchModule
) - HTTP request with promise (
HttpModule
) - Router (
RouterModule
) - Resolve (
Resolve
&ActivatedRouteSnapshot
interfaces) - Custom pipe (
Pipe
decorator &PipeTransform
interface)
- Try observable instead of promise
- Use relative paths for templateUrl
- Reorganize files into folders (components, services, pipes...?)
- Create a navigation menu to access different pages
- Make it
beautifulless ugly (Bootstrap ?)
- Learn Firebase and AngularFire ?
- Auth0 ?