
Recently I refactored the prebuild code. One thing I did not touch (yet) was the various site dependencies. They were then ported to NX over the previous system with build priorities we had in place. And while that was a welcome improvement, it did not really address the bigger picture: we don't actually need to build any of these dependencies to build the site. All we need to do is help NodeJS so it can resolve everything from the source. So this commit does that by adding a top-level run script `yarn buildsiteconfigure` which calls `yarn reconfigure` but with the BUILDSITE variable set. When that variable is set, the reconfigure script will skip all optional steps and generate a slightly different package.json file that tells NodeJS to looks the package from source, rather than to look for the build files. After running this script, the prebuild step for the various sites will run without problems, even on a fresh repo where nothing has ever been build. So I've updated the prebuild script in the sites to run this. For local development, please use `uyarn predev` so that you don't muck with all the package.json files. If you do so (by accident or not) a `yarn reconfigure` run will put everything back in its place.
73 lines
2 KiB
JSON
73 lines
2 KiB
JSON
{
|
|
"name": "@freesewing/plugin-bundle",
|
|
"version": "3.0.0-alpha.10",
|
|
"description": "An umbrella package of 8 essential FreeSewing build-time plugins",
|
|
"author": "Joost De Cock <joost@joost.at> (https://github.com/joostdecock)",
|
|
"homepage": "https://freesewing.org/",
|
|
"repository": "github:freesewing/freesewing",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/freesewing/freesewing/issues"
|
|
},
|
|
"funding": {
|
|
"type": "individual",
|
|
"url": "https://freesewing.org/patrons/join"
|
|
},
|
|
"keywords": [
|
|
"freesewing",
|
|
"bundle",
|
|
"plugin",
|
|
"sewing pattern",
|
|
"sewing",
|
|
"design",
|
|
"parametric design",
|
|
"made to measure",
|
|
"diy",
|
|
"fashion"
|
|
],
|
|
"type": "module",
|
|
"module": "dist/index.mjs",
|
|
"exports": {
|
|
".": "./dist/index.mjs"
|
|
},
|
|
"scripts": {
|
|
"build": "node build.mjs",
|
|
"build:all": "yarn build",
|
|
"clean": "rimraf dist",
|
|
"mbuild": "NO_MINIFY=1 node build.mjs",
|
|
"symlink": "mkdir -p ./node_modules/@freesewing && cd ./node_modules/@freesewing && ln -s -f ../../../* . && cd -",
|
|
"test": "npx mocha tests/*.test.mjs",
|
|
"vbuild": "VERBOSE=1 node build.mjs",
|
|
"lab": "cd ../../sites/lab && yarn start",
|
|
"tips": "node ../../scripts/help.mjs",
|
|
"lint": "npx eslint 'src/**' 'tests/*.mjs'",
|
|
"prettier": "npx prettier --write 'src/*.mjs' 'tests/*.mjs'",
|
|
"testci": "npx mocha tests/*.test.mjs --reporter ../../tests/reporters/terse.js",
|
|
"wbuild": "node build.mjs",
|
|
"wbuild:all": "yarn wbuild"
|
|
},
|
|
"peerDependencies": {
|
|
"@freesewing/core": "3.0.0-alpha.10"
|
|
},
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"mocha": "10.2.0",
|
|
"chai": "4.3.7",
|
|
"@freesewing/plugin-annotations": "3.0.0-alpha.10",
|
|
"@freesewing/plugin-mirror": "3.0.0-alpha.10",
|
|
"@freesewing/plugin-round": "3.0.0-alpha.10",
|
|
"@freesewing/plugin-sprinkle": "3.0.0-alpha.10"
|
|
},
|
|
"files": [
|
|
"dist/*",
|
|
"README.md"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"tag": "next"
|
|
},
|
|
"engines": {
|
|
"node": "18",
|
|
"npm": "9"
|
|
}
|
|
}
|