fix: cross-envify all scripts

Makes the build run seamlessly on Windows (without
Posix sub-systems).
This commit is contained in:
Philipp Fromme 2021-03-09 15:55:29 +01:00 committed by fake-join[bot]
parent 992bc5fb05
commit 2c1f6be824
2 changed files with 57 additions and 4 deletions

52
package-lock.json generated
View File

@ -2963,6 +2963,58 @@
"sha.js": "^2.4.8" "sha.js": "^2.4.8"
} }
}, },
"cross-env": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
"dev": true,
"requires": {
"cross-spawn": "^7.0.1"
},
"dependencies": {
"cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
"integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
"dev": true,
"requires": {
"path-key": "^3.1.0",
"shebang-command": "^2.0.0",
"which": "^2.0.1"
}
},
"path-key": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
"dev": true
},
"shebang-command": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
"integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
"dev": true,
"requires": {
"shebang-regex": "^3.0.0"
}
},
"shebang-regex": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
"dev": true
},
"which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
"dev": true,
"requires": {
"isexe": "^2.0.0"
}
}
}
},
"cross-spawn": { "cross-spawn": {
"version": "6.0.5", "version": "6.0.5",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",

View File

@ -5,13 +5,13 @@
"scripts": { "scripts": {
"all": "run-s lint test distro test:distro", "all": "run-s lint test distro test:distro",
"lint": "eslint .", "lint": "eslint .",
"start": "SINGLE_START=modeler npm run dev", "start": "cross-env SINGLE_START=modeler npm run dev",
"start:viewer": "SINGLE_START=viewer npm run dev", "start:viewer": "cross-env SINGLE_START=viewer npm run dev",
"start:navigated-viewer": "SINGLE_START=navigated-viewer npm run dev", "start:navigated-viewer": "cross-env SINGLE_START=navigated-viewer npm run dev",
"dev": "npm test -- --auto-watch --no-single-run", "dev": "npm test -- --auto-watch --no-single-run",
"test": "karma start test/config/karma.unit.js", "test": "karma start test/config/karma.unit.js",
"distro": "node tasks/build-distro.js", "distro": "node tasks/build-distro.js",
"collect-translations": "COLLECT_TRANSLATIONS=1 npm test", "collect-translations": "cross-env COLLECT_TRANSLATIONS=1 npm test",
"test:distro": "node tasks/test-distro.js", "test:distro": "node tasks/test-distro.js",
"postversion": "run-s distro test:distro" "postversion": "run-s distro test:distro"
}, },
@ -50,6 +50,7 @@
"chai": "^4.1.2", "chai": "^4.1.2",
"chai-match": "^1.1.1", "chai-match": "^1.1.1",
"cpx": "^1.5.0", "cpx": "^1.5.0",
"cross-env": "^7.0.3",
"del": "^3.0.0", "del": "^3.0.0",
"eslint": "^7.14.0", "eslint": "^7.14.0",
"eslint-plugin-bpmn-io": "^0.12.0", "eslint-plugin-bpmn-io": "^0.12.0",