Angular cli compatibility #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
0.4.666
Directories & Modules
app
tosrc
since this is more of a librarysrc/modules
to contain sub-packages in a way that works well with node module resolution. For example,angular2-logger/subset
will elegantly point to whatever's exported bysrc/modules/subset/index.ts
. (Just copy how I set upcore
's files and make asrc/subset.ts
.)js
depending on their target configuration. Works with theangular-cli
.src/index.ts
can 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.rc5
, we have NgModules to package sets of resources together.package.json
"main"
points at the es5 entry point, which is the umdindex.js
right 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-cli
uses it.)"typings"
points to the.d.ts
entry point."compile"
tasks now pass configuration to the compiler to avoid duplicatetsconfig.json
files"clean"
now usesdel-cli
for safer deletes with simpler glob patternstypings.json
src/typings.d.ts
added to reference global types andcore-js
was removed fromtypings.json
. Instead, thees6
default lib is forced for all modules. This is done by settingnoLib
intsconfig.json
to 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 versionsMiscellanious
.gitignore
entries