@storm-software/workspace-tools 1.5.8 → 1.5.10
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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/generators/preset/files/.all-contributorsrc.template +5 -4
- package/src/generators/preset/files/.vscode/README.md +32 -0
- package/src/generators/preset/files/.vscode/settings.json +14 -0
- package/src/generators/preset/files/docs/api-reference/.gitkeep +0 -0
- package/src/generators/preset/files/docs/readme-templates/README.footer.md.template +92 -0
- package/src/generators/preset/files/docs/readme-templates/README.header.md.template +16 -0
- package/src/generators/preset/generator.js +5 -7
- package/src/generators/preset/generator.js.map +1 -1
- package/src/generators/preset/files/.github/workflows/nextjs-bundle-analysis.yml +0 -123
- /package/src/generators/preset/files/.github/actions/{node → setup-workspace}/action.yaml +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.5.9](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.5.8...workspace-tools-v1.5.9) (2023-11-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Updated package.json scripts in preset ([9dd9b9c](https://github.com/storm-software/storm-ops/commit/9dd9b9cc2acd250da5e8278d7ef2212aff6469f6))
|
|
7
|
+
|
|
8
|
+
## [1.5.8](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.5.7...workspace-tools-v1.5.8) (2023-11-08)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **create-storm-workspace:** Resolved issue with array index access ([6ec1fc8](https://github.com/storm-software/storm-ops/commit/6ec1fc83621bc0027f4783cd10513884ef233fd5))
|
|
14
|
+
|
|
1
15
|
## [1.5.7](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.5.6...workspace-tools-v1.5.7) (2023-11-08)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
"README.md"
|
|
8
8
|
],
|
|
9
9
|
"imageSize": 100,
|
|
10
|
+
"contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"<%= contributor.avatar_url %>\" width=\"<%= options.imageSize %>px;\" alt=\"\"/><br /><sub><b><%= contributor.name %></b></sub></a>",
|
|
11
|
+
"contributorsPerLine": 5,
|
|
12
|
+
"linkToUsage": true,
|
|
13
|
+
"commitType": "docs"
|
|
10
14
|
"commit": true,
|
|
11
15
|
"commitConvention": "angular",
|
|
12
16
|
"contributors": [
|
|
@@ -41,8 +45,5 @@
|
|
|
41
45
|
"maintenance"
|
|
42
46
|
]
|
|
43
47
|
}
|
|
44
|
-
]
|
|
45
|
-
"contributorsPerLine": 7,
|
|
46
|
-
"linkToUsage": true,
|
|
47
|
-
"commitType": "docs"
|
|
48
|
+
]
|
|
48
49
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
## VS Code Settings
|
|
2
|
+
|
|
3
|
+
This directory includes the global settings for the development of this Storm workspace.
|
|
4
|
+
|
|
5
|
+
See:
|
|
6
|
+
|
|
7
|
+
- [VS Code Doc: User and Workspace Settings](https://code.visualstudio.com/docs/getstarted/settings)
|
|
8
|
+
- [What is a VS Code Workspace?](https://stackoverflow.com/questions/44629890/what-is-a-workspace-in-visual-studio-code)
|
|
9
|
+
|
|
10
|
+
### Overriding Global Settings
|
|
11
|
+
|
|
12
|
+
It is possible to create your own "local" settings, overriding the global, via a `.code-workspace` file. See:
|
|
13
|
+
|
|
14
|
+
- [Workspace Settings](https://code.visualstudio.com/docs/editor/multi-root-workspaces#_settings)
|
|
15
|
+
- [Local settings overrides](https://github.com/microsoft/vscode/issues/37519)
|
|
16
|
+
|
|
17
|
+
> `*.code-workspace` files are included in `.gitignore`
|
|
18
|
+
|
|
19
|
+
For example, if you want a bright pink status background (and who doesn't?), create this file in the root of your project `mySettings.code-workspace`:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
// mySettings.code-workspace
|
|
23
|
+
|
|
24
|
+
"workbench.colorCustomizations": {
|
|
25
|
+
"statusBar.background": "#ff007f",
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
> **WARNING:** If you create a custom file that is ignored by git, then _anytime_ you run `git clean -fxd` the file will be permanently deleted.
|
|
31
|
+
>
|
|
32
|
+
> You can avoid this by using the option `-e`, e.g. `git clean -fxd -e mySettings.code-workspace`.
|
|
@@ -18,6 +18,20 @@
|
|
|
18
18
|
"**/dist": true
|
|
19
19
|
},
|
|
20
20
|
|
|
21
|
+
/******************************
|
|
22
|
+
* VS Code colorization
|
|
23
|
+
******************************/
|
|
24
|
+
"workbench.colorCustomizations": {
|
|
25
|
+
"statusBar.background": "#1d232a",
|
|
26
|
+
"statusBarItem.hoverBackground": "#313C47",
|
|
27
|
+
"statusBar.foreground": "#1fb2a6"
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
/******************************
|
|
31
|
+
* Peacock colorization
|
|
32
|
+
******************************/
|
|
33
|
+
"peacock.color": "#1fb2a6",
|
|
34
|
+
|
|
21
35
|
/******************************
|
|
22
36
|
* bracket pair colorization
|
|
23
37
|
******************************/
|
|
File without changes
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
## Storm Workspaces
|
|
2
|
+
|
|
3
|
+
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.
|
|
4
|
+
|
|
5
|
+
## Roadmap
|
|
6
|
+
|
|
7
|
+
See the [open issues](https://github.com/<%= organization %>/<%= name %>/issues) for a list of proposed features (and known issues).
|
|
8
|
+
|
|
9
|
+
- [Top Feature Requests](https://github.com/<%= organization %>/<%= name %>/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc) (Add your votes using the 👍 reaction)
|
|
10
|
+
- [Top Bugs](https://github.com/<%= organization %>/<%= name %>/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc) (Add your votes using the 👍 reaction)
|
|
11
|
+
- [Newest Bugs](https://github.com/<%= organization %>/<%= name %>/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
|
|
12
|
+
|
|
13
|
+
## Support
|
|
14
|
+
|
|
15
|
+
Reach out to the maintainer at one of the following places:
|
|
16
|
+
|
|
17
|
+
- [Contact](https://stormsoftware.org/contact)
|
|
18
|
+
- [GitHub discussions](https://github.com/<%= organization %>/<%= name %>/discussions)
|
|
19
|
+
- <support@stormsoftware.org>
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
This project is licensed under the **Apache License 2.0**. Feel free to edit and distribute this template as you like.
|
|
24
|
+
|
|
25
|
+
See [LICENSE](LICENSE) for more information.
|
|
26
|
+
|
|
27
|
+
## Changelog
|
|
28
|
+
|
|
29
|
+
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
|
|
30
|
+
|
|
31
|
+
## Contributing
|
|
32
|
+
|
|
33
|
+
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**.
|
|
34
|
+
|
|
35
|
+
Please try to create bug reports that are:
|
|
36
|
+
|
|
37
|
+
- _Reproducible._ Include steps to reproduce the problem.
|
|
38
|
+
- _Specific._ Include as much detail as possible: which version, what environment, etc.
|
|
39
|
+
- _Unique._ Do not duplicate existing opened issues.
|
|
40
|
+
- _Scoped to a Single Bug._ One bug per report.
|
|
41
|
+
|
|
42
|
+
Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
|
|
43
|
+
|
|
44
|
+
You can use [markdownlint-cli](https://github.com/<%= organization %>/<%= name %>/markdownlint-cli) to check for common markdown style inconsistency.
|
|
45
|
+
|
|
46
|
+
## Contributors
|
|
47
|
+
|
|
48
|
+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
49
|
+
|
|
50
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
51
|
+
|
|
52
|
+
<table>
|
|
53
|
+
<tbody>
|
|
54
|
+
<tr>
|
|
55
|
+
<td align="center" valign="top" width="14.28%"><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/storm-ops/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/storm-ops/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/storm-ops/commits?author=sullivanpj" title="Tests">⚠️</a></td>
|
|
56
|
+
<td align="center" valign="top" width="14.28%"><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>
|
|
57
|
+
<td align="center" valign="top" width="14.28%"><a href="http://stormsoftware.org"><img src="https://avatars.githubusercontent.com/u/149802440?v=4?s=100" width="100px;" alt="Stormie"/><br /><sub><b>Stormie</b></sub></a><br /><a href="#maintenance-stormie-bot" title="Maintenance">🚧</a></td>
|
|
58
|
+
</tr>
|
|
59
|
+
</tbody>
|
|
60
|
+
<tfoot>
|
|
61
|
+
<tr>
|
|
62
|
+
<td align="center" size="13px" colspan="7">
|
|
63
|
+
<img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg">
|
|
64
|
+
<a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
|
|
65
|
+
</img>
|
|
66
|
+
</td>
|
|
67
|
+
</tr>
|
|
68
|
+
</tfoot>
|
|
69
|
+
</table>
|
|
70
|
+
|
|
71
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
72
|
+
|
|
73
|
+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|
|
74
|
+
|
|
75
|
+
<br />
|
|
76
|
+
<br />
|
|
77
|
+
<div align="center">
|
|
78
|
+
<img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/logo-banner.png" width="100%" altText="Storm Software" />
|
|
79
|
+
</div>
|
|
80
|
+
<div align="center">
|
|
81
|
+
<a href="https://stormsoftware.org" target="_blank">Website</a> | <a href="https://stormsoftware.org/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/storm-software" target="_blank">GitHub</a> | <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<div align="center">
|
|
85
|
+
<p><b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D</p>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
Storm Software is an open source software development organization and creator of Forecast, StormStack and StormCloud. Our mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languagues.
|
|
89
|
+
|
|
90
|
+
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our website!
|
|
91
|
+
|
|
92
|
+
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br /><br />
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<div align="center"><img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/logo-banner.png" width="100%" altText="Storm Software" /></div>
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
<a href="https://stormsoftware.org" target="_blank">Website</a> | <a href="https://stormsoftware.org/contact" target="_blank">Contact</a> | <a href="https://github.com/<%= organization %>/<%= name %>" target="_blank">Repository</a> | <a href="https://stormstack.github.io/stormstack/" target="_blank">Documentation</a> | <a href="https://github.com/<%= organization %>/<%= name %>/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a> | <a href="https://github.com/<%= organization %>/<%= name %>/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=Feature Request%3A+">Request a Feature</a> | <a href="https://github.com/<%= organization %>/<%= name %>/issues/new?assignees=&labels=documentation&template=documentation.yml&title=Documentation Request%3A+">Request Documentation</a> | <a href="https://github.com/<%= organization %>/<%= name %>/discussions">Ask a Question</a>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<br />
|
|
8
|
+
This package is part of the <b>⚡<%= name %></b> monorepo. The <%= name %> packages include CLI utility applications, tools, and various libraries used to create modern, scalable web applications.
|
|
9
|
+
<br />
|
|
10
|
+
|
|
11
|
+
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
12
|
+
|
|
13
|
+
[](https://prettier.io/)
|
|
14
|
+
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
15
|
+
|
|
16
|
+
<h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ - This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
|
|
@@ -36,10 +36,9 @@ function default_1(tree, options) {
|
|
|
36
36
|
"storm",
|
|
37
37
|
"stormstack",
|
|
38
38
|
"storm-ops",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"power-plant-model",
|
|
39
|
+
"acidic",
|
|
40
|
+
"acidic-lang",
|
|
41
|
+
"acidic-model",
|
|
43
42
|
"impact",
|
|
44
43
|
"nextjs",
|
|
45
44
|
"prisma",
|
|
@@ -72,8 +71,7 @@ function default_1(tree, options) {
|
|
|
72
71
|
json.scripts.adr = "pnpm log4brains adr new";
|
|
73
72
|
json.scripts["adr-preview"] = "pnpm log4brains preview";
|
|
74
73
|
json.scripts.prepare = "pnpm @storm-software/git-tools/scripts/prepare.js";
|
|
75
|
-
json.scripts.preinstall =
|
|
76
|
-
"pnpm @storm-software/git-tools/scripts/pre-install.js || npx -y only-allow pnpm";
|
|
74
|
+
json.scripts.preinstall = "npx -y only-allow pnpm";
|
|
77
75
|
json.scripts["install:csb"] =
|
|
78
76
|
"corepack enable && pnpm install --frozen-lockfile";
|
|
79
77
|
json.scripts.clean = "rimraf dist";
|
|
@@ -129,7 +127,7 @@ function default_1(tree, options) {
|
|
|
129
127
|
json.scripts.lint = "pnpm storm-lint all --skip-cspell";
|
|
130
128
|
json.scripts.commit = "pnpm storm-git commit";
|
|
131
129
|
json.scripts.readme =
|
|
132
|
-
'pnpm storm-git readme --templates="
|
|
130
|
+
'pnpm storm-git readme --templates="docs/readme-templates"';
|
|
133
131
|
json.scripts["api-extractor"] =
|
|
134
132
|
"nx g @storm-software/workspace-tools:api-extractor --outputPath 'docs/api-reference' --clean --no-interactive";
|
|
135
133
|
json.scripts.release = "pnpm storm-git release";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/generators/preset/generator.ts"],"names":[],"mappings":";;;AAAA,uCAOoB;AACpB,6BAA6B;AAC7B,mDAI8B;AAG9B,mBAA+B,IAAU,EAAE,OAA8B;;;QACvE,MAAM,WAAW,GAAG,GAAG,CAAC;QAExB,MAAA,OAAO,CAAC,WAAW,oCAAnB,OAAO,CAAC,WAAW,GAAK,QACtB,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,IAClD,uHAAuH,EAAC;QACxH,MAAA,OAAO,CAAC,SAAS,oCAAjB,OAAO,CAAC,SAAS,GAAK,OAAO,CAAC,YAAY,EAAC;QAE3C,IAAA,gCAAuB,EAAC,IAAI,EAAE,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,IAAI,EAAE,EAAE;YACrE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE;gBACP,gBAAgB,EAAE;oBAChB,UAAU,EAAE,kBAAkB;oBAC9B,SAAS,EAAE;wBACT,MAAM,EAAE,IAAI;wBACZ,QAAQ,EAAE,uBAAuB;wBACjC,SAAS,EAAE,4BAA4B;qBACxC;iBACF;aACF;SACF,CAAC,CAAC;QAEH,IAAA,mBAAU,EAAC,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,EAAE;;YACtC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC;YAElC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,8CAA8C,GAAG,CAAC,CAAC;YACxD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACpB,MAAA,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK;gBAChB,OAAO,CAAC,IAAI;gBACZ,OAAO,CAAC,SAAS;gBACjB,OAAO;gBACP,YAAY;gBACZ,WAAW;gBACX,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/workspace-tools/src/generators/preset/generator.ts"],"names":[],"mappings":";;;AAAA,uCAOoB;AACpB,6BAA6B;AAC7B,mDAI8B;AAG9B,mBAA+B,IAAU,EAAE,OAA8B;;;QACvE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,IAAA,qCAA4B,EAAC,IAAI,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;;CAC7D;AA/PD,4BA+PC"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
name: "Web App Bundle Analysis"
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request:
|
|
8
|
-
branches:
|
|
9
|
-
- main
|
|
10
|
-
workflow_dispatch:
|
|
11
|
-
|
|
12
|
-
defaults:
|
|
13
|
-
run:
|
|
14
|
-
# change this if your nextjs app does not live at the root of the repo
|
|
15
|
-
working-directory: ./
|
|
16
|
-
|
|
17
|
-
env:
|
|
18
|
-
CI: true
|
|
19
|
-
NX_DAEMON: false
|
|
20
|
-
NX_VERBOSE_LOGGING: true
|
|
21
|
-
SKIP_ENV_VALIDATION: true
|
|
22
|
-
ANALYZE: true
|
|
23
|
-
|
|
24
|
-
jobs:
|
|
25
|
-
analyze:
|
|
26
|
-
runs-on: ubuntu-latest
|
|
27
|
-
steps:
|
|
28
|
-
- uses: actions/checkout@v4
|
|
29
|
-
with:
|
|
30
|
-
fetch-depth: 0
|
|
31
|
-
token: ${{ secrets.STORMIE_GITHUB_TOKEN }}
|
|
32
|
-
|
|
33
|
-
- name: Setup workspace
|
|
34
|
-
uses: ./.github/actions/setup-workspace
|
|
35
|
-
|
|
36
|
-
- name: Restore next build
|
|
37
|
-
uses: actions/cache@v3
|
|
38
|
-
id: restore-build-cache
|
|
39
|
-
env:
|
|
40
|
-
cache-name: cache-next-build
|
|
41
|
-
with:
|
|
42
|
-
path: dist/apps/web/app/.next/cache
|
|
43
|
-
# change this if you prefer a more strict cache
|
|
44
|
-
key: ${{ runner.os }}-build-${{ env.cache-name }}
|
|
45
|
-
|
|
46
|
-
- name: Build next.js app
|
|
47
|
-
run: pnpm nx run web-app:build
|
|
48
|
-
env:
|
|
49
|
-
SKIP_BUILD_PRODUCT_REDIRECTS: 1
|
|
50
|
-
ANALYZE: true
|
|
51
|
-
|
|
52
|
-
# Here's the first place where next-bundle-analysis' own script is used
|
|
53
|
-
# This step pulls the raw bundle stats for the current bundle
|
|
54
|
-
- name: Analyze bundle
|
|
55
|
-
run: pnpm -p nextjs-bundle-analysis report
|
|
56
|
-
env:
|
|
57
|
-
ANALYZE: true
|
|
58
|
-
|
|
59
|
-
- name: Upload bundle
|
|
60
|
-
uses: actions/upload-artifact@v3
|
|
61
|
-
with:
|
|
62
|
-
name: bundle
|
|
63
|
-
path: dist/apps/web/app/.next/analyze/__bundle_analysis.json
|
|
64
|
-
|
|
65
|
-
#- name: Download base branch bundle stats
|
|
66
|
-
# uses: dawidd6/action-download-artifact@v2
|
|
67
|
-
# if: success() && github.event.number
|
|
68
|
-
# with:
|
|
69
|
-
# workflow: nextjs_bundle_analysis.yml
|
|
70
|
-
# branch: ${{ github.event.pull_request.base.ref }}
|
|
71
|
-
# path: dist/apps/web/shell/.next/analyze/base
|
|
72
|
-
|
|
73
|
-
# And here's the second place - this runs after we have both the current and
|
|
74
|
-
# base branch bundle stats, and will compare them to determine what changed.
|
|
75
|
-
# There are two configurable arguments that come from package.json:
|
|
76
|
-
#
|
|
77
|
-
# - budget: optional, set a budget (bytes) against which size changes are measured
|
|
78
|
-
# it's set to 350kb here by default, as informed by the following piece:
|
|
79
|
-
# https://infrequently.org/2021/03/the-performance-inequality-gap/
|
|
80
|
-
#
|
|
81
|
-
# - red-status-percentage: sets the percent size increase where you get a red
|
|
82
|
-
# status indicator, defaults to 20%
|
|
83
|
-
#
|
|
84
|
-
# Either of these arguments can be changed or removed by editing the `nextBundleAnalysis`
|
|
85
|
-
# entry in your package.json file.
|
|
86
|
-
#- name: Compare with base branch bundle
|
|
87
|
-
# if: success() && github.event.number
|
|
88
|
-
# run: ls -laR dist/apps/web/shell/.next/analyze/base && npx -p nextjs-bundle-analysis compare
|
|
89
|
-
|
|
90
|
-
#- name: Get comment body
|
|
91
|
-
# id: get-comment-body
|
|
92
|
-
# if: success() && github.event.number
|
|
93
|
-
# uses: actions/github-script@v6
|
|
94
|
-
# with:
|
|
95
|
-
# result-encoding: string
|
|
96
|
-
# script: |
|
|
97
|
-
# const fs = require('fs')
|
|
98
|
-
# const comment = fs.readFileSync('dist/apps/web/shell/.next/analyze/__bundle_analysis_comment.txt', 'utf8')
|
|
99
|
-
# core.setOutput('body', comment)
|
|
100
|
-
|
|
101
|
-
#- name: Find Comment
|
|
102
|
-
# uses: peter-evans/find-comment@v2
|
|
103
|
-
# if: success() && github.event.number
|
|
104
|
-
# id: fc
|
|
105
|
-
# with:
|
|
106
|
-
# issue-number: ${{ github.event.number }}
|
|
107
|
-
# body-includes: "<!-- __NEXTJS_BUNDLE -->"
|
|
108
|
-
|
|
109
|
-
#- name: Create Comment
|
|
110
|
-
# uses: peter-evans/create-or-update-comment@v3
|
|
111
|
-
# if: success() && github.event.number && steps.fc.outputs.comment-id == 0
|
|
112
|
-
# with:
|
|
113
|
-
# issue-number: ${{ github.event.number }}
|
|
114
|
-
# body: ${{ steps.get-comment-body.outputs.body }}
|
|
115
|
-
|
|
116
|
-
#- name: Update Comment
|
|
117
|
-
# uses: peter-evans/create-or-update-comment@v3
|
|
118
|
-
# if: success() && github.event.number && steps.fc.outputs.comment-id != 0
|
|
119
|
-
# with:
|
|
120
|
-
# issue-number: ${{ github.event.number }}
|
|
121
|
-
# body: ${{ steps.get-comment-body.outputs.body }}
|
|
122
|
-
# comment-id: ${{ steps.fc.outputs.comment-id }}
|
|
123
|
-
# edit-mode: replace
|
|
File without changes
|