1
0
Fork 0

add support for windows-specific build and prebuild scripts

This commit is contained in:
Enoch Riese 2022-09-13 11:32:50 -05:00
parent aa1d76ee80
commit aba62cd3bc
82 changed files with 260 additions and 84 deletions

View file

@ -28,7 +28,9 @@ i18n:
models:
test: "npx mocha tests/*.test.mjs"
new-design:
build: "SITE=new-design/shared node ../../sites/shared/prebuild/i18n-only.mjs && cp ../../scripts/banner.mjs ./lib && node build.mjs"
i18n-only: "node ../../sites/shared/prebuild/i18n-only.mjs"
build: "SITE=new-design/shared yarn run i18n-only && cp ../../scripts/banner.mjs ./lib && node build.mjs"
wbuild: "set SITE=new-design/shared && node ../../sites/shared/prebuild/i18n-only.mjs && copy ..\\..\\scripts\\banner.mjs .\\lab && node build.mjs && set SITE="
mbuild: '!'
test: '!'
testci: '!'

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step3": "node build.mjs"
"cibuild_step3": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step3": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step4": "node build.mjs"
"cibuild_step4": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step4": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step3": "node build.mjs"
"cibuild_step3": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step3": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step3": "node build.mjs"
"cibuild_step3": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step3": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step4": "node build.mjs"
"cibuild_step4": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step4": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -35,7 +35,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step4": "node build.mjs"
"cibuild_step4": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step4": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step3": "node build.mjs"
"cibuild_step3": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step3": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step4": "node build.mjs"
"cibuild_step4": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step4": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step5": "node build.mjs"
"cibuild_step5": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step5": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0",

View file

