@storm-software/workspace-tools 1.0.1 → 1.2.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.
Files changed (88) hide show
  1. package/CHANGELOG.md +81 -0
  2. package/README.md +15 -10
  3. package/config/nx.json +22 -53
  4. package/generators.json +8 -1
  5. package/index.d.ts +3 -0
  6. package/index.js +7 -0
  7. package/index.js.map +1 -0
  8. package/package.json +14 -5
  9. package/src/executors/tsup/executor.d.ts +5 -0
  10. package/src/executors/tsup/executor.js +114 -0
  11. package/src/executors/tsup/executor.js.map +1 -0
  12. package/src/executors/tsup/get-config.d.ts +7 -0
  13. package/src/executors/tsup/get-config.js +28 -0
  14. package/src/executors/tsup/get-config.js.map +1 -0
  15. package/src/executors/tsup/hasher.js.map +1 -0
  16. package/src/executors/tsup/schema.d.ts +19 -0
  17. package/src/executors/tsup/schema.json +127 -0
  18. package/src/generators/init/init.d.ts +4 -0
  19. package/src/generators/init/init.js +21 -0
  20. package/src/generators/init/init.js.map +1 -0
  21. package/src/generators/init/schema.d.ts +3 -0
  22. package/src/generators/init/schema.json +16 -0
  23. package/src/generators/preset/files/.all-contributorsrc.template +18 -4
  24. package/src/generators/preset/files/.env.template +14 -35
  25. package/src/generators/preset/files/.gitattributes +9 -0
  26. package/src/generators/preset/files/.github/CONTRIBUTING.md.template +1 -1
  27. package/src/generators/preset/files/.github/ISSUE_TEMPLATE/bug-report.yml.template +38 -7
  28. package/src/generators/preset/files/.github/ISSUE_TEMPLATE/documentation.yml.template +12 -12
  29. package/src/generators/preset/files/.github/ISSUE_TEMPLATE/feature-request.yml.template +4 -7
  30. package/src/generators/preset/files/.github/PULL_REQUEST_TEMPLATE.md.template +1 -1
  31. package/src/generators/preset/files/.github/actions/node/action.yaml +11 -12
  32. package/src/generators/preset/files/.github/codecov.yml +1 -1
  33. package/src/generators/preset/files/.github/renovate.json.template +3 -7
  34. package/src/generators/preset/files/.github/workflows/ci.yml.template +91 -0
  35. package/src/generators/preset/files/.github/workflows/codeql.yml +4 -1
  36. package/src/generators/preset/files/.github/workflows/git-guardian.yml +5 -3
  37. package/src/generators/preset/files/.github/workflows/labels.yml +6 -5
  38. package/src/generators/preset/files/.github/workflows/lock.yml +1 -4
  39. package/src/generators/preset/files/.github/workflows/nextjs-bundle-analysis.yml +12 -28
  40. package/src/generators/preset/files/.husky/post-checkout +1 -2
  41. package/src/generators/preset/files/.husky/post-commit +4 -0
  42. package/src/generators/preset/files/.husky/post-merge +1 -2
  43. package/src/generators/preset/files/.husky/pre-commit +1 -2
  44. package/src/generators/preset/files/.husky/pre-push +3 -2
  45. package/src/generators/preset/files/.markdownlint.json +4 -1
  46. package/src/generators/preset/files/.verdaccio/config.yml.template +1 -1
  47. package/src/generators/preset/files/.vscode/extensions.json +1 -1
  48. package/src/generators/preset/files/.vscode/launch.json +3 -3
  49. package/src/generators/preset/files/README.md.template +31 -30
  50. package/src/generators/preset/files/nx.json +98 -0
  51. package/src/generators/preset/files/pnpm-workspace.yaml +2 -0
  52. package/src/generators/preset/files/socket.yaml +20 -0
  53. package/src/generators/preset/files/tsconfig.base.json.template +1 -1
  54. package/src/generators/preset/generator.js +139 -65
  55. package/src/generators/preset/generator.js.map +1 -1
  56. package/src/generators/preset/schema.d.ts +8 -0
  57. package/src/generators/preset/schema.json +86 -2
  58. package/src/utils/apply-workspace-tokens.d.ts +2 -0
  59. package/src/utils/apply-workspace-tokens.js +42 -0
  60. package/src/utils/apply-workspace-tokens.js.map +1 -0
  61. package/src/utils/get-workspace-root.d.ts +1 -0
  62. package/src/utils/get-workspace-root.js +14 -0
  63. package/src/utils/get-workspace-root.js.map +1 -0
  64. package/src/utils/versions.d.ts +20 -0
  65. package/src/executors/build/executor.d.ts +0 -34
  66. package/src/executors/build/executor.js +0 -51
  67. package/src/executors/build/executor.js.map +0 -1
  68. package/src/executors/build/get-config.d.ts +0 -40
  69. package/src/executors/build/get-config.js +0 -45
  70. package/src/executors/build/get-config.js.map +0 -1
  71. package/src/executors/build/hasher.js.map +0 -1
  72. package/src/executors/build/schema.d.ts +0 -1
  73. package/src/executors/build/schema.json +0 -9
  74. package/src/generators/preset/files/.alexignore +0 -4
  75. package/src/generators/preset/files/.alexrc +0 -39
  76. package/src/generators/preset/files/.github/workflows/ci.yml +0 -131
  77. package/src/generators/preset/files/.github/workflows/documentation.yml.template +0 -85
  78. package/src/generators/preset/files/.husky/commit-msg +0 -4
  79. package/src/generators/preset/files/commitlint.config.d.ts +0 -2
  80. package/src/generators/preset/files/commitlint.config.js +0 -3
  81. package/src/generators/preset/files/commitlint.config.js.map +0 -1
  82. package/src/generators/preset/files/src/index.ts.template +0 -1
  83. package/src/index.d.ts +0 -1
  84. package/src/index.js +0 -5
  85. package/src/index.js.map +0 -1
  86. /package/src/executors/{build → tsup}/hasher.d.ts +0 -0
  87. /package/src/executors/{build → tsup}/hasher.js +0 -0
  88. /package/src/generators/preset/files/{.log4brains.yml → .log4brains.yml.template} +0 -0
