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
{{ message }}
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: public/docs/ts/latest/cookbook/third-party-lib.jade
+161-1Lines changed: 161 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,15 @@
1
1
include../_util-fns
2
2
3
3
:marked
4
+
Libraries are the backbone of the Angular ecosystem.
5
+
They add functionality that would otherwise take a long time to implement from scratch and keep it up to date.
6
+
Everyone benifits from a healthy library ecosystem.
7
+
4
8
Traditionally, third party JavaScript libraries have been published in the form of a single JavaScript file.
5
9
Consumers of the library have then included the library, "as is", somewhere on the page using a `script` tag.
6
10
7
-
Modern web development has changed this process. Instead of publishing a "one size fits all" bundle, developers want to only include the parts of the library they actually need.
11
+
Modern web development has changed this process.
12
+
Instead of publishing a "one size fits all" bundle, developers want to only include the parts of the library they actually need and in the format they need it in.
8
13
9
14
This cookbook shows how to publish a third party library in a way that makes it possible to take advantage of techniques like Ahead of Time Compilation (AoT) and Tree Shaking.
10
15
@@ -26,6 +31,161 @@ include ../_util-fns
26
31
27
32
[Final Application](#final-app)
28
33
34
+
TODO finish this
35
+
36
+
a#develop-locally
37
+
:marked
38
+
## Setup a local development environment
39
+
40
+
Setting up a new library project on your machine is quick and easy with the **QuickStart Library seed**,
41
+
maintained [on github](https://github.com/angular/quickstart-lib "Install the github QuickStart Library repo").
42
+
43
+
:marked
44
+
Make sure you have at least Node 6.9 and NPM 3.0 installed.
45
+
Then ...
46
+
1. Create a project folder (you can call it `quickstart-lib` and rename it later).
47
+
1. [Clone](#clone "Clone it from github") or [download](#download "download it from github") the **QuickStart Library seed** into your project folder.
48
+
1. Install npm packages.
49
+
1. Run `npm start` to launch the sample application.
50
+
51
+
a#clone
52
+
:marked
53
+
### Clone
54
+
55
+
Perform the _clone-to-launch_ steps with these terminal commands.
0 commit comments