@clipboard-health/nx-plugin 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/README.md +33 -0
  2. package/dist/package.json +36 -0
  3. package/{src → dist/src}/generators/node-lib/files/package.json__template__ +1 -1
  4. package/{src → dist/src}/generators/node-lib/files/project.json__template__ +2 -2
  5. package/{src → dist/src}/generators/node-lib/files/tsconfig.json__template__ +1 -1
  6. package/dist/src/generators/node-lib/generator.js.map +1 -0
  7. package/dist/src/index.js.map +1 -0
  8. package/package.json +6 -4
  9. package/src/generators/node-lib/generator.js.map +0 -1
  10. package/src/index.js.map +0 -1
  11. /package/{generators.json → dist/generators.json} +0 -0
  12. /package/{src → dist/src}/generators/node-lib/files/.eslintrc.json__template__ +0 -0
  13. /package/{src → dist/src}/generators/node-lib/files/README.md__template__ +0 -0
  14. /package/{src → dist/src}/generators/node-lib/files/jest.config.ts__template__ +0 -0
  15. /package/{src → dist/src}/generators/node-lib/files/src/index.ts__template__ +0 -0
  16. /package/{src → dist/src}/generators/node-lib/files/src/lib/delete-me.spec.ts__template__ +0 -0
  17. /package/{src → dist/src}/generators/node-lib/files/src/lib/delete-me.ts__template__ +0 -0
  18. /package/{src → dist/src}/generators/node-lib/files/tsconfig.lib.json__template__ +0 -0
  19. /package/{src → dist/src}/generators/node-lib/files/tsconfig.lint.json__template__ +0 -0
  20. /package/{src → dist/src}/generators/node-lib/files/tsconfig.spec.json__template__ +0 -0
  21. /package/{src → dist/src}/generators/node-lib/files/typedoc.json__template__ +0 -0
  22. /package/{src → dist/src}/generators/node-lib/generator.d.ts +0 -0
  23. /package/{src → dist/src}/generators/node-lib/generator.js +0 -0
  24. /package/{src → dist/src}/generators/node-lib/schema.d.ts +0 -0
  25. /package/{src → dist/src}/generators/node-lib/schema.json +0 -0
  26. /package/{src → dist/src}/index.d.ts +0 -0
  27. /package/{src → dist/src}/index.js +0 -0
