Skip to content

Commit 047214b

Browse files
committed
feat(storm-stack): Major updates to project structure
1 parent c0a0dbf commit 047214b

File tree

87 files changed

+2962
-867
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+2962
-867
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"prettier.bracketSameLine": true,
5151
"prettier.configPath": "./node_modules/@storm-software/prettier/config.json",
5252
"prettier.ignorePath": "./node_modules/@storm-software/prettier/.prettierignore",
53-
"prettier.enableDebugLogs": true,
53+
"prettier.enableDebugLogs": false,
5454
"prettier.enable": true,
5555
"markdownlint.config": {
5656
"extends": "./node_modules/@storm-software/markdownlint/config/config.json"

eslint.config.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@ import { getStormConfig } from "@storm-software/eslint";
2020
Error.stackTraceLimit = Number.POSITIVE_INFINITY;
2121

2222
export default getStormConfig({
23-
repositoryName: "storm-stack",
24-
nx: {
25-
depsCheck: false
26-
}
23+
repositoryName: "storm-stack"
2724
});

examples/cloudflare-worker/docs/dotenv.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Environment variables configuration
44

55
Below is a list of environment variables used by the
6-
[@storm-stack/examples-cloudflare-app](https://www.npmjs.com/package/@storm-stack/examples-cloudflare-app)
6+
[@storm-stack/examples-cloudflare-worker](https://www.npmjs.com/package/@storm-stack/examples-cloudflare-worker)
77
package. These values can be updated in the `.env` file in the root of the
88
project.
99

examples/cloudflare-worker/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
"private": true,
1212
"devDependencies": {
1313
"@storm-stack/nx": "workspace:*",
14-
"@storm-stack/plugin-cloudflare-worker": "workspace:*",
14+
"@storm-stack/plugin-cloudflare": "workspace:*",
1515
"storm-stack": "workspace:*"
16-
},
17-
"storm": {
18-
"name": "examples-cloudflare-worker"
1916
}
2017
}

examples/cloudflare-worker/project.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,26 @@
44
"projectType": "application",
55
"sourceRoot": "examples/cloudflare-worker/src",
66
"targets": {
7+
"prepare": {
8+
"executor": "@storm-stack/nx:prepare",
9+
"outputs": ["{options.outputPath}"],
10+
"options": {
11+
"entry": "{sourceRoot}/index.ts#handler",
12+
"outputPath": "dist/examples/cloudflare-worker",
13+
"plugins": ["@storm-stack/plugin-cloudflare"],
14+
"skipCache": true,
15+
"skipInstalls": true,
16+
"mode": "development"
17+
}
18+
},
719
"build": {
8-
"executor": "@storm-stack/nx:cloudflare-worker-build",
20+
"executor": "@storm-stack/nx:build",
921
"outputs": ["{options.outputPath}"],
22+
"dependsOn": ["prepare"],
1023
"options": {
24+
"entry": "{sourceRoot}/index.ts#handler",
1125
"outputPath": "dist/examples/cloudflare-worker",
26+
"plugins": ["@storm-stack/plugin-cloudflare"],
1227
"skipCache": true,
1328
"skipInstalls": true,
1429
"mode": "development"

examples/cloudflare-worker/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import type { ExamplePayload } from "./types";
1919

20-
export function handler(event: StormEvent<"Request", ExamplePayload>) {
20+
export function handler(event: StormRequest<ExamplePayload>) {
2121
const payload = event.data;
2222

2323
return payload.address.city;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
name = 'examples-cloudflare-worker'
3+
compatibility_date = '2025-03-13'
4+
main = '/.storm/entry-oqFxRJ2G.ts'
5+
account_id = 'undefined'
6+
compatibility_flags = ['nodejs_als']

examples/node-app/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,5 @@
1616
"@storm-stack/nx": "workspace:*",
1717
"@storm-stack/plugin-node": "workspace:*",
1818
"storm-stack": "workspace:*"
19-
},
20-
"storm": {
21-
"name": "examples-node-app"
2219
}
2320
}

examples/node-app/project.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,26 @@
44
"projectType": "application",
55
"sourceRoot": "examples/node-app/src",
66
"targets": {
7+
"prepare": {
8+
"executor": "@storm-stack/nx:prepare",
9+
"outputs": ["{options.outputPath}"],
10+
"options": {
11+
"entry": "{sourceRoot}/index.ts#getCity",
12+
"outputPath": "dist/examples/node-app",
13+
"plugins": ["@storm-stack/plugin-node"],
14+
"skipCache": true,
15+
"skipInstalls": true,
16+
"mode": "development"
17+
}
18+
},
719
"build": {
8-
"executor": "@storm-stack/nx:node-build",
20+
"executor": "@storm-stack/nx:build",
921
"outputs": ["{options.outputPath}"],
22+
"dependsOn": ["prepare"],
1023
"options": {
1124
"entry": "{sourceRoot}/index.ts#getCity",
1225
"outputPath": "dist/examples/node-app",
26+
"plugins": ["@storm-stack/plugin-node"],
1327
"skipCache": true,
1428
"skipInstalls": true,
1529
"mode": "development"

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,15 @@
7272
"@nx/workspace": "catalog:",
7373
"@storm-software/config": "catalog:",
7474
"@storm-software/cspell": "catalog:",
75+
"@storm-software/esbuild": "catalog:",
7576
"@storm-software/eslint": "catalog:",
7677
"@storm-software/git-tools": "catalog:",
7778
"@storm-software/linting-tools": "catalog:",
7879
"@storm-software/markdownlint": "catalog:",
7980
"@storm-software/prettier": "catalog:",
8081
"@storm-software/testing-tools": "catalog:",
8182
"@storm-software/tsconfig": "catalog:",
83+
"@storm-software/unbuild": "catalog:",
8284
"@storm-software/untyped": "catalog:",
8385
"@storm-software/workspace-tools": "catalog:",
8486
"@swc-node/register": "catalog:",

0 commit comments

Comments
 (0)