@ -16,6 +16,7 @@
"tips": "node scripts/help.mjs",
"lab": "cd sites/lab && yarn start",
"kickstart": "npx lerna bootstrap && yarn buildall && yarn tips",
"kickstart:windows": "npx lerna bootstrap && yarn wbuildall && yarn tips",
"cleanall": "lerna run clean",
"test": "lerna run test",
"prettier": "npx prettier --write 'packages/**/src/*.js' 'packages/**/config/*.js' 'packages/i18n/src/locales/**/*.*' 'packages/**/tests/*.mjs'",
@ -23,6 +24,7 @@
"prerelease": "lerna version --no-git-tag-version --no-push && yarn reconfigure && yarn buildall",
"buildall": "lerna run cibuild_step0 && lerna run cibuild_step1 && lerna run cibuild_step2 && lerna run cibuild_step3 && lerna run cibuild_step4 && lerna run cibuild_step5 && lerna run cibuild_step6 && lerna run cibuild_step7",
"build": "yarn buildall",
"wbuild": "yarn wbuildall",
"testall": "node scripts/testall.js",
"release": "lerna exec --no-bail -- npm publish",
"postrelease": "git add . && git commit -m ':bookmark: v$npm_package_version' && git tag -a v$npm_package_version -m ':bookmark: FreeSewing v$npm_package_version'",
@ -34,7 +36,8 @@
"famgen": "all-contributors generate",
"checkdocs": "remark markdown --quiet --frail",
"strapi:translate": "node scripts/strapi-en-to-other.mjs",
"fixdocs": "remark markdown --quiet --frail --output"
"fixdocs": "remark markdown --quiet --frail --output",
"wbuildall": "lerna run wcibuild_step0 && lerna run wcibuild_step1 && lerna run wcibuild_step2 && lerna run wcibuild_step3 && lerna run wcibuild_step4 && lerna run wcibuild_step5 && lerna run wcibuild_step6 && lerna run wcibuild_step7"
},
"repository": {
"type": "git",

View file

@ -42,7 +42,9 @@
"report": "c8 report",
"testci": "mocha tests/*.test.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"cibuild_step0": "node build.mjs"
"cibuild_step0": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step0": "node build.mjs"
},
"peerDependencies": {},
"dependencies": {

View file

@ -38,7 +38,10 @@
"prebuild": "node scripts/prebuilder.mjs",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"precibuild_step7": "node scripts/prebuilder.mjs",
"cibuild_step7": "node build.mjs"
"prewbuild": "node scripts/prebuilder.mjs",
"cibuild_step7": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step7": "node build.mjs"
},
"peerDependencies": {
"@freesewing/pattern-info": "^3.0.0-alpha.0"

View file

@ -35,7 +35,9 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
"cibuild_step6": "node build.mjs"
"cibuild_step6": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step6": "node build.mjs"
},
"peerDependencies": {
"@freesewing/utils": "^3.0.0-alpha.0"

View file

@ -22,12 +22,15 @@
".": "./dist/index.mjs"
},
"scripts": {
"build": "SITE=new-design/shared node ../../sites/shared/prebuild/i18n-only.mjs && cp ../../scripts/banner.mjs ./lib && node build.mjs",
"build": "SITE=new-design/shared yarn run i18n-only && cp ../../scripts/banner.mjs ./lib && node build.mjs",
"clean": "rimraf dist",
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
"cibuild_step6": "SITE=new-design/shared node ../../sites/shared/prebuild/i18n-only.mjs && cp ../../scripts/banner.mjs ./lib && node build.mjs"
"i18n-only": "node ../../sites/shared/prebuild/i18n-only.mjs",
"wbuild": "set SITE=new-design/shared && node ../../sites/shared/prebuild/i18n-only.mjs && copy ..\\..\\scripts\\banner.mjs .\\lab && node build.mjs && set SITE=",
"cibuild_step6": "SITE=new-design/shared yarn run i18n-only && cp ../../scripts/banner.mjs ./lib && node build.mjs",
"wcibuild_step6": "set SITE=new-design/shared && node ../../sites/shared/prebuild/i18n-only.mjs && copy ..\\..\\scripts\\banner.mjs .\\lab && node build.mjs && set SITE="
},
"peerDependencies": {},
"dependencies": {

View file

@ -31,7 +31,9 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
"cibuild_step6": "node build.mjs"
"cibuild_step6": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step6": "node build.mjs"
},
"peerDependencies": {},
"dependencies": {

View file

@ -31,7 +31,9 @@
"vbuild": "VERBOSE=1 node build.mjs",
"lab": "cd ../../sites/lab && yarn start",
"tips": "node ../../scripts/help.mjs",
"cibuild_step0": "node build.mjs"
"cibuild_step0": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step0": "node build.mjs"
},
"peerDependencies": {},
"dependencies": {},

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -41,7 +41,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step2": "node build.mjs"
"cibuild_step2": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step2": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -40,7 +40,9 @@
"tips": "node ../../scripts/help.mjs",
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
"cibuild_step1": "node build.mjs"
"cibuild_step1": "node build.mjs",
"wbuild": "node build.mjs",
"wcibuild_step1": "node build.mjs"
},
"peerDependencies": {
"@freesewing/core": "^3.0.0-alpha.0"

View file

@ -107,6 +107,7 @@ const buildSteps = buildOrder.map((step, i) => `lerna run cibuild_step${i}`);
const buildAllCommand = buildSteps.join(' && ');
const newRootPkgJson = {...rootPackageJson};
newRootPkgJson.scripts.buildall = buildAllCommand;
newRootPkgJson.scripts.wbuildall = buildAllCommand.replace(/cibuild/g, 'wcibuild')
fs.writeFileSync(
path.join(repo.path, 'package.json'),
JSON.stringify(newRootPkgJson, null, 2) + '\n'
@ -223,8 +224,18 @@ function scripts(pkg) {
// Enforce build order by generating the cibuild_stepX scrips
for (let step=0; step < buildOrder.length; step++) {
if (buildOrder[step].indexOf(pkg.name) !== -1) {
if (runScripts.prebuild) runScripts[`precibuild_step${step}`] = runScripts.prebuild
if (runScripts.build) runScripts[`cibuild_step${step}`] = runScripts.build
if (runScripts.prebuild) {
runScripts[`precibuild_step${step}`] = runScripts.prebuild
if (!runScripts.prewbuild) runScripts.prewbuild = runScripts.prebuild
}
if (runScripts.build) {
runScripts[`cibuild_step${step}`] = runScripts.build
// add windows scripts
if (!runScripts.wbuild) runScripts.wbuild = runScripts.build
runScripts[`wcibuild_step${step}`] = runScripts.wbuild
}
}
}