@clipboard-health/nx-plugin 0.0.0 → 0.1.0

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.
package/.eslintrc.json CHANGED
@@ -2,31 +2,16 @@
2
2
  "extends": ["../../.eslintrc.json"],
3
3
  "ignorePatterns": ["!**/*"],
4
4
  "overrides": [
5
- {
6
- "files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7
- "rules": {}
8
- },
9
- {
10
- "files": ["*.ts", "*.tsx"],
11
- "rules": {}
12
- },
13
- {
14
- "files": ["*.js", "*.jsx"],
15
- "rules": {}
16
- },
17
5
  {
18
6
  "files": ["*.json"],
19
7
  "parser": "jsonc-eslint-parser",
20
8
  "rules": {
21
9
  "@nx/dependency-checks": "error"
22
10
  }
23
- },
24
- {
25
- "files": ["./package.json", "./generators.json"],
26
- "parser": "jsonc-eslint-parser",
27
- "rules": {
28
- "@nx/nx-plugin-checks": "error"
29
- }
30
11
  }
31
- ]
12
+ ],
13
+ "parserOptions": {
14
+ "project": "tsconfig.lint.json",
15
+ "tsconfigRootDir": "packages/nx-plugin"
16
+ }
32
17
  }
package/README.md CHANGED
@@ -44,7 +44,7 @@ To keep the same project name while avoiding publishing version conflicts, creat
44
44
  git checkout main
45
45
 
46
46
  # Where [VERSION] is the current version of the project
47
- git tag --annotate [PROJECT_NAME]-[VERSION] --message "Port from [OLD_LOCATION]"
47
+ git tag --annotate [PROJECT_NAME]@[VERSION] --message "Port from [OLD_LOCATION]"
48
48
 
49
- git push origin [PROJECT_NAME]-[VERSION]
49
+ git push origin [PROJECT_NAME]@[VERSION]
50
50
  ```
package/jest.config.ts CHANGED
@@ -1,13 +1,12 @@
1
- /* eslint-disable */
2
1
  export default {
3
2
  coverageDirectory: "../../coverage/packages/nx-plugin",
4
3
  coveragePathIgnorePatterns: [],
5
4
  coverageThreshold: {
6
5
  global: {
7
- branches: 80,
6
+ branches: 100,
8
7
  functions: 100,
9
- lines: 95,
10
- statements: 95,
8
+ lines: 100,
9
+ statements: 100,
11
10
  },
12
11
  },
13
12
  displayName: "nx-plugin",
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.0.0",
4
+ "version": "0.1.0",
5
5
  "bugs": "https://github.com/clipboardhealth/core-utils/issues",
6
6
  "dependencies": {
7
7
  "@nx/devkit": "19.5.6",
@@ -10,12 +10,12 @@
10
10
  },
11
11
  "generators": "./generators.json",
12
12
  "keywords": [
13
- "Generator",
14
- "Library",
15
- "Node",
16
- "Nx",
17
- "Plugin",
18
- "TypeScript"
13
+ "generator",
14
+ "library",
15
+ "node",
16
+ "nx",
17
+ "plugin",
18
+ "typescript"
19
19
  ],
20
20
  "license": "MIT",
21
21
  "main": "./src/index.js",
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "extends": ["<%= offsetFromRoot %>.eslintrc.json"],
3
3
  "ignorePatterns": ["!**/*"],
4
+ "overrides": [
5
+ {
6
+ "files": ["*.json"],
7
+ "parser": "jsonc-eslint-parser",
8
+ "rules": {
9
+ "@nx/dependency-checks": "error"
10
+ }
11
+ }
12
+ ],
4
13
  "parserOptions": {
5
14
  "project": "tsconfig.lint.json",
6
15
  "tsconfigRootDir": "packages/<%= projectName %>"
@@ -1,10 +1,22 @@
1
1
  {
2
2
  "name": "<%= importPath %>",
3
- "version": "0.0.1",
3
+ "description": "",
4
+ "version": "0.0.0",
5
+ "bugs": "https://github.com/clipboardhealth/core-utils/issues",
4
6
  "dependencies": {
5
7
  "tslib": "2.6.3"
6
8
  },
9
+ "keywords": [],
10
+ "license": "MIT",
7
11
  "main": "./src/index.js",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/clipboardhealth/core-utils.git",
18
+ "directory": "packages/<%= projectName %>"
19
+ },
8
20
  "type": "commonjs",
9
21
  "typings": "./src/index.d.ts"
10
22
  }
@@ -2,15 +2,7 @@
2
2
  "$schema": "../../node_modules/nx/schemas/project-schema.json",
3
3
  "name": "<%= projectName %>",
4
4
  "projectType": "library",
5
- "sourceRoot": "packages/<%= projectName %>/src",<% if (publishable) { %>
6
- "release": {
7
- "version": {
8
- "generatorOptions": {
9
- "packageRoot": "dist/{projectRoot}",
10
- "currentVersionResolver": "git-tag"
11
- }
12
- }
13
- },<% } %>
5
+ "sourceRoot": "packages/<%= projectName %>/src",
14
6
  "tags": [],
15
7
  "targets": {
16
8
  "build": {
@@ -30,12 +22,7 @@
30
22
  "maxWarnings": 0
31
23
  },
32
24
  "outputs": ["{options.outputFile}"]
33
- },<% if (publishable) { %>
34
- "nx-release-publish": {
35
- "options": {
36
- "packageRoot": "dist/{projectRoot}"
37
- }
38
- },<% } %>
25
+ },
39
26
  "test": {
40
27
  "executor": "@nx/jest:jest",
41
28
  "options": {
@@ -64,8 +64,10 @@ function updateRootTsConfig(
64
64
  (json) => {
65
65
  const c = json.compilerOptions;
66
66
  c.paths ||= {};
67
+ // eslint-disable-next-line @typescript-eslint/no-dynamic-delete
67
68
  delete c.paths[options.name];
68
69
 
70
+ /* istanbul ignore next */
69
71
  if (c.paths[options.importPath]) {
70
72
  throw new Error(`There is already a library with import path "${options.importPath}".`);
71
73
  }
package/src/index.ts CHANGED
@@ -0,0 +1 @@
1
+ // eslint-disable-next-line unicorn/no-empty-file
package/tsconfig.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../tsconfig.base.json",
3
3
  "compilerOptions": {
4
- "module": "commonjs",
5
4
  "outDir": "../../dist/out-tsc"
6
5
  },
7
6
  "files": [],
@@ -10,6 +9,9 @@
10
9
  {
11
10
  "path": "./tsconfig.lib.json"
12
11
  },
12
+ {
13
+ "path": "./tsconfig.lint.json"
14
+ },
13
15
  {
14
16
  "path": "./tsconfig.spec.json"
15
17
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "types": ["jest", "node"]
5
+ },
6
+ "include": ["."]
7
+ }