Skip to content

Commit

Permalink
Merge pull request #46 from neostfox/master
Browse files Browse the repository at this point in the history
feat(root): Add Windows Supports
  • Loading branch information
imcuttle authored Oct 31, 2023
2 parents 7ed35f9 + 6b12c22 commit 8dac667
Show file tree
Hide file tree
Showing 12 changed files with 8,843 additions and 12,663 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"author": "imcuttle <imcuttle@163.com>",
"scripts": {
"preinstall": "npx only-allow pnpm",
"start": "pnpm start --filter=@mometa/editor",
"start:app:cr:debug": "pnpm run start:cr:debug --filter=@mometa/app",
"start:app:cr": "pnpm run start:cr --filter=@mometa/app",
"start:app-webpack4:cr": "pnpm run start:cr --filter=@mometa/app-webpack4",
"start": "pnpm --filter @mometa/editor start",
"start:app:cr:debug": "pnpm --filter=@mometa/app start:cr:debug ",
"start:app:cr": "pnpm --filter=@mometa/app start:cr",
"start:app-webpack4:cr": "pnpm --filter=@mometa/app-webpack4 start:cr",
"test": "npx jest",
"test:watch": "npm test -- --watch",
"preversion": "npm test",
Expand Down Expand Up @@ -128,6 +128,7 @@
"commander": "^8.3.0",
"concurrently": "^6.4.0",
"conventional-changelog-conventionalcommits": "^4.6.3",
"cross-env": "^7.0.3",
"edam-cli": "^3.4.15",
"human-format": "^0.11.0",
"husky": "^4.3.8",
Expand All @@ -140,6 +141,7 @@
"prettier": "^2.4.1",
"pretty-quick": "^3.1.2",
"rimraf": "^3.0.2",
"shelljs": "^0.8.5",
"ts-jest": "^27.0.7",
"typescript": "^4.5.2"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/app-webpack4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
]
},
"scripts": {
"start:cr": "CLIENT_RENDER=1 node scripts/start.js",
"start:cr": "cross-env CLIENT_RENDER=1 node scripts/start.js",
"start": "node scripts/start.js",
"build": "node scripts/build.js",
"__test": "node scripts/test.js"
Expand Down
4 changes: 2 additions & 2 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
"workbox-webpack-plugin": "^6.4.1"
},
"scripts": {
"start:cr": "NODE_OPTIONS=\"$INNER_NODE_OPTIONS\" CLIENT_RENDER=1 node scripts/start.js",
"start:cr:debug": "INNER_NODE_OPTIONS=--inspect npm run start:cr",
"start:cr": "cross-env NODE_OPTIONS=--inspect CLIENT_RENDER=1 node scripts/start.js",
"start:cr:debug": "cross-env INNER_NODE_OPTIONS=--inspect CLIENT_RENDER=1 node scripts/start.js",
"start": "node scripts/start.js",
"build": "node scripts/build.js"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/editor/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@
"workbox-webpack-plugin": "^6.2.4"
},
"scripts": {
"node": "__MOMETA_LOCAL__=true NODE_OPTIONS=\"--loader ts-node/esm -r tsconfig-paths/register\" node",
"node": "cross-env __MOMETA_LOCAL__=true NODE_OPTIONS=\"--loader ts-node/esm -r tsconfig-paths/register\" node",
"start": "npm run node scripts/start.js",
"build:runtime": "DISABLE_COPY_PUBLIC=true GENERATE_SOURCEMAP=false BUILD_MOD=runtime npm run node scripts/build.js",
"build": "BUILD_MOD=app npm run node scripts/build.js",
"build:runtime": "cross-env DISABLE_COPY_PUBLIC=true GENERATE_SOURCEMAP=false BUILD_MOD=runtime npm run node scripts/build.js",
"build": "cross-env BUILD_MOD=app npm run node scripts/build.js",
"test": "node scripts/test.js"
},
"eslintConfig": {
Expand Down
12 changes: 6 additions & 6 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
"babel"
],
"scripts": {
"test": "NODE_OPTIONS=--experimental-vm-modules ../../scripts/run test",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules ../../scripts/run.js test",
"build:app": "cd example && npm run build",
"build:lib": "../../scripts/run build",
"build:lib": "npx ../../scripts/run.js build",
"build:runtime": "cd example && npm run build:runtime",
"postbuild:runtime": "node ./example/config/post-buildruntime",
"build": "run-p -l 'build:*'",
"build": "run-p -l build:*",
"start": "cd example && npm start",
"packlimit": "../../scripts/run packlimit",
"packlimit": "npx ../../scripts/run.js packlimit",
"prepare": "npm run build",
"prepublishOnly": "npm run packlimit && ../../scripts/run pkgxo --submit",
"postpublish": "../../scripts/run pkgxo --reset",
"prepublishOnly": "npm run packlimit && npx ../../scripts/run.js pkgxo --submit",
"postpublish": "npx ../../scripts/run.js pkgxo --reset",
"version": "npm test && npm run packlimit"
},
"peerDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/fs-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"types"
],
"scripts": {
"test": "../../scripts/run test",
"build": "../../scripts/run build",
"packlimit": "../../scripts/run packlimit",
"test": "npx ../../scripts/run.js test",
"build": "npx ../../scripts/run.js build",
"packlimit": "npx ../../scripts/run.js packlimit",
"dev": "npm run build -- --watch",
"prepare": "npm run build",
"prepublishOnly": "npm run packlimit",
Expand Down
2 changes: 1 addition & 1 deletion packages/materials-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"scripts": {
"test": "echo noop",
"build": "../../scripts/run build",
"build": "npx ../../scripts/run.js build",
"packlimit": "../../scripts/run packlimit",
"dev": "npm run build -- --watch",
"prepare": "npm run build",
Expand Down
6 changes: 3 additions & 3 deletions packages/materials-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"types"
],
"scripts": {
"test": "../../scripts/run test",
"build": "../../scripts/run build",
"packlimit": "../../scripts/run packlimit",
"test": "npx ../../scripts/run.js test",
"build": "npx ../../scripts/run.js build",
"packlimit": "npx ../../scripts/run.js packlimit",
"dev": "npm run build -- --watch",
"prepare": "npm run build",
"prepublishOnly": "npm run packlimit && ../../scripts/run pkgxo --submit",
Expand Down
6 changes: 3 additions & 3 deletions packages/react-docgen-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"types"
],
"scripts": {
"__test": "../../scripts/run test",
"build": "../../scripts/run build",
"packlimit": "../../scripts/run packlimit",
"__test": "../../scripts/run.js test",
"build": "../../scripts/run.js build",
"packlimit": "../../scripts/run.js packlimit",
"dev": "npm run build -- --watch",
"prepublishOnly": "npm run build && npm run packlimit",
"version": "npm run packlimit"
Expand Down
Loading

0 comments on commit 8dac667

Please sign in to comment.