package/dist/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # @clipboard-health/nx-plugin
2
+
3
+ Clipboard Health's Nx plugin contains generators to manage libraries within an Nx workspace.
4
+
5
+ ## Table of Contents
6
+
7
+ - [Table of Contents](#table-of-contents)
8
+ - [Install](#install)
9
+ - [Usage](#usage)
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ npm install @clipboard-health/nx-plugin
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ Libraries version and publish separately. We use [Nx Local Generators](https://nx.dev/recipes/generators/local-generators) to generate library stubs that successfully build, lint, and test. The `--publishPublicly` flag publishes the NPM package publicly.
20
+
21
+ ```bash
22
+ # Optionally, include the --publishPublicly flag.
23
+ npx nx generate @clipboard-health/nx-plugin:node-lib [PROJECT_NAME]
24
+
25
+ # Change your mind? Remove it just as easily...
26
+ npx nx generate @nx/workspace:remove --projectName [PROJECT_NAME]
27
+
28
+ # ...or rename it. Note: after running this command, perform a find/replace for remaining references
29
+ # to the old name.
30
+ npx nx generate @nx/workspace:move --projectName [PROJECT_NAME] --destination [NEW_PROJECT_NAME]
31
+ ```
32
+
33
+ To porting an existing library, follow the above to generate a new package and copy the code from the existing library into it.
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@clipboard-health/nx-plugin",
3
+ "description": "Clipboard Health's Nx plugin contains generators to manage applications within an Nx workspace.",
4
+ "version": "0.4.5",
5
+ "bugs": "https://github.com/clipboardhealth/core-utils/issues",
6
+ "dependencies": {
7
+ "@nx/devkit": "19.6.2",
8
+ "@nx/js": "19.6.2",
9
+ "tslib": "2.7.0"
10
+ },
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "generators": "./generators.json",
15
+ "keywords": [
16
+ "generator",
17
+ "library",
18
+ "node",
19
+ "nx",
20
+ "plugin",
21
+ "typescript"
22
+ ],
23
+ "license": "MIT",
24
+ "main": "./dist/src/index.js",
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/clipboardhealth/core-utils.git",
31
+ "directory": "packages/nx-plugin"
32
+ },
33
+ "type": "commonjs",
34
+ "typings": "./src/index.d.ts",
35
+ "types": "./src/index.d.ts"
36
+ }
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "keywords": [],
10
10
  "license": "MIT",
11
- "main": "./src/index.js",
11
+ "main": "./dist/src/index.js",
12
12
  "publishConfig": {
13
13
  "access": "<%= publishConfigAccess %>"
14
14
  },<% if (publishPublicly) { %>
@@ -9,8 +9,8 @@
9
9
  "executor": "@nx/js:tsc",
10
10
  "options": {
11
11
  "assets": ["packages/<%= projectName %>/*.md"],
12
- "main": "packages/<%= projectName %>/src/index.js",
13
- "outputPath": "dist/packages/<%= projectName %>",
12
+ "main": "packages/<%= projectName %>/src/index.ts",
13
+ "outputPath": "packages/<%= projectName %>/dist",
14
14
  "tsConfig": "packages/<%= projectName %>/tsconfig.lib.json"
15
15
  },
16
16
  "outputs": ["{options.outputPath}"]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "extends": "<%= offsetFromRoot %>tsconfig.base.json",
3
3
  "compilerOptions": {
4
- "outDir": "../../dist/out-tsc"
4
+ "outDir": "./dist/out-tsc"
5
5
  },
6
6
  "files": [],
7
7
  "include": [],
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../src/generators/node-lib/generator.ts"],"names":[],"mappings":";;AAoFA,2BAKC;AAzFD,yCAAiC;AAEjC,uCASoB;AACpB,sEAAiE;AAIjE,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAU5C,SAAS,gBAAgB,CAAC,IAAU,EAAE,OAAgC;IACpE,MAAM,IAAI,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC;IAC1C,MAAM,gBAAgB,GAAG,IAAI,CAAC;IAC9B,OAAO;QACL,GAAG,OAAO;QACV,mBAAmB,EAAE,0BAA0B,CAAC,OAAO,CAAC,eAAe;YACrE,CAA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,UAAU,IAAI,CAAC,CAAC;QAC1F,CAAC;QAED,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,IAAA,0BAAiB,EAAC,OAAO,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;QAE5F,OAAO,IAAI,CAAC;IACd,CAAC,CACF,CAAC;AACJ,CAAC;AAEc,KAAK,UAAU,QAAQ,CAAC,IAAU,EAAE,OAAgC;IACjF,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1D,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;IAClC,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;IAC5C,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,iDAAiD"}
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@clipboard-health/nx-plugin",
3
3
  "description": "Clipboard Health's Nx plugin contains generators to manage applications within an Nx workspace.",
4
+ "version": "0.4.5",
4
5
  "bugs": "https://github.com/clipboardhealth/core-utils/issues",
5
6
  "dependencies": {
6
7
  "@nx/devkit": "19.6.2",
7
8
  "@nx/js": "19.6.2",
8
9
  "tslib": "2.7.0"
9
10
  },
11
+ "files": [
12
+ "dist"
13
+ ],
10
14
  "generators": "./generators.json",
11
15
  "keywords": [
12
16
  "generator",
@@ -17,7 +21,7 @@
17
21
  "typescript"
18
22
  ],
19
23
  "license": "MIT",
20
- "main": "./src/index.js",
24
+ "main": "./dist/src/index.js",
21
25
  "publishConfig": {
22
26
  "access": "public"
23
27
  },
@@ -27,7 +31,5 @@
27
31
  "directory": "packages/nx-plugin"
28
32
  },
29
33
  "type": "commonjs",
30
- "typings": "./src/index.d.ts",
31
- "types": "./src/index.d.ts",
32
- "version": "0.4.4"
34
+ "typings": "./src/index.d.ts"
33
35
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/generators/node-lib/generator.ts"],"names":[],"mappings":";;AAoFA,2BAKC;AAzFD,yCAAiC;AAEjC,uCASoB;AACpB,sEAAiE;AAIjE,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAU5C,SAAS,gBAAgB,CAAC,IAAU,EAAE,OAAgC;IACpE,MAAM,IAAI,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC;IAC1C,MAAM,gBAAgB,GAAG,IAAI,CAAC;IAC9B,OAAO;QACL,GAAG,OAAO;QACV,mBAAmB,EAAE,0BAA0B,CAAC,OAAO,CAAC,eAAe;YACrE,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,YAAY;QAChB,UAAU,EAAE,IAAA,+BAAa,EAAC,IAAI,EAAE,gBAAgB,CAAC;QACjD,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC;QACtC,WAAW,EAAE,GAAG,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC,OAAO,IAAI,IAAI,EAAE;QAC1D,gBAAgB;KACjB,CAAC;AACJ,CAAC;AAED,SAAS,6BAA6B,CAAC,UAAkB;IACvD,OAAO,GAAG,IAAA,uBAAc,EAAC,UAAU,CAAC,GAAG,cAAc,EAAE,CAAC;AAC1D,CAAC;AAED,SAAS,QAAQ,CAAC,IAAU,EAAE,OAAyB;IACrD,IAAA,sBAAa,EAAC,IAAI,EAAE,IAAA,gBAAI,EAAC,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,EAAE;QACjE,GAAG,OAAO;QACV,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC;QACtB,cAAc,EAAE,IAAA,uBAAc,EAAC,OAAO,CAAC,WAAW,CAAC;QACnD,gBAAgB,EAAE,6BAA6B,CAAC,OAAO,CAAC,WAAW,CAAC;QACpE,QAAQ,EAAE,EAAE;KACb,CAAC,CAAC;AACL,CAAC;AAED,SAAS,kBAAkB,CACzB,IAAU,EACV,OAIC;IAED,IAAA,mBAAU,EACR,IAAI,EACJ,cAAc,EACd,CAAC,IAAI,EAAE,EAAE;QACP,MAAM,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;QAC/B,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;QACf,gEAAgE;QAChE,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAE7B,0BAA0B;QAC1B,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;YAChC,MAAM,IAAI,KAAK,CAAC,gDAAgD,OAAO,CAAC,UAAU,IAAI,CAAC,CAAC;QAC1F,CAAC;QAED,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,IAAA,0BAAiB,EAAC,OAAO,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;QAE5F,OAAO,IAAI,CAAC;IACd,CAAC,CACF,CAAC;AACJ,CAAC;AAEc,KAAK,UAAU,QAAQ,CAAC,IAAU,EAAE,OAAgC;IACjF,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1D,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;IAClC,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;IAC5C,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/nx-plugin/src/index.ts"],"names":[],"mappings":";AAAA,iDAAiD"}
File without changes
File without changes
File without changes