1 | # angular2 in-memory-web-api
|
2 | An in-memory web api for Angular 2 demos and tests.
|
3 |
|
4 | See usage in the Angular.io
|
5 | [Server Communication](https://angular.io/docs/ts/latest/guide/server-communication.html) chapter.
|
6 |
|
7 | # To Do
|
8 | * add documentation
|
9 | * add tests (shameful omission!)
|
10 |
|
11 | # Build Instructions
|
12 |
|
13 | Mostly gulp driven.
|
14 |
|
15 | The following describes steps for updating from one Angular version to the next
|
16 |
|
17 | >This is essential even when there are no changes of real consequence.
|
18 | Neglecting to synchronize Angular 2 versions
|
19 | triggers typescript definition duplication error messages when
|
20 | compiling your application project.
|
21 |
|
22 | - `gulp bump` - up the package version number
|
23 |
|
24 | - update `CHANGELOG.MD` to record the change
|
25 |
|
26 | - update the dependent version(s) in `package.json`
|
27 |
|
28 | - `npm install` the new package(s) (make sure they really do install!)<br>
|
29 | `npm list --depth=0`
|
30 |
|
31 | - consider updating typings:
|
32 |
|
33 | Iterate looking for SHAs of
|
34 | `https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/{pkg}/{pkg}.d.ts`
|
35 |
|
36 | Update `typings.json` and run `npm run typings -- install`
|
37 | OR install individually:
|
38 | `npm run typings -- install packagename --ambient --save`
|
39 |
|
40 | **NB: Do not add to `npm postinstall` as that screws up consumers!**
|
41 |
|
42 | - `npm run tsc` to confirm the project compiles w/o error (sanity check)
|
43 |
|
44 | -- NO TESTS YET ... BAD --
|
45 |
|
46 | - `gulp build`
|
47 | - commit and push
|
48 |
|
49 | - `npm publish`
|
50 |
|
51 | - Fix and validate angular.io docs samples
|
52 |
|
53 | - Add two tags to the release commit with for npmcdn
|
54 | - the version number
|
55 | - 'latest'
|