@storm-software/workspace-tools 1.0.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/README.md +136 -0
- package/config/nx.json +165 -0
- package/executors.json +10 -0
- package/generators.json +10 -0
- package/package.json +46 -0
- package/src/executors/build/executor.d.ts +34 -0
- package/src/executors/build/executor.js +51 -0
- package/src/executors/build/executor.js.map +1 -0
- package/src/executors/build/get-config.d.ts +40 -0
- package/src/executors/build/get-config.js +45 -0
- package/src/executors/build/get-config.js.map +1 -0
- package/src/executors/build/hasher.d.ts +8 -0
- package/src/executors/build/hasher.js +15 -0
- package/src/executors/build/hasher.js.map +1 -0
- package/src/executors/build/schema.d.ts +1 -0
- package/src/executors/build/schema.json +9 -0
- package/src/generators/preset/files/.alexignore +4 -0
- package/src/generators/preset/files/.alexrc +39 -0
- package/src/generators/preset/files/.all-contributorsrc.template +34 -0
- package/src/generators/preset/files/.editorconfig +454 -0
- package/src/generators/preset/files/.env.template +64 -0
- package/src/generators/preset/files/.eslintrc.json +123 -0
- package/src/generators/preset/files/.gitattributes +43 -0
- package/src/generators/preset/files/.github/.nvmrc +1 -0
- package/src/generators/preset/files/.github/CODEOWNERS +1 -0
- package/src/generators/preset/files/.github/CODE_OF_CONDUCT.md +125 -0
- package/src/generators/preset/files/.github/CONTRIBUTING.md.template +15 -0
- package/src/generators/preset/files/.github/ISSUE_TEMPLATE/bug-report.yml.template +71 -0
- package/src/generators/preset/files/.github/ISSUE_TEMPLATE/documentation.yml.template +56 -0
- package/src/generators/preset/files/.github/ISSUE_TEMPLATE/feature-request.yml.template +63 -0
- package/src/generators/preset/files/.github/PULL_REQUEST_TEMPLATE.md.template +39 -0
- package/src/generators/preset/files/.github/SECURITY.md +9 -0
- package/src/generators/preset/files/.github/actions/node/action.yaml +42 -0
- package/src/generators/preset/files/.github/codecov.yml +29 -0
- package/src/generators/preset/files/.github/labels.yml +78 -0
- package/src/generators/preset/files/.github/renovate.json.template +55 -0
- package/src/generators/preset/files/.github/stale.yml +50 -0
- package/src/generators/preset/files/.github/workflows/ci.yml +131 -0
- package/src/generators/preset/files/.github/workflows/codeql.yml +81 -0
- package/src/generators/preset/files/.github/workflows/cr.yml +18 -0
- package/src/generators/preset/files/.github/workflows/documentation.yml.template +85 -0
- package/src/generators/preset/files/.github/workflows/git-guardian.yml +21 -0
- package/src/generators/preset/files/.github/workflows/greetings.yml +24 -0
- package/src/generators/preset/files/.github/workflows/labels.yml +30 -0
- package/src/generators/preset/files/.github/workflows/lock.yml +29 -0
- package/src/generators/preset/files/.github/workflows/nextjs-bundle-analysis.yml +139 -0
- package/src/generators/preset/files/.husky/commit-msg +4 -0
- package/src/generators/preset/files/.husky/post-checkout +6 -0
- package/src/generators/preset/files/.husky/post-merge +6 -0
- package/src/generators/preset/files/.husky/pre-commit +5 -0
- package/src/generators/preset/files/.husky/pre-push +3 -0
- package/src/generators/preset/files/.log4brains.yml +5 -0
- package/src/generators/preset/files/.markdownlint.json +25 -0
- package/src/generators/preset/files/.verdaccio/config.yml.template +40 -0
- package/src/generators/preset/files/.vscode/cspell.json +3 -0
- package/src/generators/preset/files/.vscode/extensions.json +14 -0
- package/src/generators/preset/files/.vscode/launch.json +39 -0
- package/src/generators/preset/files/.vscode/settings.json +300 -0
- package/src/generators/preset/files/.vscode/tasks.json +19 -0
- package/src/generators/preset/files/LICENSE +201 -0
- package/src/generators/preset/files/README.md.template +270 -0
- package/src/generators/preset/files/commitlint.config.d.ts +2 -0
- package/src/generators/preset/files/commitlint.config.js +3 -0
- package/src/generators/preset/files/commitlint.config.js.map +1 -0
- package/src/generators/preset/files/jest.config.d.ts +47 -0
- package/src/generators/preset/files/jest.config.js +58 -0
- package/src/generators/preset/files/jest.config.js.map +1 -0
- package/src/generators/preset/files/pnpm-workspace.yaml +4 -0
- package/src/generators/preset/files/src/index.ts.template +1 -0
- package/src/generators/preset/files/tsconfig.base.json.template +15 -0
- package/src/generators/preset/generator.d.ts +3 -0
- package/src/generators/preset/generator.js +148 -0
- package/src/generators/preset/generator.js.map +1 -0
- package/src/generators/preset/schema.d.ts +3 -0
- package/src/generators/preset/schema.json +18 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +5 -0
- package/src/index.js.map +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
<!-- START header -->
|
|
2
|
+
<!-- prettier-ignore-start -->
|
|
3
|
+
<!-- markdownlint-disable -->
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<div align="center"><img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/logo-banner.png" width="100%" altText="Storm Software" /></div>
|
|
7
|
+
|
|
8
|
+
<div align="center">
|
|
9
|
+
<a href="https://stormsoftware.org" target="_blank">Website</a> | <a href="https://stormsoftware.org/contact" target="_blank">Contact</a> | <a href="https://github.com/storm-software/stormstack" target="_blank">Repository</a> | <a href="https://stormstack.github.io/stormstack/" target="_blank">Documentation</a> | <a href="https://github.com/storm-software/stormstack/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a> | <a href="https://github.com/storm-software/stormstack/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=Feature Request%3A+">Request a Feature</a> | <a href="https://github.com/storm-software/stormstack/issues/new?assignees=&labels=documentation&template=documentation.yml&title=Documentation Request%3A+">Request Documentation</a> | <a href="https://github.com/storm-software/stormstack/discussions">Ask a Question</a>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<br />
|
|
13
|
+
The <b>⚡Storm-Ops</b> monorepo contains CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
|
|
14
|
+
<br />
|
|
15
|
+
Storm workspaces are built using <a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools for monorepos, which helps you develop like Google, Facebook, and Microsoft. Building on top of Nx, the Open System provides a set of tools and patterns that help you scale your monorepo to many teams while keeping the codebase maintainable.
|
|
16
|
+
|
|
17
|
+
<h4 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer<br /><br /></h4>
|
|
18
|
+
|
|
19
|
+
[](https://prettier.io/)
|
|
20
|
+
[](http://nx.dev/) [](https://nextjs.org/) [](https://codecov.io/github/commitizen/cz-cli?branch=master) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<!-- markdownlint-restore -->
|
|
24
|
+
<!-- prettier-ignore-end -->
|
|
25
|
+
|
|
26
|
+
<!-- END header -->
|
|
27
|
+
|
|
28
|
+
# Storm Workspace Tools
|
|
29
|
+
|
|
30
|
+
A package containing tools for managing a Storm workspace. It includes various [Nx](https://nx.dev) generators and executors for common development tasks.
|
|
31
|
+
|
|
32
|
+
<!-- START doctoc -->
|
|
33
|
+
<!-- END doctoc -->
|
|
34
|
+
|
|
35
|
+
This library was generated with [Nx](https://nx.dev).
|
|
36
|
+
|
|
37
|
+
## Building
|
|
38
|
+
|
|
39
|
+
Run `nx build workspace-tools` to build the library.
|
|
40
|
+
|
|
41
|
+
## Running unit tests
|
|
42
|
+
|
|
43
|
+
Run `nx test workspace-tools` to execute the unit tests via [Jest](https://jestjs.io).
|
|
44
|
+
|
|
45
|
+
<!-- START footer -->
|
|
46
|
+
<!-- prettier-ignore-start -->
|
|
47
|
+
<!-- markdownlint-disable -->
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## Roadmap
|
|
51
|
+
|
|
52
|
+
See the [open issues](https://github.com/storm-software/stormstack/issues) for a list of proposed features (and known issues).
|
|
53
|
+
|
|
54
|
+
- [Top Feature Requests](https://github.com/storm-software/stormstack/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc) (Add your votes using the 👍 reaction)
|
|
55
|
+
- [Top Bugs](https://github.com/storm-software/stormstack/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc) (Add your votes using the 👍 reaction)
|
|
56
|
+
- [Newest Bugs](https://github.com/storm-software/stormstack/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
|
|
57
|
+
|
|
58
|
+
## Support
|
|
59
|
+
|
|
60
|
+
Reach out to the maintainer at one of the following places:
|
|
61
|
+
|
|
62
|
+
- [Contact](https://stormcloud.dev/contact)
|
|
63
|
+
- [GitHub discussions](https://github.com/storm-software/stormstack/discussions)
|
|
64
|
+
- <support@stormcloud.dev>
|
|
65
|
+
|
|
66
|
+
## License
|
|
67
|
+
|
|
68
|
+
This project is licensed under the **Apache License 2.0**. Feel free to edit and distribute this template as you like.
|
|
69
|
+
|
|
70
|
+
See [LICENSE](LICENSE) for more information.
|
|
71
|
+
|
|
72
|
+
## Changelog
|
|
73
|
+
|
|
74
|
+
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every release, along with the migration instructions, is documented in the [CHANGELOG](CHANGELOG.md) file
|
|
75
|
+
|
|
76
|
+
## Contributing
|
|
77
|
+
|
|
78
|
+
First off, thanks for taking the time to contribute! Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are **greatly appreciated**.
|
|
79
|
+
|
|
80
|
+
Please try to create bug reports that are:
|
|
81
|
+
|
|
82
|
+
- _Reproducible._ Include steps to reproduce the problem.
|
|
83
|
+
- _Specific._ Include as much detail as possible: which version, what environment, etc.
|
|
84
|
+
- _Unique._ Do not duplicate existing opened issues.
|
|
85
|
+
- _Scoped to a Single Bug._ One bug per report.
|
|
86
|
+
|
|
87
|
+
Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
|
|
88
|
+
|
|
89
|
+
You can use [markdownlint-cli](https://github.com/storm-software/stormstack/markdownlint-cli) to check for common markdown style inconsistency.
|
|
90
|
+
|
|
91
|
+
## Contributors
|
|
92
|
+
|
|
93
|
+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
94
|
+
|
|
95
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
96
|
+
|
|
97
|
+
<table>
|
|
98
|
+
<tbody>
|
|
99
|
+
<tr>
|
|
100
|
+
<td align="center"><a href="http://www.sullypat.com/"><img src="https://avatars.githubusercontent.com/u/99053093?v=4?s=100" width="100px;" alt="Patrick Sullivan"/><br /><sub><b>Patrick Sullivan</b></sub></a><br /><a href="#design-sullivanpj" title="Design">🎨</a> <a href="https://github.com/storm-software/stormstack/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/stormstack/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/stormstack/commits?author=sullivanpj" title="Tests">⚠️</a></td>
|
|
101
|
+
<td align="center"><a href="https://tylerbenning.com/"><img src="https://avatars.githubusercontent.com/u/7265547?v=4?s=100" width="100px;" alt="Tyler Benning"/><br /><sub><b>Tyler Benning</b></sub></a><br /><a href="#design-tbenning" title="Design">🎨</a></td>
|
|
102
|
+
</tr>
|
|
103
|
+
</tbody>
|
|
104
|
+
<tfoot>
|
|
105
|
+
<tr>
|
|
106
|
+
<td align="center" size="13px" colspan="7">
|
|
107
|
+
<a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
|
|
108
|
+
</td>
|
|
109
|
+
</tr>
|
|
110
|
+
</tfoot>
|
|
111
|
+
</table>
|
|
112
|
+
|
|
113
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
114
|
+
|
|
115
|
+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|
|
116
|
+
|
|
117
|
+
<br />
|
|
118
|
+
<br />
|
|
119
|
+
<div align="center">
|
|
120
|
+
<img src="https://pub-e71cff0f90204755bc910518d63cacf8.r2.dev/logo-opengraph.gif" width="100%"/>
|
|
121
|
+
</div>
|
|
122
|
+
<div align="center">
|
|
123
|
+
<a href="https://www.patsullivan.org" target="_blank">Website</a> | <a href="https://stormcloud.dev/contact" target="_blank">Contact</a> | <a href="https://linkedin.com/in/patrick-sullivan-865526b0" target="_blank">LinkedIn</a> | <a href="https://medium.com/@pat.joseph.sullivan" target="_blank">Medium</a> | <a href="https://github.com/sullivanpj" target="_blank">GitHub</a> | <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<div align="center">
|
|
127
|
+
<p><b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D</p>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<h4 align="center">💻 Visit <a href="https://www.patsullivan.org" target="_blank">patsullivan.org</a> to stay up to date with this developer<br /><br /></h4>
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
<!-- markdownlint-restore -->
|
|
134
|
+
<!-- prettier-ignore-end -->
|
|
135
|
+
|
|
136
|
+
<!-- END footer -->
|
package/config/nx.json
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../../node_modules/nx/schemas/nx-schema.json",
|
|
3
|
+
"extends": "nx/presets/npm.json",
|
|
4
|
+
"affected": {
|
|
5
|
+
"defaultBase": "main"
|
|
6
|
+
},
|
|
7
|
+
"workspaceLayout": {
|
|
8
|
+
"projectNameAndRootFormat": "as-provided"
|
|
9
|
+
},
|
|
10
|
+
"tasksRunnerOptions": {
|
|
11
|
+
"default": {
|
|
12
|
+
"runner": "nx/tasks-runners/default",
|
|
13
|
+
"options": {
|
|
14
|
+
"cacheableOperations": [
|
|
15
|
+
"build",
|
|
16
|
+
"build-types",
|
|
17
|
+
"lint",
|
|
18
|
+
"format",
|
|
19
|
+
"test",
|
|
20
|
+
"e2e",
|
|
21
|
+
"build-storybook"
|
|
22
|
+
],
|
|
23
|
+
"parallel": 5,
|
|
24
|
+
"cacheDirectory": "node_modules/.cache/nx"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"pluginsConfig": {
|
|
29
|
+
"@nrwl/js": {
|
|
30
|
+
"analyzeSourceFiles": false
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"defaultBase": "main",
|
|
34
|
+
"namedInputs": {
|
|
35
|
+
"globalBuildAffectingConfig": [
|
|
36
|
+
"{workspaceRoot}/tsconfig.base.json",
|
|
37
|
+
"{workspaceRoot}/package.json"
|
|
38
|
+
],
|
|
39
|
+
"globalNonBuildAffectingConfig": [
|
|
40
|
+
"{workspaceRoot}/.log4brains.yml",
|
|
41
|
+
"{workspaceRoot}/.eslintrc.json",
|
|
42
|
+
"{workspaceRoot}/jest.config.ts"
|
|
43
|
+
],
|
|
44
|
+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
|
45
|
+
"production": [
|
|
46
|
+
"default",
|
|
47
|
+
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
|
|
48
|
+
"!{projectRoot}/tsconfig.spec.json",
|
|
49
|
+
"!{projectRoot}/jest.config.[jt]s",
|
|
50
|
+
"!{projectRoot}/.eslintrc.json",
|
|
51
|
+
"!{projectRoot}/.storybook/**/*",
|
|
52
|
+
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
53
|
+
"!{projectRoot}/tsconfig.storybook.json",
|
|
54
|
+
"!{workspaceRoot}/testing/jest-setup.[jt]s",
|
|
55
|
+
"!{projectRoot}/src/test-setup.[jt]s",
|
|
56
|
+
"!{projectRoot}/test-setup.[jt]s"
|
|
57
|
+
],
|
|
58
|
+
"sharedGlobals": ["{workspaceRoot}/babel.config.json"]
|
|
59
|
+
},
|
|
60
|
+
"targetDefaults": {
|
|
61
|
+
"build": {
|
|
62
|
+
"cache": true,
|
|
63
|
+
"inputs": ["default", "^production"],
|
|
64
|
+
"outputs": ["{options.outputPath}"],
|
|
65
|
+
"dependsOn": ["build-types", "^build"],
|
|
66
|
+
"options": {
|
|
67
|
+
"main": "{projectRoot}/src/index.ts",
|
|
68
|
+
"outputPath": "dist/{projectRoot}",
|
|
69
|
+
"tsConfig": "{projectRoot}/tsconfig.lib.json",
|
|
70
|
+
"assets": [
|
|
71
|
+
{
|
|
72
|
+
"glob": "*.md",
|
|
73
|
+
"input": "{projectRoot}",
|
|
74
|
+
"output": "."
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"glob": "LICENSE",
|
|
78
|
+
"input": ".",
|
|
79
|
+
"output": "."
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"test": {
|
|
85
|
+
"cache": true,
|
|
86
|
+
"executor": "@nx/jest:jest",
|
|
87
|
+
"inputs": [
|
|
88
|
+
"default",
|
|
89
|
+
"^production",
|
|
90
|
+
"{workspaceRoot}/testing/jest.preset.js",
|
|
91
|
+
"{workspaceRoot}/jest.preset.js"
|
|
92
|
+
],
|
|
93
|
+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
94
|
+
"options": {
|
|
95
|
+
"jestConfig": "{projectRoot}/jest.config.ts",
|
|
96
|
+
"passWithNoTests": true
|
|
97
|
+
},
|
|
98
|
+
"configurations": {
|
|
99
|
+
"ci": {
|
|
100
|
+
"ci": true,
|
|
101
|
+
"codeCoverage": true
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"e2e": {
|
|
106
|
+
"cache": true
|
|
107
|
+
},
|
|
108
|
+
"lint": {
|
|
109
|
+
"cache": true,
|
|
110
|
+
"executor": "@nx/linter:eslint",
|
|
111
|
+
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
|
|
112
|
+
"outputs": ["{options.outputFile}"],
|
|
113
|
+
"options": {
|
|
114
|
+
"lintFilePatterns": ["{projectRoot}/**/*.ts"]
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"build-storybook": {
|
|
118
|
+
"cache": true,
|
|
119
|
+
"inputs": [
|
|
120
|
+
"default",
|
|
121
|
+
"^production",
|
|
122
|
+
"!{projectRoot}/.storybook/**/*",
|
|
123
|
+
"{projectRoot}/.storybook/**/*",
|
|
124
|
+
"{projectRoot}/tsconfig.storybook.json"
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"generators": {
|
|
129
|
+
"@nx/react": {
|
|
130
|
+
"application": {
|
|
131
|
+
"style": "css",
|
|
132
|
+
"linter": "eslint",
|
|
133
|
+
"bundler": "webpack",
|
|
134
|
+
"unitTestRunner": "jest",
|
|
135
|
+
"babel": true
|
|
136
|
+
},
|
|
137
|
+
"component": {
|
|
138
|
+
"style": "css"
|
|
139
|
+
},
|
|
140
|
+
"library": {
|
|
141
|
+
"style": "css",
|
|
142
|
+
"linter": "eslint",
|
|
143
|
+
"unitTestRunner": "jest"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"@nx/next": {
|
|
147
|
+
"application": {
|
|
148
|
+
"style": "css",
|
|
149
|
+
"linter": "eslint",
|
|
150
|
+
"bundler": "swc",
|
|
151
|
+
"unitTestRunner": "jest"
|
|
152
|
+
},
|
|
153
|
+
"component": {
|
|
154
|
+
"style": "css"
|
|
155
|
+
},
|
|
156
|
+
"library": {
|
|
157
|
+
"style": "css",
|
|
158
|
+
"linter": "eslint",
|
|
159
|
+
"bundler": "swc",
|
|
160
|
+
"unitTestRunner": "jest"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"plugins": ["@nx/next"]
|
|
165
|
+
}
|
package/executors.json
ADDED
package/generators.json
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@storm-software/workspace-tools",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"storm",
|
|
8
|
+
"storm-ops",
|
|
9
|
+
"stormstack",
|
|
10
|
+
"storm-stack",
|
|
11
|
+
"sullivanpj",
|
|
12
|
+
"open-system",
|
|
13
|
+
"monorepo"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://stormsoftware.org",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/storm-software/storm-ops/issues",
|
|
18
|
+
"email": "support@stormsoftware.org"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "github",
|
|
22
|
+
"url": "https://github.com/storm-software/storm-ops.git",
|
|
23
|
+
"directory": "packages/workspace-tools"
|
|
24
|
+
},
|
|
25
|
+
"license": "Apache License 2.0",
|
|
26
|
+
"author": {
|
|
27
|
+
"name": "Storm Software",
|
|
28
|
+
"email": "contact@stormsoftware.org",
|
|
29
|
+
"url": "https://stormsoftware.org"
|
|
30
|
+
},
|
|
31
|
+
"type": "commonjs",
|
|
32
|
+
"main": "./src/index.js",
|
|
33
|
+
"typings": "./src/index.d.ts",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@nx/devkit": "17.0.3",
|
|
36
|
+
"esbuild-plugin-file-path-extensions": "1.0.0",
|
|
37
|
+
"fs-extra": "^11.1.1",
|
|
38
|
+
"tslib": "2.6.2",
|
|
39
|
+
"tsup": "7.2.0"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"executors": "./executors.json",
|
|
45
|
+
"generators": "./generators.json"
|
|
46
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BuildExecutorSchema } from "./schema";
|
|
2
|
+
export default function runExecutor(options: BuildExecutorSchema): Promise<{
|
|
3
|
+
success: boolean;
|
|
4
|
+
}>;
|
|
5
|
+
/**
|
|
6
|
+
* @param {Object} opts - Options for building configurations.
|
|
7
|
+
* @param {string[]} opts.entry - The entry array.
|
|
8
|
+
* @returns {import('tsup').Options}
|
|
9
|
+
*/
|
|
10
|
+
export declare function modernConfig(opts: any): {
|
|
11
|
+
entry: any;
|
|
12
|
+
format: string[];
|
|
13
|
+
target: string[];
|
|
14
|
+
outDir: string;
|
|
15
|
+
dts: boolean;
|
|
16
|
+
sourcemap: boolean;
|
|
17
|
+
clean: boolean;
|
|
18
|
+
esbuildPlugins: import("esbuild").Plugin[];
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @param {Object} opts - Options for building configurations.
|
|
22
|
+
* @param {string[]} opts.entry - The entry array.
|
|
23
|
+
* @returns {import('tsup').Options}
|
|
24
|
+
*/
|
|
25
|
+
export declare function legacyConfig(opts: any): {
|
|
26
|
+
entry: any;
|
|
27
|
+
format: string[];
|
|
28
|
+
target: string[];
|
|
29
|
+
outDir: string;
|
|
30
|
+
dts: boolean;
|
|
31
|
+
sourcemap: boolean;
|
|
32
|
+
clean: boolean;
|
|
33
|
+
esbuildPlugins: import("esbuild").Plugin[];
|
|
34
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.legacyConfig = exports.modernConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
function runExecutor(options) {
|
|
6
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
7
|
+
console.log("Executor ran for Build", options);
|
|
8
|
+
return {
|
|
9
|
+
success: true
|
|
10
|
+
};
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
exports.default = runExecutor;
|
|
14
|
+
const esbuild_plugin_file_path_extensions_1 = require("esbuild-plugin-file-path-extensions");
|
|
15
|
+
/**
|
|
16
|
+
* @param {Object} opts - Options for building configurations.
|
|
17
|
+
* @param {string[]} opts.entry - The entry array.
|
|
18
|
+
* @returns {import('tsup').Options}
|
|
19
|
+
*/
|
|
20
|
+
function modernConfig(opts) {
|
|
21
|
+
return {
|
|
22
|
+
entry: opts.entry,
|
|
23
|
+
format: ["cjs", "esm"],
|
|
24
|
+
target: ["chrome91", "firefox90", "edge91", "safari15", "ios15", "opera77"],
|
|
25
|
+
outDir: "build/modern",
|
|
26
|
+
dts: true,
|
|
27
|
+
sourcemap: true,
|
|
28
|
+
clean: true,
|
|
29
|
+
esbuildPlugins: [(0, esbuild_plugin_file_path_extensions_1.esbuildPluginFilePathExtensions)({ esmExtension: "js" })]
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.modernConfig = modernConfig;
|
|
33
|
+
/**
|
|
34
|
+
* @param {Object} opts - Options for building configurations.
|
|
35
|
+
* @param {string[]} opts.entry - The entry array.
|
|
36
|
+
* @returns {import('tsup').Options}
|
|
37
|
+
*/
|
|
38
|
+
function legacyConfig(opts) {
|
|
39
|
+
return {
|
|
40
|
+
entry: opts.entry,
|
|
41
|
+
format: ["cjs", "esm"],
|
|
42
|
+
target: ["es2020", "node16"],
|
|
43
|
+
outDir: "build/legacy",
|
|
44
|
+
dts: true,
|
|
45
|
+
sourcemap: true,
|
|
46
|
+
clean: true,
|
|
47
|
+
esbuildPlugins: [(0, esbuild_plugin_file_path_extensions_1.esbuildPluginFilePathExtensions)({ esmExtension: "js" })]
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.legacyConfig = legacyConfig;
|
|
51
|
+
//# sourceMappingURL=executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/executors/build/executor.ts"],"names":[],"mappings":";;;;AAEA,SAA8B,WAAW,CAAC,OAA4B;;QACpE,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;QAC/C,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA;AALD,8BAKC;AACD,6FAAsF;AAEtF;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAI;IAC/B,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QACtB,MAAM,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC;QAC3E,MAAM,EAAE,cAAc;QACtB,GAAG,EAAE,IAAI;QACT,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,CAAC,IAAA,qEAA+B,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;KAC1E,CAAC;AACJ,CAAC;AAXD,oCAWC;AAED;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAI;IAC/B,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QACtB,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAC5B,MAAM,EAAE,cAAc;QACtB,GAAG,EAAE,IAAI;QACT,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,CAAC,IAAA,qEAA+B,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;KAC1E,CAAC;AACJ,CAAC;AAXD,oCAWC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {Object} opts - Options for building configurations.
|
|
3
|
+
* @param {string[]} opts.entry - The entry array.
|
|
4
|
+
* @returns {import('tsup').Options}
|
|
5
|
+
*/
|
|
6
|
+
export declare function modernConfig(opts: any): {
|
|
7
|
+
entry: any;
|
|
8
|
+
format: string[];
|
|
9
|
+
target: string[];
|
|
10
|
+
outDir: string;
|
|
11
|
+
dts: boolean;
|
|
12
|
+
sourcemap: boolean;
|
|
13
|
+
clean: boolean;
|
|
14
|
+
esbuildPlugins: import("esbuild").Plugin[];
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @param {Object} opts - Options for building configurations.
|
|
18
|
+
* @param {string[]} opts.entry - The entry array.
|
|
19
|
+
* @returns {import('tsup').Options}
|
|
20
|
+
*/
|
|
21
|
+
export declare function legacyConfig(opts: any): {
|
|
22
|
+
entry: any;
|
|
23
|
+
format: string[];
|
|
24
|
+
target: string[];
|
|
25
|
+
outDir: string;
|
|
26
|
+
dts: boolean;
|
|
27
|
+
sourcemap: boolean;
|
|
28
|
+
clean: boolean;
|
|
29
|
+
esbuildPlugins: import("esbuild").Plugin[];
|
|
30
|
+
};
|
|
31
|
+
export declare function getConfig(opts: any): {
|
|
32
|
+
entry: any;
|
|
33
|
+
format: string[];
|
|
34
|
+
target: string[];
|
|
35
|
+
outDir: string;
|
|
36
|
+
dts: boolean;
|
|
37
|
+
sourcemap: boolean;
|
|
38
|
+
clean: boolean;
|
|
39
|
+
esbuildPlugins: import("esbuild").Plugin[];
|
|
40
|
+
}[];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConfig = exports.legacyConfig = exports.modernConfig = void 0;
|
|
4
|
+
const esbuild_plugin_file_path_extensions_1 = require("esbuild-plugin-file-path-extensions");
|
|
5
|
+
/**
|
|
6
|
+
* @param {Object} opts - Options for building configurations.
|
|
7
|
+
* @param {string[]} opts.entry - The entry array.
|
|
8
|
+
* @returns {import('tsup').Options}
|
|
9
|
+
*/
|
|
10
|
+
function modernConfig(opts) {
|
|
11
|
+
return {
|
|
12
|
+
entry: opts.entry,
|
|
13
|
+
format: ["cjs", "esm"],
|
|
14
|
+
target: ["chrome91", "firefox90", "edge91", "safari15", "ios15", "opera77"],
|
|
15
|
+
outDir: "build/modern",
|
|
16
|
+
dts: true,
|
|
17
|
+
sourcemap: true,
|
|
18
|
+
clean: true,
|
|
19
|
+
esbuildPlugins: [(0, esbuild_plugin_file_path_extensions_1.esbuildPluginFilePathExtensions)({ esmExtension: "js" })]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
exports.modernConfig = modernConfig;
|
|
23
|
+
/**
|
|
24
|
+
* @param {Object} opts - Options for building configurations.
|
|
25
|
+
* @param {string[]} opts.entry - The entry array.
|
|
26
|
+
* @returns {import('tsup').Options}
|
|
27
|
+
*/
|
|
28
|
+
function legacyConfig(opts) {
|
|
29
|
+
return {
|
|
30
|
+
entry: opts.entry,
|
|
31
|
+
format: ["cjs", "esm"],
|
|
32
|
+
target: ["es2020", "node16"],
|
|
33
|
+
outDir: "build/legacy",
|
|
34
|
+
dts: true,
|
|
35
|
+
sourcemap: true,
|
|
36
|
+
clean: true,
|
|
37
|
+
esbuildPlugins: [(0, esbuild_plugin_file_path_extensions_1.esbuildPluginFilePathExtensions)({ esmExtension: "js" })]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.legacyConfig = legacyConfig;
|
|
41
|
+
function getConfig(opts) {
|
|
42
|
+
return [modernConfig(opts), legacyConfig(opts)];
|
|
43
|
+
}
|
|
44
|
+
exports.getConfig = getConfig;
|
|
45
|
+
//# sourceMappingURL=get-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-config.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/executors/build/get-config.ts"],"names":[],"mappings":";;;AAAA,6FAAsF;AAEtF;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAI;IAC/B,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QACtB,MAAM,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC;QAC3E,MAAM,EAAE,cAAc;QACtB,GAAG,EAAE,IAAI;QACT,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,CAAC,IAAA,qEAA+B,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;KAC1E,CAAC;AACJ,CAAC;AAXD,oCAWC;AAED;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAI;IAC/B,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QACtB,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;QAC5B,MAAM,EAAE,cAAc;QACtB,GAAG,EAAE,IAAI;QACT,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,CAAC,IAAA,qEAA+B,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;KAC1E,CAAC;AACJ,CAAC;AAXD,oCAWC;AAED,SAAgB,SAAS,CAAC,IAAI;IAC5B,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;AAClD,CAAC;AAFD,8BAEC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CustomHasher } from "@nx/devkit";
|
|
2
|
+
/**
|
|
3
|
+
* This is a boilerplate custom hasher that matches
|
|
4
|
+
* the default Nx hasher. If you need to extend the behavior,
|
|
5
|
+
* you can consume workspace details from the context.
|
|
6
|
+
*/
|
|
7
|
+
export declare const buildHasher: CustomHasher;
|
|
8
|
+
export default buildHasher;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildHasher = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/**
|
|
6
|
+
* This is a boilerplate custom hasher that matches
|
|
7
|
+
* the default Nx hasher. If you need to extend the behavior,
|
|
8
|
+
* you can consume workspace details from the context.
|
|
9
|
+
*/
|
|
10
|
+
const buildHasher = (task, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
11
|
+
return context.hasher.hashTask(task, context.taskGraph);
|
|
12
|
+
});
|
|
13
|
+
exports.buildHasher = buildHasher;
|
|
14
|
+
exports.default = exports.buildHasher;
|
|
15
|
+
//# sourceMappingURL=hasher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasher.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/executors/build/hasher.ts"],"names":[],"mappings":";;;;AAEA;;;;GAIG;AACI,MAAM,WAAW,GAAiB,CAAO,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/D,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;AAC1D,CAAC,CAAA,CAAC;AAFW,QAAA,WAAW,eAEtB;AAEF,kBAAe,mBAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export interface BuildExecutorSchema {} // eslint-disable-line
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"allow": [
|
|
3
|
+
"attacks",
|
|
4
|
+
"color",
|
|
5
|
+
"dead",
|
|
6
|
+
"execute",
|
|
7
|
+
"executed",
|
|
8
|
+
"executes",
|
|
9
|
+
"execution",
|
|
10
|
+
"executions",
|
|
11
|
+
"failed",
|
|
12
|
+
"failure",
|
|
13
|
+
"failures",
|
|
14
|
+
"fire",
|
|
15
|
+
"fires",
|
|
16
|
+
"firing",
|
|
17
|
+
"hook",
|
|
18
|
+
"hooks",
|
|
19
|
+
"host-hostess",
|
|
20
|
+
"invalid",
|
|
21
|
+
"remains",
|
|
22
|
+
"special",
|
|
23
|
+
"white",
|
|
24
|
+
"just",
|
|
25
|
+
"easy",
|
|
26
|
+
"easily",
|
|
27
|
+
"simple",
|
|
28
|
+
"colors",
|
|
29
|
+
"clearly",
|
|
30
|
+
"obvious",
|
|
31
|
+
"pros",
|
|
32
|
+
"blind",
|
|
33
|
+
"xxx",
|
|
34
|
+
"tinker",
|
|
35
|
+
"reject",
|
|
36
|
+
"terror",
|
|
37
|
+
"Primitive"
|
|
38
|
+
]
|
|
39
|
+
}
|