@@ -33,7 +33,7 @@ include ../_util-fns
33
33
34
34
TODO finish this
35
35
36
- a #develop-locally
36
+ .l-main-section
37
37
:marked
38
38
## Setup a local development environment
39
39
@@ -71,6 +71,7 @@ code-example(language="sh" class="code-shell").
71
71
npm install
72
72
npm start
73
73
74
+
74
75
.l-main-section
75
76
:marked
76
77
## Initialize your repository
@@ -230,13 +231,15 @@ code-example(language="json").
230
231
There is also a minified UMD bundle (`angular-quickstart-lib.umd.min.js`) for smaller payloads
231
232
in Plunkers and script tags.
232
233
234
+
233
235
.l-sub-section
234
236
:marked
235
237
A flat ECMAScript module (FESM) is a bundled ECMAScript module where all imports were followed
236
238
copied onto the same file file.
237
239
It always contains ES module import/export statements but can have different levels of ES code
238
240
inside.
239
241
242
+
240
243
.l-main-section
241
244
:marked
242
245
## The build step
@@ -251,6 +254,7 @@ code-example(language="json").
251
254
- Copy typings, metatada, html and css.
252
255
- Create each bundle using Rollup.
253
256
257
+
254
258
.l-main-section
255
259
:marked
256
260
## Testing libraries
@@ -281,6 +285,7 @@ code-example(language="json").
281
285
In addition to integration tests, you can also run unit tests in watch mode via `npm run test`,
282
286
or single-run via `npm run test:once`.
283
287
288
+
284
289
.l-main-section
285
290
:marked
286
291
## Publishing your library
@@ -318,28 +323,11 @@ code-example(language="json").
318
323
You'll need to create a NPM account, login on your local machine, and then you can publish updated
319
324
by running `npm publish`.
320
325
321
- Remember to follow [Semantic Versioning](http://semver.org/) and document your library!
322
-
323
- .l-main-section
324
- :marked
325
- ## title
326
-
327
- content
326
+ Remember to document your library, follow [Semantic Versioning](http://semver.org/) and
327
+ setup a Continuous Integration solution to test your library (included is a `travis.yml`
328
+ file for [Travis CI](https://docs.travis-ci.com/user/getting-started/))!
328
329
329
330
330
- .l-main-section
331
- :marked
332
- ## title
333
-
334
- content
335
-
336
-
337
- .l-main-section
338
- :marked
339
- ## Appendix: Library Setup Anatomy
340
-
341
- content
342
-
343
331
.l-main-section
344
332
:marked
345
333
## Appendix: Supporting AOT
@@ -382,6 +370,7 @@ code-example(language="json").
382
370
383
371
Publishing plain JavaScript with typings and meta data allows the consuming application to remain agnostic of the library's build environment.
384
372
373
+
385
374
.l-main-section
386
375
:marked
387
376
## Appendix: Supporting JIT
0 commit comments