|
1 |
| -# Angular Lib starter |
2 |
| -> Universal, AOT, Web Workers, ready lib starter. Use for your Angular libs |
| 1 | +<p align="center"> |
| 2 | + <a href="http://courses.angularclass.com/courses/angular-2-fundamentals" target="_blank"> |
| 3 | + <img width="438" alt="Angular 2 Fundamentals" src="https://cloud.githubusercontent.com/assets/1016365/17200649/085798c6-543c-11e6-8ad0-2484f0641624.png"> |
| 4 | + </a> |
| 5 | +</p> |
3 | 6 |
|
| 7 | +--- |
4 | 8 |
|
5 |
| -## Getting started |
6 |
| -* fork this |
7 |
| -* clear the git history `git init .` |
8 |
| -* add your source code in `src`. |
9 |
| -* change the entry in `webpack.config.js` |
10 |
| -* change the output filnames in `package.json` to match your src files and webpack |
11 |
| - * `"main", "jsnext:main", "module", "types"` |
12 |
| -* build your project `yarn release` or `npm run release` |
| 9 | +# Angular Web Cached View |
| 10 | +> Allow rendering of Angular apps in cached views |
13 | 11 |
|
14 |
| -## Builds |
15 |
| -This starter prepares 2 different versions for builds of your lib |
16 |
| -* **esm** or ES2015 Modules |
17 |
| - * this build is a transpilation of your Typescript code to ES5 and ES2015 modules. Its' not bundled. This is needed for treeshaking when users use your lib |
18 |
| -* **UMD** |
19 |
| - * this is a bundle of ES5 code. What you would typically get from webpack or rollup. |
| 12 | +___ |
20 | 13 |
|
21 |
| -The build system generates AOT metadata too, so you're good. |
| 14 | +enjoy — **AngularClass** |
22 | 15 |
|
23 | 16 |
|
24 | 17 | ## Scripts
|
25 | 18 | * `"test"`: runs the test in mocha on node
|
26 |
| -* `"build:esm"`: builds the esm versions |
27 |
| -* `"build:bundle"`: builds the UMD version |
28 |
| -* `"build:aot"`: makes it work for aot |
29 |
| -* `"build"`: does all the above |
30 |
| -* `"copy"`: copies over file to dist |
31 |
| -* `"release"`: does all the above |
| 19 | +* `"rm"`: removes dist folder |
| 20 | +* `"build"`: runs rm, then runs webpack |
| 21 | + |
| 22 | + |
| 23 | +<br><br> |
| 24 | + |
| 25 | +[](https://angularclass.com) |
| 26 | +## [AngularClass](https://angularclass.com) |
| 27 | +> Learn AngularJS, Angular 2, and Modern Web Development from the best. |
| 28 | +> Looking for corporate Angular training, want to host us, or Angular consulting? [email protected] |
0 commit comments