diff --git a/apps/angular/package.json b/apps/angular/package.json index 9a1f780..90ce9b0 100644 --- a/apps/angular/package.json +++ b/apps/angular/package.json @@ -3,12 +3,13 @@ "version": "0.0.0", "scripts": { "build": "ng build", - "dev": "ng serve", - "dev:ssr": "concurrently npm:dev:ssr.client npm:dev:ssr.server", - "dev:ssr.client": "ng build --watch", - "dev:ssr.server": "nodemon ./dist/app/server/server.mjs --watch ./dist/app/server/server.mjs", + "build:prod": "npm run build -- --configuration production", "lint": "prettier . --check && eslint .", - "lint:fix": "prettier . --write && eslint . --fix" + "lint:fix": "prettier . --write && eslint . --fix", + "start": "concurrently npm:start.client npm:start.server", + "start.client": "ng build --watch", + "start.server": "nodemon ./dist/app/server/server.mjs --watch ./dist/app/server/server.mjs", + "start:prod": "node ./dist/app/server/server.mjs" }, "dependencies": { "@angular/animations": "^18.2.0", diff --git a/apps/angular/turbo.json b/apps/angular/turbo.json new file mode 100644 index 0000000..75534e7 --- /dev/null +++ b/apps/angular/turbo.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": ["//"], + "tasks": { + "build": { + "outputs": [".angular/**", "dist/**"] + }, + "start": { + "dependsOn": ["build"] + } + } +} diff --git a/apps/nest/package.json b/apps/nest/package.json index ef3148d..e428956 100644 --- a/apps/nest/package.json +++ b/apps/nest/package.json @@ -2,8 +2,11 @@ "name": "@wds/nest", "scripts": { "build": "nest build", - "dev": "nest start --watch", - "preview": "node dist/main" + "build:prod": "npm run build", + "lint": "prettier . --check && eslint .", + "lint:fix": "prettier . --write && eslint . --fix", + "start": "nest start --watch", + "start:prod": "node ./dist/main" }, "dependencies": { "@nestjs/common": "^10.3.2", diff --git a/apps/nest/turbo.json b/apps/nest/turbo.json new file mode 100644 index 0000000..48d8a74 --- /dev/null +++ b/apps/nest/turbo.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": ["//"], + "tasks": { + "build": { + "outputs": ["dist/**"] + } + } +} diff --git a/apps/react/package.json b/apps/react/package.json index fb4cc0b..74f36cf 100644 --- a/apps/react/package.json +++ b/apps/react/package.json @@ -3,10 +3,11 @@ "version": "0.0.0", "scripts": { "build": "vite build", - "dev": "vite", + "build:prod": "npm run build", "lint": "prettier . --check && eslint .", "lint:fix": "prettier . --write && eslint . --fix", - "preview": "vite preview" + "start": "vite", + "start:prod": "vite preview" }, "dependencies": { "react": "^18.3.1", diff --git a/apps/react/turbo.json b/apps/react/turbo.json new file mode 100644 index 0000000..48d8a74 --- /dev/null +++ b/apps/react/turbo.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": ["//"], + "tasks": { + "build": { + "outputs": ["dist/**"] + } + } +} diff --git a/apps/storybook/package.json b/apps/storybook/package.json index cdba99a..1a6a7c9 100644 --- a/apps/storybook/package.json +++ b/apps/storybook/package.json @@ -2,10 +2,10 @@ "name": "@wds/storybook", "version": "0.0.0", "scripts": { - "dev": "storybook dev -c src -p 3010 --no-open", "build": "storybook build -c src -o dist", "lint": "prettier . --check && eslint .", - "lint:fix": "prettier . --write && eslint . --fix" + "lint:fix": "prettier . --write && eslint . --fix", + "start": "storybook dev -c src -p 3010 --no-open" }, "devDependencies": { "@wds/tools.eslint": "*", diff --git a/apps/storybook/turbo.json b/apps/storybook/turbo.json new file mode 100644 index 0000000..48d8a74 --- /dev/null +++ b/apps/storybook/turbo.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": ["//"], + "tasks": { + "build": { + "outputs": ["dist/**"] + } + } +} diff --git a/apps/vike/package.json b/apps/vike/package.json index adfae0e..e11b95b 100644 --- a/apps/vike/package.json +++ b/apps/vike/package.json @@ -2,11 +2,12 @@ "name": "@wds/vike", "type": "module", "scripts": { - "dev": "vavite serve", "build": "vavite build", - "preview": "cross-env NODE_ENV=production node dist/server/index.mjs", + "build:prod": "npm run build", "lint": "prettier . --check && eslint .", - "lint:fix": "prettier . --write && eslint . --fix" + "lint:fix": "prettier . --write && eslint . --fix", + "start": "vavite serve", + "start:prod": "cross-env NODE_ENV=production node ./dist/server/index.mjs" }, "dependencies": { "cross-env": "^7.0.3", diff --git a/apps/vike/turbo.json b/apps/vike/turbo.json new file mode 100644 index 0000000..48d8a74 --- /dev/null +++ b/apps/vike/turbo.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": ["//"], + "tasks": { + "build": { + "outputs": ["dist/**"] + } + } +} diff --git a/apps/vue/package.json b/apps/vue/package.json index cb85c90..b02a68c 100644 --- a/apps/vue/package.json +++ b/apps/vue/package.json @@ -3,10 +3,11 @@ "version": "0.0.0", "scripts": { "build": "vue-tsc -b && vite build", - "dev": "vite", + "build:prod": "npm run build", "lint": "prettier . --check && eslint .", "lint:fix": "prettier . --write && eslint . --fix", - "preview": "vite preview" + "start": "vite", + "start:prod": "vite preview" }, "dependencies": { "vue": "^3.5.6" diff --git a/apps/vue/turbo.json b/apps/vue/turbo.json new file mode 100644 index 0000000..48d8a74 --- /dev/null +++ b/apps/vue/turbo.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": ["//"], + "tasks": { + "build": { + "outputs": ["dist/**"] + } + } +} diff --git a/package-lock.json b/package-lock.json index 03ec40e..feb6075 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,6 +50,7 @@ } }, "apps/nest": { + "name": "@wds/nest", "dependencies": { "@nestjs/common": "^10.3.2", "@nestjs/core": "^10.3.2", @@ -148,7 +149,9 @@ "vite": "^5.4.5" } }, - "apps/vike/dist/server": {}, + "apps/vike/dist/server": { + "extraneous": true + }, "apps/vike/node_modules/@types/node": { "version": "20.16.10", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.10.tgz", @@ -18611,10 +18614,6 @@ "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", "dev": true }, - "node_modules/package-loader": { - "resolved": "packages/ui.stencil/loader", - "link": true - }, "node_modules/pacote": { "version": "18.0.6", "resolved": "https://registry.npmjs.org/pacote/-/pacote-18.0.6.tgz", @@ -20543,10 +20542,6 @@ "node": ">= 0.8.0" } }, - "node_modules/server": { - "resolved": "apps/vike/dist/server", - "link": true - }, "node_modules/set-function-length": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", @@ -24784,7 +24779,8 @@ } }, "packages/ui.stencil/loader": { - "name": "package-loader" + "name": "package-loader", + "extraneous": true }, "packages/ui.stencil/node_modules/@types/node": { "version": "16.18.112", diff --git a/package.json b/package.json index 221b9f6..2192eb7 100644 --- a/package.json +++ b/package.json @@ -2,12 +2,12 @@ "name": "@wds/root", "scripts": { "build": "turbo build --concurrency=100%", + "build:prod": "turbo build:prod --concurrency=100%", "clean": "git clean -Xfd", - "dev": "turbo dev", - "dev:ssr": "turbo dev:ssr", "lint": "turbo lint --continue --concurrency=100%", "lint:fix": "turbo lint:fix --continue --concurrency=100%", - "preview": "turbo preview" + "start": "turbo start", + "start:prod": "turbo start:prod" }, "workspaces": [ "apps/**", diff --git a/packages/ui.mitosis/package.json b/packages/ui.mitosis/package.json index ab1fe06..e4ccc51 100644 --- a/packages/ui.mitosis/package.json +++ b/packages/ui.mitosis/package.json @@ -15,14 +15,14 @@ } }, "scripts": { - "dev": "watch \"npm run build\" src", "build": "npm run build.mitosis && concurrently npm:build.angular npm:build.react npm:build.vue", "build.angular": "node tools/ng-build.cli.mjs", "build.mitosis": "mitosis build --c mitosis.config.cjs", "build.react": "vite build -c vite.config.react.mjs", "build.vue": "vite build -c vite.config.vue.mjs", "lint": "prettier . --check && eslint .", - "lint:fix": "prettier . --write && eslint . --fix" + "lint:fix": "prettier . --write && eslint . --fix", + "start": "watch \"npm run build\" src" }, "devDependencies": { "@builder.io/mitosis": "latest", diff --git a/packages/ui.mitosis/turbo.json b/packages/ui.mitosis/turbo.json new file mode 100644 index 0000000..df12b63 --- /dev/null +++ b/packages/ui.mitosis/turbo.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": ["//"], + "tasks": { + "build": { + "outputs": [".angular/**", "dist/**"] + } + } +} diff --git a/packages/ui.stencil/package.json b/packages/ui.stencil/package.json index a44060f..c26d3f3 100644 --- a/packages/ui.stencil/package.json +++ b/packages/ui.stencil/package.json @@ -26,9 +26,9 @@ ], "scripts": { "build": "stencil build", - "dev": "stencil build --watch", "lint": "prettier . --check && stylelint \"**/*.{css,scss}\" && eslint .", - "lint:fix": "prettier . --write && stylelint \"**/*.{css,scss}\" --fix && eslint . --fix" + "lint:fix": "prettier . --write && stylelint \"**/*.{css,scss}\" --fix && eslint . --fix", + "start": "stencil build --watch" }, "devDependencies": { "@storybook/html": "^8.3.3", diff --git a/packages/ui.stencil/turbo.json b/packages/ui.stencil/turbo.json new file mode 100644 index 0000000..6251201 --- /dev/null +++ b/packages/ui.stencil/turbo.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": ["//"], + "tasks": { + "build": { + "outputs": [".stencil/**", "dist/**", "loader/**"] + } + } +} diff --git a/turbo.json b/turbo.json index d4b81a9..2ba297f 100644 --- a/turbo.json +++ b/turbo.json @@ -3,25 +3,22 @@ "ui": "tui", "tasks": { "build": { - "dependsOn": ["^build"], - "outputs": [".angular", ".stencil", "dist", "loader"] - }, - "dev": { - "cache": false, - "persistent": true, "dependsOn": ["^build"] }, - "dev:ssr": { - "cache": false, - "persistent": true, - "dependsOn": ["build"] + "build:prod": { + "dependsOn": ["^build:prod"] }, "lint": {}, "lint:fix": {}, - "preview": { + "start": { + "cache": false, + "persistent": true, + "dependsOn": ["^build"] + }, + "start:prod": { "cache": false, "persistent": true, - "dependsOn": ["build"] + "dependsOn": ["build:prod"] } } }