Skip to content

Commit 9f85a67

Browse files
committed
refactor: move vedajs examples to workspaces
1 parent c6417f7 commit 9f85a67

31 files changed

+60
-55164
lines changed

.husky/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npm run pre-commit
4+
yarn workspace veda pre-commit
5+
yarn workspace vedajs pre-commit

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
{
22
"name": "veda-monorepo",
3-
"private": "true",
3+
"private": true,
44
"version": "0.0.0",
55
"description": "VJ / Live Coding environment with GLSL",
66
"keywords": [],
77
"repository": "https://github.com/fand/veda",
88
"license": "MIT",
99
"workspaces": [
10-
"packages/**"
10+
"packages/**",
11+
"vedajs-examples/**"
1112
],
1213
"devDependencies": {
1314
"all-contributors-cli": "6.20.0",
1415
"turbo": "^1.4.3"
1516
},
1617
"scripts": {
17-
"pre-commit": "lint-staged"
18+
"build": "turbo run build",
19+
"dev": "turbo run dev",
20+
"clean": "turbo run clean",
21+
"lint": "turbo run lint"
1822
}
1923
}

packages/veda/client/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
22
* @license
3-
* Copyright 2010-2022 Three.js Authors
3+
* Copyright 2010-2021 Three.js Authors
44
* SPDX-License-Identifier: MIT
55
*/

packages/veda/lib/app.js

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/veda/lib/app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/veda/lib/player.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/veda/lib/player.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/veda/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"version": "2.14.3",
55
"description": "VJ / Live Coding environment with GLSL",
66
"keywords": [],
7+
"author": "AMAGI <[email protected]>",
78
"activationCommands": {
89
"atom-workspace": "veda:toggle"
910
},
@@ -32,7 +33,7 @@
3233
"socket.io-client": "^4.4.1",
3334
"three": "0.135",
3435
"tmp": "^0.2.1",
35-
"vedajs": "^0.16.0",
36+
"vedajs": "*",
3637
"which": "^2.0.2"
3738
},
3839
"package-deps": [
@@ -78,7 +79,7 @@
7879
"ci": "run-p lint test build",
7980
"test": "ava --verbose",
8081
"lint": "eslint 'src/**/*.ts'",
81-
"dev": "run-s watch",
82+
"dev": "yarn watch",
8283
"build": "run-p build:ts build:client",
8384
"build:ts": "tsc",
8485
"build:client": "webpack --mode production",

packages/veda/src/app.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,10 @@ export default class App {
138138
}
139139

140140
this.watchShader();
141-
this.state.activeEditorDisposer = atom.workspace.onDidChangeActiveTextEditor(
142-
(): void => {
141+
this.state.activeEditorDisposer =
142+
atom.workspace.onDidChangeActiveTextEditor((): void => {
143143
this.watchShader();
144-
},
145-
);
144+
});
146145
}
147146

148147
public watchShader(): void {

0 commit comments

Comments
 (0)