You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gitter.im/code-chunks/angular2-logger?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -17,13 +21,13 @@ This is a work in progress and is not ready for production, use with care, the A
17
21
### Quickstart
18
22
19
23
1. Install the npm module.
20
-
24
+
21
25
npm install --save angular2-logger
22
26
23
27
2. Add the `angular2-logger` library to your app. If you are following the [Angular 2's Quickstart Guide](https://angular.io/docs/ts/latest/quickstart.html) it should be something like this:
24
28
25
29
In `systemjs.config.js`:
26
-
30
+
27
31
// map tells the System loader where to look for things
28
32
var map = {
29
33
'app': 'app', // 'dist',
@@ -32,7 +36,7 @@ This is a work in progress and is not ready for production, use with care, the A
32
36
'rxjs': 'node_modules/rxjs',
33
37
'angular2-logger': 'node_modules/angular2-logger' // ADD THIS
34
38
};
35
-
39
+
36
40
//packages tells the System loader how to load when no filename and/or no extension
The codebase was updated to handle the breaking changes on Angular2's Release Candidate 5.
213
217
**Make sure you don't upgrade to this version if you haven't upgraded Angular2 to at least `2.0.0-rc.5`**
214
218
215
-
- Quickstart guide now follows the pattern in Angular 2's Quickstart to add the references to other libs in `systemjs.config.js`.
216
-
However if you still want to do it the old way by adding the system bundle, you can still do so, except now its called `bundles/angular2-logger.sys.min.js`.
219
+
- Quickstart guide now follows the pattern in Angular 2's Quickstart to add the references to other libs in `systemjs.config.js`.
220
+
However if you still want to do it the old way by adding the system bundle, you can still do so, except now its called `bundles/angular2-logger.sys.min.js`.
217
221
218
222
## Breaking changes on 0.3.0
219
223
The codebase was updated to handle the breaking changes on Angular2's Release Candidate.
-[ ] All files have cool little headings and stuff
8
+
9
+
#### **Experiments**
10
+
-[ ] Update angular dep to `rc6`
11
+
-[ ] Update Typescript dep
12
+
-[ ] Refactor for ts2 features
13
+
14
+
# Changes
15
+
16
+
## **0.4.666**
17
+
-#### **Directories & Modules**
18
+
- renamed `app` to `src` since this is more of a library
19
+
- added `src/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 by `src/modules/subset/index.ts`. (Just copy how I set up `core`'s files and make a `src/subset.ts`.)
20
+
-**Feature:** Bundlers like Webpack may automatically pick the proper es5 or es6 `js` depending on their target configuration. Works with the `angular-cli`.
21
+
-**Feature:**`src/index.ts` can be used to customize what can be imported from `angular2-logger`. It could be used as an alias for `angular2-logger/core`, or it could be like the greatest-hits from a bunch of little sub-packages.
22
+
-**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._
23
+
-#### **package.json**
24
+
-`"main"` points at the es5 entry point, which is the umd `index.js` right now (TODO: point at bundle)
25
+
-`"module"` points at the es6 entry point, overriding `main`. This behavior has been adopted for es6 compatible builds using Webpack (`angular-cli` uses it.)
26
+
-`"typings"` points to the `.d.ts` entry point.
27
+
-`"compile"` tasks now pass configuration to the compiler to avoid duplicate `tsconfig.json` files
28
+
-`"clean"` now uses `del-cli` for safer deletes with simpler glob patterns
29
+
-#### **typings.json**
30
+
-`src/typings.d.ts` added to reference global types and `core-js` was removed from `typings.json`. Instead, the `es6` default lib is forced for all modules. This is done by setting `noLib` in `tsconfig.json` to stop the default lib from loading, and then explicitely referencing the es6 default (`lib.es6.d.ts`) in `typings.d.ts`. Typescript 2.0.0+ lets you do this out of the box, but this hack is needed for older versions
0 commit comments