Skip to content

Commit 858d47b

Browse files
authored
Merge pull request #61 from bikecoders/update-description
docs: update the description of the project
2 parents 85c97f2 + 215ff45 commit 858d47b

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,22 @@
77
[![Discord Server][discord-image]][discord-url]
88

99
<!-- Images -->
10+
1011
[npm-image]: https://badge.fury.io/js/ngx-deploy-npm.svg
1112
[mit-licence-image]: https://img.shields.io/badge/license-MIT-orange.svg?color=blue&style=flat-square
1213
[conventional-commits-image]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg
1314
[discord-image]: https://img.shields.io/discord/748677963142135818?color=7289DA&label=%23ngx-deploy-npm&logo=discord&logoColor=white&style=flat-square
1415

1516
<!-- URLs -->
17+
1618
[npm-url]: https://www.npmjs.com/package/ngx-deploy-npm
1719
[mit-licence-url]: http://opensource.org/licenses/MIT
1820
[discord-url]: https://discord.gg/cPa78y6rXn
1921
[conventional-commits-url]: https://conventionalcommits.org
2022

2123
![Cover Image](docs/cover.png)
2224

23-
## Publish any kind of library to NPM on an Angular🅰️ or Nx🐬 Workspace
25+
## Publish your libraries to NPM with one command on an Angular🅰️ or Nx🐬 workspace
2426

2527
---
2628

@@ -56,7 +58,7 @@ package created and you already are logged in on npm using `npm login`
5658

5759
1. Add `ngx-deploy-npm` to your project. It will configure all your publishable libraries present in the project
5860

59-
| Angular🅰️ | Nx🐬 |
61+
| Angular🅰️ | Nx🐬 |
6062
| :------------------------------------------- | :----------------------------------------------------- |
6163
| <pre lang="sh"> ng add ngx-deploy-npm </pre> | <pre lang="sh"> nx generate ngx-deploy-npm:init </pre> |
6264

@@ -88,16 +90,18 @@ Independently of the CI/CD that you are using you must create an NPM token. To d
8890
- Creating a step with `run: npm whoami`
8991
- The output should be the username of your npm account
9092
4. **Deploy your package**
93+
9194
- Create a step with:
9295

93-
| Angular🅰️ | Nx🐬 |
96+
| Angular🅰️ | Nx🐬 |
9497
| :-------------------------------------------- | :-------------------------------------------- |
9598
| <pre lang="sh"> ng deploy your-library </pre> | <pre lang="sh"> nx deploy your-library </pre> |
9699

97100
- **NOTE:** You may want to execute a script that executes some pre-steps
98-
before publishing and inside that script execute`ng/nx deploy YOUR_LIBRARY`.
99-
If you want to make that script on JavaScript and put it on the package.json,
100-
**execute it using `npm` not with yarn**, there is an [issue](https://github.com/yarnpkg/yarn/issues/5683) associated with that
101+
before publishing and inside that script execute`ng/nx deploy YOUR_LIBRARY`.
102+
If you want to make that script on JavaScript and put it on the package.json,
103+
**execute it using `npm` not with yarn**, there is an [issue](https://github.com/yarnpkg/yarn/issues/5683) associated with that
104+
101105
5. **Enjoy your just released package 🎉📦**
102106

103107
The job full example is for an Angular project is
@@ -134,6 +138,7 @@ Same as `ng build --configuration=XXX`.
134138
This command has no effect if the option `--no-build` option is active.
135139

136140
#### --no-build
141+
137142
- **optional**
138143
- Default: `false` (string)
139144
- Example:

docs/cover.png

-982 Bytes
Loading

docs/cover.xcf

1.56 KB
Binary file not shown.

src/deploy/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "Schema",
33
"title": "schema",
4-
"description": "Publish your angular packages to npm by just run `ng deploy`",
4+
"description": "Publish your libraries to NPM with just one command",
55
"properties": {
66
"configuration": {
77
"type": "string",

src/engine/engine.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ describe('engine', () => {
153153
myPackageJSON = {
154154
name: 'ngx-deploy-npm',
155155
version: 'boilerPlate',
156-
description:
157-
'Publish your angular packages to npm by just run `ng deploy`',
156+
description: 'Publish your libraries to NPM with just one command',
158157
main: 'index.js',
159158
};
160159

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ngx-deploy-npm",
33
"version": "1.5.0",
4-
"description": "Publish your angular packages to npm by just run `ng deploy`",
4+
"description": "Publish your libraries to NPM with just one command",
55
"main": "index.js",
66
"scripts": {
77
"prebuild": "rimraf dist && json2ts deploy/schema.json > deploy/schema.d.ts",

0 commit comments

Comments
 (0)