Skip to content

Commit

Permalink
adopting esbuild + lerna + npm simplified setup based on esbuild-ts-m…
Browse files Browse the repository at this point in the history
…onorepo.
  • Loading branch information
bhouston committed Jun 16, 2023
1 parent dc299c9 commit 11e3838
Show file tree
Hide file tree
Showing 59 changed files with 21,526 additions and 43,190 deletions.
8 changes: 7 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@
"promise",
"simple-import-sort",
"prettier",
"import"
"import",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"react",
"react-hooks"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"rules": {
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ dist
node-spec.json
*.blend1
node-spec.csv
*.js
*.d.ts
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"eslint.probe": ["javascript", "javascriptreact", "typescript","json"],
"editor.formatOnSave": false,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"cSpell.words": [
"fontawesome",
"fortawesome",
"GLTF",
"interruptible",
"lerp",
Expand Down
5 changes: 5 additions & 0 deletions apps/exec-graph/bin/cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env node

import { main } from '../dist/index.js';

main();
22 changes: 22 additions & 0 deletions apps/exec-graph/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "exec-graph",
"version": "0.0.1",
"type": "module",
"bin": "./bin/cli.js",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"source": "./src/index.ts",
"scripts": {
"build": "esbuild src/index.ts --format=cjs --platform=node --bundle --sourcemap --outfile=dist/index.js",
"dev": "esbuild src/index.ts --format=cjs --platform=node --bundle --sourcemap --outfile=dist/index.js --watch",
"types": "tsc --noEmit --watch"
},
"devDependencies": {
"@types/glob": "^8.0.0"
},
"dependencies": {
"@behave-graph/core": "*",
"commander": "^9.4.1",
"glob": "^8.0.3"
}
}
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions apps/export-node-spec/bin/cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env node

import { main } from '../dist/index.js';

main();
23 changes: 23 additions & 0 deletions apps/export-node-spec/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "export-node-spec",
"version": "0.0.1",
"type": "module",
"bin": "./bin/cli.js",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"source": "./src/index.ts",
"scripts": {
"build": "esbuild src/index.ts --format=cjs --platform=node --bundle --sourcemap --outfile=dist/index.js",
"dev": "esbuild src/index.ts --format=cjs --platform=node --bundle --sourcemap --outfile=dist/index.js --watch",
"types": "tsc --noEmit --watch"
},
"devDependencies": {
"@types/glob": "^8.0.0"
},
"dependencies": {
"@behave-graph/core": "*",
"commander": "^9.4.1",
"csv-stringify": "^6.2.1",
"glob": "^8.0.3"
}
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@behave-graph/examples-graph-editor",
"name": "graph-editor",
"version": "1.0.0",
"description": "",
"directories": {
"lib": "src"
"scripts": {
"build": "esbuild src/index.tsx --bundle --minify --outfile=public/js/index.js",
"dev": "esbuild src/index.tsx --bundle --outfile=public/js/index.js --watch --serve=8001 --servedir=public",
"types": "tsc --noEmit --watch"
},
"dependencies": {
"@behave-graph/core": "*",
"@behave-graph/flow": "*",
"react": "^18.2.0",
"reactflow": "^11.3.2",
"three": "^0.145.0"
},
Expand All @@ -17,17 +17,7 @@
"tailwindcss": "^3.2.4",
"autoprefixer": "^10.4.13",
"postcss": "^8.4.19",
"ts-node": "^10.9.1",
"typescript": "^4.7.3",
"vite": "^3.2.3",
"vite-plugin-eslint": "^1.8.1",
"vite-tsconfig-paths": "^3.6.0"
},
"scripts": {
"start": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"author": "",
"license": "ISC"
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
<script type="module" src="/js/index.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions apps/graph-editor/public/js/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 11e3838

Please sign in to comment.