@@ -0,0 +1,127 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "version": 2,
4
+ "title": "Build executor",
5
+ "description": "",
6
+ "type": "object",
7
+ "properties": {
8
+ "properties": {
9
+ "main": {
10
+ "type": "string",
11
+ "description": "The path to the entry file, relative to project.",
12
+ "alias": "entryFile",
13
+ "x-completion-type": "file",
14
+ "x-completion-glob": "**/*@(.js|.ts)",
15
+ "x-priority": "important",
16
+ "default": "{sourceRoot}/**/*@(.js|.jsx|.ts|.tsx)"
17
+ },
18
+ "outputPath": {
19
+ "type": "string",
20
+ "description": "The output path of the generated files.",
21
+ "x-completion-type": "directory",
22
+ "x-priority": "important",
23
+ "default": "dist/{projectRoot}"
24
+ },
25
+ "tsConfig": {
26
+ "type": "string",
27
+ "description": "The path to tsconfig file.",
28
+ "x-completion-type": "file",
29
+ "x-completion-glob": "tsconfig.*.json",
30
+ "x-priority": "important",
31
+ "default": "tsconfig.lib.json"
32
+ },
33
+ "additionalEntryPoints": {
34
+ "type": "array",
35
+ "description": "List of additional entry points.",
36
+ "items": {
37
+ "type": "string"
38
+ },
39
+ "default": []
40
+ },
41
+ "external": {
42
+ "type": "array",
43
+ "description": "Mark one or more module as external. Can use * wildcards, such as '*.png'.",
44
+ "items": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "bundle": {
49
+ "type": "boolean",
50
+ "description": "Whether to bundle the main entry point and additional entry points. Set to false to keep individual output files.",
51
+ "default": true
52
+ },
53
+ "watch": {
54
+ "type": "boolean",
55
+ "description": "Enable re-building when files change.",
56
+ "default": false
57
+ },
58
+ "assets": {
59
+ "type": "array",
60
+ "description": "List of static assets.",
61
+ "default": [],
62
+ "items": {
63
+ "$ref": "#/definitions/assetPattern"
64
+ }
65
+ },
66
+ "clean": {
67
+ "type": "boolean",
68
+ "description": "Remove previous output before build.",
69
+ "alias": "deleteOutputPath",
70
+ "default": true
71
+ },
72
+ "minify": {
73
+ "type": "boolean",
74
+ "description": "Minifies outputs.",
75
+ "default": true
76
+ },
77
+ "platform": {
78
+ "type": "string",
79
+ "description": "Platform target for outputs.",
80
+ "enum": ["browser", "node", "neutral"],
81
+ "default": "node"
82
+ },
83
+ "options": {
84
+ "type": "object",
85
+ "description": "Additional options to pass to tsup. See https://paka.dev/npm/tsup@7.2.0/api#d35d54aca71eb26e.",
86
+ "additionalProperties": true,
87
+ "x-priority": "important"
88
+ }
89
+ },
90
+ "required": ["tsConfig", "main"],
91
+ "definitions": {
92
+ "assetPattern": {
93
+ "oneOf": [
94
+ {
95
+ "type": "object",
96
+ "properties": {
97
+ "glob": {
98
+ "type": "string",
99
+ "description": "The pattern to match."
100
+ },
101
+ "input": {
102
+ "type": "string",
103
+ "description": "The input directory path in which to apply `glob`. Defaults to the project root."
104
+ },
105
+ "output": {
106
+ "type": "string",
107
+ "description": "Relative path within the output folder."
108
+ },
109
+ "ignore": {
110
+ "description": "An array of globs to ignore.",
111
+ "type": "array",
112
+ "items": {
113
+ "type": "string"
114
+ }
115
+ }
116
+ },
117
+ "additionalProperties": false,
118
+ "required": ["glob", "input", "output"]
119
+ },
120
+ {
121
+ "type": "string"
122
+ }
123
+ ]
124
+ }
125
+ }
126
+ }
127
+ }
@@ -0,0 +1,4 @@
1
+ import { Tree } from "@nx/devkit";
2
+ import { Schema } from "./schema";
3
+ export declare function stormInitGenerator(tree: Tree, schema: Schema): Promise<import("@nx/devkit").GeneratorCallback>;
4
+ export default stormInitGenerator;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stormInitGenerator = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const devkit_1 = require("@nx/devkit");
6
+ const versions_1 = require("../../utils/versions");
7
+ function stormInitGenerator(tree, schema) {
8
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
9
+ const task = (0, devkit_1.addDependenciesToPackageJson)(tree, {
10
+ "nx": versions_1.nxVersion,
11
+ "@nx/workspace": versions_1.nxVersion
12
+ }, {});
13
+ if (!schema.skipFormat) {
14
+ yield (0, devkit_1.formatFiles)(tree);
15
+ }
16
+ return task;
17
+ });
18
+ }
19
+ exports.stormInitGenerator = stormInitGenerator;
20
+ exports.default = stormInitGenerator;
21
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/generators/init/init.ts"],"names":[],"mappings":";;;;AAAA,uCAA6E;AAC7E,mDAAiD;AAGjD,SAAsB,kBAAkB,CAAC,IAAU,EAAE,MAAc;;QACjE,MAAM,IAAI,GAAG,IAAA,qCAA4B,EACvC,IAAI,EACJ;YACE,IAAI,EAAE,oBAAS;YACf,eAAe,EAAE,oBAAS;SAC3B,EACD,EAAE,CACH,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;YACtB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CAAA;AAfD,gDAeC;AAED,kBAAe,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export interface Schema {
2
+ skipFormat?: boolean;
3
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "StormWorkspaceInit",
4
+ "cli": "nx",
5
+ "title": "Init Storm Workspace Plugin",
6
+ "description": "Init Storm Workspace Plugin.",
7
+ "type": "object",
8
+ "properties": {
9
+ "skipFormat": {
10
+ "description": "Skip formatting files.",
11
+ "type": "boolean",
12
+ "default": false
13
+ }
14
+ },
15
+ "required": []
16
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "projectName": "<%= name %>",
3
- "projectOwner": "sullivanpj",
3
+ "projectOwner": "storm-software",
4
4
  "repoType": "github",
5
5
  "repoHost": "https://github.com",
6
6
  "files": [
@@ -14,9 +14,13 @@
14
14
  "login": "sullivanpj",
15
15
  "name": "Patrick Sullivan",
16
16
  "avatar_url": "https://avatars.githubusercontent.com/u/99053093?v=4",
17
- "profile": "http://www.patsullivan.dev/",
17
+ "profile": "http://www.sullypat.com/",
18
18
  "contributions": [
19
- "tool"
19
+ "design",
20
+ "code",
21
+ "tool",
22
+ "doc",
23
+ "test"
20
24
  ]
21
25
  },
22
26
  {
@@ -27,8 +31,18 @@
27
31
  "contributions": [
28
32
  "design"
29
33
  ]
34
+ },
35
+ {
36
+ "login": "stormie-bot",
37
+ "name": "Stormie",
38
+ "avatar_url": "https://avatars.githubusercontent.com/u/149802440?v=4",
39
+ "profile": "http://stormsoftware.org",
40
+ "contributions": [
41
+ "maintenance"
42
+ ]
30
43
  }
31
44
  ],
