Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit e6d18e5

Browse files
committed
add publishing
1 parent 84a1e7d commit e6d18e5

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

public/docs/ts/latest/cookbook/third-party-lib.jade

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,36 @@ code-example(language="json").
285285
## Publishing your library
286286

287287
Every package on NPM has a unique name, and so should yours.
288-
289-
-- rename lib
288+
If you haven't already, now is the time to change the name of your library.
289+
290+
Use your editor to search the project for all instances of `angular-quickstart-lib` and change it
291+
to your intended name (also in `dash-case` format).
292+
The library name is mentioned on these files:
293+
294+
- `integration/src/app/app.component.ts`
295+
- `integration/src/app/app.module.ts`
296+
- `integration/src/systemjs.config.js`
297+
- `integrations/package.json`
298+
- `src/demo/app/app.component.ts`
299+
- `src/demo/app/app.module.ts`
300+
- `src/demo/systemjs.config.js`
301+
- `src/demo/tsconfig.json`
302+
- `src/lib/tsconfig.json`
303+
- `src/lib/tsconfig.es2015.json`
304+
- `bs-config.json`
305+
- `package.json`
306+
- `README.md`
307+
308+
You'll also need to rename the `src/lib/angular-quickstart-lib.ts` file and the folder your
309+
project is in.
310+
311+
After you have changed the package name, you can publish it to NPM (read
312+
[this link](https://docs.npmjs.com/getting-started/publishing-npm-packages) for details).
313+
314+
You'll need to create a NPM account, login on your local machine, and then you can publish updated
315+
by running `npm publish`.
316+
317+
Remember to follow [Semantic Versioning](http://semver.org/)!
290318

291319
.l-main-section
292320
:marked

0 commit comments

Comments
 (0)