- Tested with both es5 & es6 project
- Demos, make them to play
- Satisfied with the file/directory structure
- All files have cool little headings and stuff
- Update angular dep to
rc6 - Update Typescript dep
- Refactor for ts2 features
-
- renamed
apptosrcsince this is more of a library - added
src/modulesto contain sub-packages in a way that works well with node module resolution. For example,angular2-logger/subsetwill elegantly point to whatever's exported bysrc/modules/subset/index.ts. (Just copy how I set upcore's files and make asrc/subset.ts.)- Feature: Bundlers like Webpack may automatically pick the proper es5 or es6
jsdepending on their target configuration. Works with theangular-cli. - Feature:
src/index.tscan be used to customize what can be imported fromangular2-logger. It could be used as an alias forangular2-logger/core, or it could be like the greatest-hits from a bunch of little sub-packages. - Query: Is it even worth it to have sub-packages like 'core' and whatever else? I feel like it might just be a bunch of extra typing & memorization for consumers of the api. Since
rc5, we have NgModules to package sets of resources together.
- Feature: Bundlers like Webpack may automatically pick the proper es5 or es6
- renamed
-
"main"points at the es5 entry point, which is the umdindex.jsright now (TODO: point at bundle)"module"points at the es6 entry point, overridingmain. This behavior has been adopted for es6 compatible builds using Webpack (angular-cliuses it.)"typings"points to the.d.tsentry point."compile"tasks now pass configuration to the compiler to avoid duplicatetsconfig.jsonfiles"clean"now usesdel-clifor safer deletes with simpler glob patterns
-
src/typings.d.tsadded to reference global types andcore-jswas removed fromtypings.json. Instead, thees6default lib is forced for all modules. This is done by settingnoLibintsconfig.jsonto stop the default lib from loading, and then explicitely referencing the es6 default (lib.es6.d.ts) intypings.d.ts. Typescript 2.0.0+ lets you do this out of the box, but this hack is needed for older versions
-
- Organized
.gitignoreentries
- Organized
...