32
45
  "contributorsPerLine": 7,
33
- "linkToUsage": true
46
+ "linkToUsage": true,
47
+ "commitType": "docs"
34
48
  }
@@ -1,58 +1,38 @@
1
- CI=true
2
- TYPESENSE_API_KEY=xyz
1
+ TYPESENSE_API_KEY="xyz"
3
2
  NODE_OPTIONS="--trace-warnings --heapsnapshot-near-heap-limit=3 --heapsnapshot-signal=SIGTERM"
4
3
 
5
- ROOT_HOST=192.168.1.18
6
- HOST_SERVER=host.docker.internal
7
4
  AKKA_STREAMS_KAFKA_TEST_FILE_LOGGING=true
8
- RUST_BACKTRACE=full
5
+ RUST_BACKTRACE="full"
9
6
  # PUPPETEER_SKIP_DOWNLOAD=true
10
7
 
11
- HS_SERVICE_NAME="@<%= name %>/monorepo"
12
- # HS_DEBUG=true
8
+ HS_SERVICE_NAME="@<%= organization %>/<%= name %>"
13
9
 
14
- SENTRY_ORGANIZATION="storm-software"
10
+ SENTRY_ORGANIZATION="stormstack"
15
11
  SENTRY_PROPERTIES="apps/web/shell"
