Skip to content

Commit a50aa9e

Browse files
setup turbo & add build scripts to each packages - might have major impact
1 parent 29ff35a commit a50aa9e

File tree

65 files changed

+410
-32
lines changed

Some content is hidden

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

65 files changed

+410
-32
lines changed

editor/next.config.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
const TerserPlugin = require("terser-webpack-plugin");
22
const withTM = require("next-transpile-modules")([
3-
"dirty",
4-
53
// region @editor-app
64
"@editor-app/live-session",
75
"@code-editor/preview-pip", // TODO: remove me. this is for development. for production, use npm ver instead.

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"csstype": "3.1.0"
2323
},
2424
"devDependencies": {
25+
"@types/node": "^18.6.3",
2526
"lerna": "^4.0.0",
26-
"turbo": "^1.4.2"
27+
"turbo": "^1.4.2",
28+
"typescript": "^4.7.4"
2729
}
28-
}
30+
}

packages/application/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"name": "@designto/application-kit",
3-
"version": "0.0.0"
3+
"version": "0.0.0",
4+
"scripts": {
5+
"build": "tsc"
6+
}
47
}

packages/application/tsconfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}

packages/builder-config-preset/index.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export const reactnative_presets = {
6969
reactnative_default: <config.ReactNativeFrameworkConfig>{
7070
framework: Framework.reactnative,
7171
language: Language.tsx,
72-
svg: null, // TODO:
73-
gradient: null, // TODO:
72+
svg: null as unknown, // TODO:
73+
gradient: null as unknown, // TODO:
7474
styling: {
7575
type: "react-native-stylesheet",
7676
module: "react-native",
@@ -80,8 +80,8 @@ export const reactnative_presets = {
8080
reactnative_with_style_sheet: <config.ReactNativeFrameworkConfig>{
8181
framework: Framework.reactnative,
8282
language: Language.tsx,
83-
svg: null, // TODO:
84-
gradient: null, // TODO:
83+
svg: null as unknown, // TODO:
84+
gradient: null as unknown, // TODO:
8585
styling: {
8686
type: "react-native-stylesheet",
8787
module: "react-native",
@@ -91,8 +91,8 @@ export const reactnative_presets = {
9191
reactnative_with_styled_components: <config.ReactNativeFrameworkConfig>{
9292
framework: Framework.reactnative,
9393
language: Language.tsx,
94-
svg: null, // TODO:
95-
gradient: null, // TODO:
94+
svg: null as unknown, // TODO:
95+
gradient: null as unknown, // TODO:
9696
styling: {
9797
type: "styled-components",
9898
module: "styled-components/native",
@@ -102,8 +102,8 @@ export const reactnative_presets = {
102102
reactnative_with_inline_style: <config.ReactNativeFrameworkConfig>{
103103
framework: Framework.reactnative,
104104
language: Language.tsx,
105-
svg: null, // TODO:
106-
gradient: null, // TODO:
105+
svg: null as unknown, // TODO:
106+
gradient: null as unknown, // TODO:
107107
styling: {
108108
type: "inline-style",
109109
},
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "@grida/builder-config-preset",
33
"authors": "Grida.co",
4-
"version": "1.0.0",
4+
"version": "0.0.0",
5+
"scripts": {
6+
"build": "tsc"
7+
},
58
"dependencies": {}
69
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}

packages/builder-config/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"name": "@grida/builder-config",
3-
"version": "0.0.0"
3+
"version": "0.0.0",
4+
"scripts": {
5+
"build": "tsc"
6+
}
47
}

packages/builder-config/tsconfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}

packages/builder-css-styles/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "@web-builder/styles",
33
"version": "0.0.0",
4+
"scripts": {
5+
"build": "tsc"
6+
},
47
"dependencies": {
58
"camelcase-css": "^2.0.1"
69
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"name": "@web-builder/module-es",
3-
"version": "0.0.0"
3+
"version": "0.0.0",
4+
"scripts": {
5+
"build": "tsc"
6+
}
47
}
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"name": "@web-builder/module-jsx",
3-
"version": "0.0.0"
3+
"version": "0.0.0",
4+
"scripts": {
5+
"build": "tsc"
6+
}
47
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}

packages/builder-platform-types/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"name": "@grida/builder-platform-types",
33
"authors": "Grida.co",
44
"version": "1.0.0",
5+
"scripts": {
6+
"build": "tsc"
7+
},
58
"dependencies": {}
69
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}

packages/builder-react-core/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"license": "Apache 2.0",
66
"homepage": "https://coli.codes/react",
77
"author": "Grida Authors",
8+
"scripts": {
9+
"build": "tsc"
10+
},
811
"dependencies": {
912
"@web-builder/styled": "0.0.0"
1013
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}

packages/builder-react-native/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@
55
"license": "Apache 2.0",
66
"homepage": "https://coli.codes/react-native",
77
"author": "Grida Authors",
8+
"scripts": {
9+
"build": "tsc"
10+
},
811
"dependencies": {
912
"@web-builder/react-core": "17.0.2"
1013
},
1114
"devDependencies": {
1215
"@types/react-native": "^0.66.16"
1316
}
14-
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"name": "@web-builder/core",
3-
"version": "0.0.0"
3+
"version": "0.0.0",
4+
"scripts": {
5+
"build": "tsc"
6+
}
47
}
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}

packages/builder-web-nodejs/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "@web-builder/nodejs",
33
"version": "0.0.0",
4+
"scripts": {
5+
"build": "tsc"
6+
},
47
"dependencies": {
58
"assert": "^2.0.0",
69
"semver": "^7.3.5"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}

packages/builder-web-react/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"license": "Apache 2.0",
66
"homepage": "https://coli.codes/react",
77
"author": "Grida Authors",
8+
"scripts": {
9+
"build": "tsc"
10+
},
811
"dependencies": {
912
"@web-builder/react-core": "17.0.2"
1013
}
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"name": "@web-builder/reflect-ui",
3-
"version": "0.0.0"
3+
"version": "0.0.0",
4+
"scripts": {
5+
"build": "tsc"
6+
}
47
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}

packages/builder-web-solid/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"license": "Apache 2.0",
66
"homepage": "https://coli.codes/solid-js",
77
"author": "Grida Authors",
8+
"scripts": {
9+
"build": "tsc"
10+
},
811
"dependencies": {
912
"@web-builder/react-core": "17.0.2"
1013
}
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"name": "@web-builder/styled",
3-
"version": "0.0.0"
3+
"version": "0.0.0",
4+
"scripts": {
5+
"build": "tsc"
6+
}
47
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"name": "@web-builder/vanilla",
33
"version": "0.0.0",
4+
"scripts": {
5+
"build": "tsc"
6+
},
47
"dependencies": {}
58
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"baseUrl": ".",
5+
"outDir": "dist",
6+
"skipLibCheck": true
7+
},
8+
"exclude": ["dist", "node_modules", "**/*.d.ts"]
9+
}

0 commit comments

Comments
 (0)