16
12
 
17
13
  DEFAULT_LOCALE="en_US"
18
14
  DEFAULT_TIMEZONE="America/New_York"
19
15
 
20
- CI_REPO_OWNER="sullivanpj"
21
- CI_REPO_WORKER="🤖 Storm Bot"
22
- CI_REPO_NAME="<%= name %>"
23
- CI_REPO_URL="https://github.com/storm-software/<%= name %>"
24
- CI_BRANCH="main"
25
- CI_PRE_MAJOR=true
26
-
27
- # OAUTH_GOOGLE_CLIENT_ID=
28
- # OAUTH_GOOGLE_CLIENT_SECRET=
29
- # OAUTH_GOOGLE_AUTHORIZATION_ENDPOINT=
30
- # OAUTH_GOOGLE_TOKEN_ENDPOINT=
31
-
32
- VIRUS_TOTAL_API_URL="https://www.virustotal.com"
33
- # VIRUS_TOTAL_API_KEY=
34
-
35
- UPSTASH_KAFKA_REST_URL="https://fitting-dassie-7031-us1-rest-kafka.upstash.io"
36
- # UPSTASH_KAFKA_REST_USERNAME=
37
- # UPSTASH_KAFKA_REST_PASSWORD=
38
-
39
- PRISMA_GENERATE_DATAPROXY=true
40
- FORECAST_RUNTIME_MODULE="node_modules/.storm"
41
-
42
- NO_D1_WARNING=true
16
+ STORM_REPO_ROOT=
17
+ STORM_REPO_OWNER="sullivanpj"
18
+ STORM_REPO_WORKER="stormie-bot"
19
+ STORM_REPO_ORG="<%= organization %>"
20
+ STORM_REPO_NAME="<%= name %>"
21
+ STORM_REPO_URL="https://github.com/<%= organization %>/<%= name %>"
22
+ STORM_BRANCH="main"
23
+ STORM_PRE_MAJOR=false
43
24
 
44
25
  INFISICAL_ENVIRONMENT="prod"
45
26
 
46
27
  READINESS_CHECK_PATH="/readiness"
47
28
  HEALTH_CHECK_PATH="/healthcheck"
48
29
 
49
- LOG_LEVEL="debug"
30
+ LOG_LEVEL="info"
50
31
  # LOG_PATH="C:\\Development\\stormstack\\logs"
51
32
 
52
- PNPM_VERSION="8.7.4"
33
+ PNPM_VERSION="8.10.2"
53
34
 
54
35
  DEV_EDITOR_ID="vscode"
55
- DEV_REPO_ROOT="C:\\Development\\<%= name %>"
56
36
 
57
37
  THEME_PRIMARY_COLOR="#1fb2a6"
58
38
  THEME_BACKGROUND_COLOR="#1d232a"
@@ -61,4 +41,3 @@ THEME_INFO_COLOR="#0ea5e9"
61
41
  THEME_WARNING_COLOR="#fcc419"
62
42
  THEME_ERROR_COLOR="#7d1a1a"
63
43
 
64
- # NODE_ENV=production
@@ -41,3 +41,12 @@
41
41
 
42
42
  # Other
43
43
  *.exe filter=lfs diff=lfs merge=lfs -text
44
+
45
+ ###############################
46
+ # GitHub linguist #
47
+ ###############################
48
+
49
+ apps/**/.next/** -text linguist-vendored
50
+
51
+ # Make dist folder indexable for github search
52
+ dist/** linguist-generated=false
@@ -4,7 +4,7 @@
4
4
 
5
5
  If you want to make a small change, go ahead and raise a pull request, otherwise follow these steps:
6
6
 
7
- 1. View the [Issues](https://github.com/storm-software/<%= name %>/issues) page to see a To-Do list of things to be implemented.
7
+ 1. View the [Issues](https://github.com/<%= organization %>/<%= name %>/issues) page to see a To-Do list of things to be implemented.
8
8
  2. Raise an issue or comment on an existing issue with what you want to contribute if one does not already exist.
9
9
  3. When you get the go ahead, follow the coding guidelines and raise a pull request.
10
10
  4. Include a link to the issue in your pull request.
@@ -16,7 +16,7 @@ body:
16
16
  description: How can we get in touch with you if we need more info?
17
17
  placeholder: ex. email@example.com
18
18
  validations:
19
- required: false
19
+ required: true
20
20
  - type: textarea
21
21
  id: actual-results
22
22
  attributes:
@@ -35,20 +35,51 @@ body:
35
35
  value: "What behavior are you expecting to experience?"
36
36
  validations:
37
37
  required: true
38
+ - type: dropdown
39
+ id: package
40
+ attributes:
41
+ label: Package Name
42
+ description: Which package are you experiencing this error with?
43
+ multiple: true
44
+ options:
45
+ - create-storm-workspace
46
+ - Linting Tools
47
+ - Git Tools
48
+ - Workspace Tools
49
+ validations:
50
+ required: true
38
51
  - type: dropdown
39
52
  id: version
40
53
  attributes:
41
54
  label: Version
42
55
  description: What version of our software are you running?
43
56
  options:
44
- - 1.0.2 (Default)
45
- - 1.0.3 (Edge)
57
+ - 1.0.0
46
58
  validations:
47
- required: true
59
+ required: false
60
+ - type: dropdown
61
+ id: operating-system
62
+ attributes:
63
+ label: What platform(s) are you seeing the problem in?
64
+ multiple: true
65
+ options:
66
+ - Microsoft Windows
67
+ - MacOS
68
+ - ChromeOS
69
+ - iOS
70
+ - Android
71
+ - Ubuntu
72
+ - Debian
73
+ - Fedora
74
+ - CentOS
75
+ - Linux (General)
76
+ - Other
77
+ validations:
78
+ required: false
48
79
  - type: dropdown
49
80
  id: browsers
50
81
  attributes:
51
- label: What browsers are you seeing the problem on?
82
+ label: What browsers are you seeing the problem on (if applicable)?
52
83
  multiple: true
53
84
  options:
54
85
  - Firefox
@@ -62,10 +93,10 @@ body:
62
93
  description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
63
94
  render: TypeScript
64
95
  - type: checkboxes
65
- id: terms
96
+ id: agreed
66
97
  attributes:
67
98
  label: Code of Conduct
68
- description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/storm-software/<%= name %>/blob/main/.github/CODE_OF_CONDUCT.md)
99
+ description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/<%= organization %>/<%= name %>/blob/main/.github/CODE_OF_CONDUCT.md)
69
100
  options:
70
101
  - label: I agree to follow this project's Code of Conduct
71
102
  required: true
@@ -8,7 +8,7 @@ body:
8
8
  - type: markdown
9
9
  attributes:
10
10
  value: |
11
- Thanks for taking the time to help us improve our docs!
11
+ Thanks for taking the time to help us improve the ⚡Storm Docs!
12
12
  - type: input
13
13
  id: contact
14
14
  attributes:
@@ -16,25 +16,26 @@ body:
16
16
  description: How can we get in touch with you if we need more info?
17
17
  placeholder: ex. email@example.com
18
18
  validations:
19
- required: false
20
- - type: checkboxes
19
+ required: true
20
+ - type: dropdown
21
21
  id: type
22
22
  attributes:
23
23
  label: Documentation issue
24
24
  description: Reason for this request
25
+ multiple: true
25
26
  options:
26
- - label: Reporting a typo
27
- - label: Reporting a documentation bug
28
- - label: Documentation improvement
29
- - label: Documentation feedback
30
- required: true
27
+ - Reporting a typo
28
+ - Reporting a documentation bug
29
+ - Documentation improvement
30
+ - Documentation feedback
31
+ validations:
32
+ required: true
31
33
  - type: input
32
34
  id: description
33
35
  attributes:
34
36
  label: Is there a specific documentation page you are reporting?
35
37
  description: Enter the URL or documentation section here.
36
38
  placeholder: Enter the URL or documentation section here.
37
- value: "Enter the URL or documentation section here."
38
39
  validations:
39
40
  required: true
40
41
  - type: textarea
@@ -43,14 +44,13 @@ body:
43
44
  label: Additional context or description
44
45
  description: Provide any additional details here as needed.
45
46
  placeholder: Provide any additional details here as needed.
46
- value: "Provide any additional details here as needed."
47
47
  validations:
48
48
  required: false
49
49
  - type: checkboxes
50
- id: terms
50
+ id: agreed
51
51
  attributes:
52
52
  label: Code of Conduct
53
- description: By submitting this request, you agree to follow our [Code of Conduct](https://github.com/storm-software/<%= name %>/blob/main/.github/CODE_OF_CONDUCT.md)
53
+ description: By submitting this request, you agree to follow our [Code of Conduct](https://github.com/<%= organization %>/<%= name %>/blob/main/.github/CODE_OF_CONDUCT.md)
54
54
  options:
55
55
  - label: I agree to follow this project's Code of Conduct
56
56
  required: true
@@ -17,14 +17,13 @@ body:
17
17
  description: How can we get in touch with you if we need more info?
18
18
  placeholder: ex. email@example.com
19
19
  validations:
20
- required: false
20
+ required: true
21
21
  - type: textarea
22
22
  id: description
23
23
  attributes:
24
24
  label: Description
25
25
  description: What is the behavior that you would like to see introduced?
26
26
  placeholder: What is the behavior that you would like to see introduced?
27
- value: "What is the behavior that you would like to see introduced?"
28
27
  validations:
29
28
  required: true
30
29
  - type: textarea
@@ -33,7 +32,6 @@ body:
33
32
  label: Motivation
34
33
  description: Why do you believe this behavior would be beneficial?
35
34
  placeholder: Why do you believe this behavior would be beneficial?
36
- value: "Why do you believe this behavior would be beneficial?"
37
35
  validations:
38
36
  required: false
39
37
  - type: textarea
@@ -42,7 +40,6 @@ body:
42
40
  label: Suggested Implementation
43
41
  description: How do you imagine this might work?
44
42
  placeholder: How do you imagine this might work?
45
- value: "How do you imagine this might work?"
46
43
  validations:
47
44
  required: false
48
45
  - type: checkboxes
@@ -51,13 +48,13 @@ body:
51
48
  label: Contribution
52
49
  description: Willingness to contribute
53
50
  options:
54
- - label: I'd be willing to implement this feature ([contributing guide](https://github.com/storm-software/<%= name %>/blob/main/.github/CONTRIBUTING.md))
51
+ - label: I'd be willing to implement this feature ([contributing guide](https://github.com/<%= organization %>/<%= name %>/blob/main/.github/CONTRIBUTING.md))
55
52
  required: false
56
53
  - type: checkboxes
57
- id: terms
54
+ id: agreed
58
55
  attributes:
59
56
  label: Code of Conduct
60
- description: By submitting this request, you agree to follow our [Code of Conduct](https://github.com/storm-software/<%= name %>/blob/main/.github/CODE_OF_CONDUCT.md)
57
+ description: By submitting this request, you agree to follow our [Code of Conduct](https://github.com/<%= organization %>/<%= name %>/blob/main/.github/CODE_OF_CONDUCT.md)
61
58
  options:
62
59
  - label: I agree to follow this project's Code of Conduct
63
60
  required: true
@@ -4,7 +4,7 @@
4
4
 
5
5
  Thank you good citizen for your hard work! Please provide the below details describing your PR.
6
6
 
7
- **Note:** Please read the [contributing guide](https://github.com/storm-software/stormstack/blob/main/.github/CONTRIBUTING.md) before raising a pull request.
7
+ **Note:** Please read the [contributing guide](https://github.com/<%= organization %>/<%= name %>/blob/main/.github/CONTRIBUTING.md) before raising a pull request.
8
8
 
9
9
  ## Pull request type
10
10
 
@@ -1,10 +1,6 @@
1
- name: "Setup Node"
1
+ name: "Setup Workspace"
2
2
  description: "This action install node and cache modules. It uses pnpm as package manager."
3
3
  inputs:
4
- node-version:
5
- description: "The node version to install (Default: lts)"
6
- default: "lts/*"
7
- required: false
8
4
  working-directory:
9
5
  description: "The working directory of your node package"
10
6
  default: "."
@@ -20,7 +16,7 @@ runs:
20
16
  - uses: pnpm/action-setup@v2.4.0
21
17
  id: pnpm-install
22
18
  with:
23
- version: 8.6.10
19
+ version: 8.7.4
24
20
  run_install: false
25
21
 
26
22
  - name: Get pnpm store directory
@@ -29,14 +25,17 @@ runs:
29
25
  run: |
30
26
  echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
31
27
 
32
- - uses: actions/cache@v3
33
- name: Setup pnpm cache
28
+ - uses: actions/setup-node@v4
34
29
  with:
35
- path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
36
- key: ${{ runner.os }}-pnpm-8-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37
- restore-keys: |
38
- ${{ runner.os }}-pnpm-8-store-
30
+ registry-url: https://registry.npmjs.org/
31
+ node-version-file: .github/.nvmrc
32
+ cache: pnpm
33
+ cache-dependency-path: pnpm-lock.yaml
39
34
 
40
35
  - name: setup pnpm config registry
41
36
  run: pnpm config set registry https://registry.npmjs.org
42
37
  shell: bash
38
+
39
+ - name: setup pnpm config registry
40
+ run: pnpm install
41
+ shell: bash
@@ -26,4 +26,4 @@ comment:
26
26
  require_changes: false # if true: only post the comment if coverage changes
27
27
  require_base: false # [yes :: must have a base report to post]
28
28
  require_head: true # [yes :: must have a head report to post]
29
- branches: ["main", "master"]
29
+ branches: ["main"]
@@ -22,14 +22,14 @@
22
22
  },
23
23
  "packageRules": [
24
24
  {
25
- "matchPackagePatterns": ["^@<%= name %>/"],
25
+ "matchPackagePatterns": ["^@<%= namespace %>/"],
26
26
  "enabled": true
27
27
  },
28
28
  {
29
29
  "matchPackageNames": ["@nx"],
30
30
  "postUpgradeTasks": {
31
31
  "commands": [
32
- "npx nx migrate latest --run-migrations --create-commits --commit-message='chore(<%= name %>): update @nx dependencies'"
32
+ "npx nx migrate latest --run-migrations --create-commits --commit-message='chore(<%= name %>): update @nx dependencies [skip ci]'"
33
33
  ]
34
34
  }
35
35
  },
@@ -47,9 +47,5 @@
47
47
  "depTypeList": ["dependencies"],
48
48
  "updateTypes": ["patch", "pin"]
49
49
  }
50
- ],
51
- "vulnerabilityAlerts": {
52
- "enabled": true
53
- },
54
- "osvVulnerabilityAlerts": true
50
+ ]
55
51
  }