
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.
135 lines
4.8 KiB
JSON
135 lines
4.8 KiB
JSON
{
|
|
"name": "root",
|
|
"private": true,
|
|
"description": "FreeSewing is an open source platform for made-to-measure sewing patterns",
|
|
"keywords": [
|
|
"sewing",
|
|
"parametric design",
|
|
"made-to-measure"
|
|
],
|
|
"author": "Joost De Cock <joost@decock.org> (https://github.com/joostdecock)",
|
|
"homepage": "https://freesewing.org/",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"new": "node --experimental-json-modules --no-warnings scripts/add-software.mjs",
|
|
"?": "node scripts/help.mjs",
|
|
"tips": "node scripts/help.mjs",
|
|
"lab": "cd sites/lab && yarn start",
|
|
"lab-debug": "cd sites/lab && yarn start-debug",
|
|
"kickstart": "npx yarn install && yarn reconfigure && yarn buildall && yarn prepare && yarn tips",
|
|
"kickstart:windows": "npx yarn install && yarn wbuildall && yarn prepare && yarn tips",
|
|
"cleanall": "lerna run clean",
|
|
"test": "lerna run test",
|
|
"e2e": "lerna run e2e",
|
|
"prettier": "npx prettier --write 'config/*' 'config/**/*' 'packages/**/src/*.mjs' 'packages/i18n/src/locales/**/*.*' 'packages/**/tests/*.mjs'",
|
|
"reconfigure": "all-contributors generate && node --experimental-json-modules --no-warnings scripts/reconfigure.mjs",
|
|
"sitebuildconfigure": "SITEBUILD=1 node --experimental-json-modules --no-warnings scripts/reconfigure.mjs",
|
|
"prerelease": "lerna version --no-git-tag-version --no-push && yarn reconfigure && yarn buildall",
|
|
"buildall": "lerna run build:all",
|
|
"build": "yarn build:all",
|
|
"wbuild": "yarn wbuild:all",
|
|
"testall": "node scripts/testall.js",
|
|
"lint": "LINTER=1 lerna run --no-bail lint -- ",
|
|
"qa": "yarn qa:prettier && yarn qa:lint",
|
|
"qa:prettier": "npx prettier",
|
|
"qa:lint": "npx eslint",
|
|
"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'",
|
|
"ship": "lerna exec --no-bail -- npm publish",
|
|
"bump": "git add . && git commit -m 'chore: Reconfigure packages'",
|
|
"contributors:add": "all-contributors add",
|
|
"contributors:generate": "all-contributors generate",
|
|
"famadd": "all-contributors add",
|
|
"famgen": "all-contributors generate",
|
|
"checkdocs": "remark markdown --quiet --frail",
|
|
"strapi:translate": "node scripts/strapi-en-to-other.mjs",
|
|
"fixdocs": "remark markdown --quiet --frail --output",
|
|
"wbuildall": "lerna run wbuildall",
|
|
"prepare": "husky install"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/freesewing/freesewing.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/freesewing/freesewing/issues"
|
|
},
|
|
"prettier": "@freesewing/prettier-config",
|
|
"lint-staged": {
|
|
"*": [
|
|
"npx prettier --write"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@babel/eslint-parser": "^7.19.1",
|
|
"@babel/plugin-syntax-import-assertions": "^7.18.6",
|
|
"@babel/preset-react": "^7.22.5",
|
|
"@commitlint/cli": "^17.0.2",
|
|
"@commitlint/config-conventional": "^17.0.2",
|
|
"@types/express": "^4.17.13",
|
|
"@types/node": "^20.1.0",
|
|
"@types/react": "^18.0.8",
|
|
"all-contributors-cli": "^6.20.0",
|
|
"autoprefixer": "^10.4.0",
|
|
"ava": "^5.1.0",
|
|
"axios": "^1.1.2",
|
|
"chai": "^4.2.0",
|
|
"chai-string": "^1.5.0",
|
|
"chalk": "^4.1.0",
|
|
"codecov": "^3.8.3",
|
|
"cross-env": "^7.0.2",
|
|
"esbuild": "^0.18.2",
|
|
"esbuild-plugin-yaml": "^0.0.1",
|
|
"eslint": "^8.23.1",
|
|
"eslint-config-next": "^13.0.6",
|
|
"eslint-plugin-jsonc": "^2.4.0",
|
|
"eslint-plugin-markdown": "^3.0.0",
|
|
"eslint-plugin-mongo": "^1.0.5",
|
|
"eslint-plugin-yaml": "^0.5.0",
|
|
"esm": "^3.2.25",
|
|
"handlebars": "^4.7.7",
|
|
"husky": "^8.0.1",
|
|
"js-yaml": "^4.0.0",
|
|
"lerna": "^7.0.2",
|
|
"lint-staged": "^13.0.3",
|
|
"mocha": "^10.0.0",
|
|
"mustache": "^4.0.1",
|
|
"nyc": "^15.1.0",
|
|
"prettier": "^3.0.0",
|
|
"pretty-quick": "^3.0.0",
|
|
"prop-types": "^15.7.2",
|
|
"rehype-format": "^4.0.1",
|
|
"remark": "^14.0.2",
|
|
"remark-frontmatter": "^4.0.1",
|
|
"remark-html": "^15.0.1",
|
|
"remark-lint-emphasis-marker": "^3.1.1",
|
|
"remark-lint-list-item-indent": "^3.1.1",
|
|
"remark-preset-lint-consistent": "^5.1.1",
|
|
"remark-preset-lint-recommended": "^6.1.2",
|
|
"rimraf": "^5.0.0",
|
|
"standard": "^17.0.0"
|
|
},
|
|
"workspaces": [
|
|
"designs/*",
|
|
"packages/*",
|
|
"plugins/*",
|
|
"sites/*"
|
|
],
|
|
"version": "0.0.0",
|
|
"dependencies": {
|
|
"autoprefixer": "^10.4.0",
|
|
"c8": "^8.0.0",
|
|
"handlebars": "^4.7.7",
|
|
"jsonfile": "^6.1.0",
|
|
"postcss": "^8.4.5",
|
|
"remark-cli": "^11.0.0",
|
|
"remark-frontmatter": "^4.0.1",
|
|
"remark-lint-emphasis-marker": "^3.1.1",
|
|
"remark-lint-list-item-indent": "^3.1.1",
|
|
"remark-preset-lint-consistent": "^5.1.1",
|
|
"remark-preset-lint-recommended": "^6.1.2",
|
|
"tailwindcss": "^3.0.7",
|
|
"yarn": "^1.22.19"
|
|
},
|
|
"packageManager": "yarn@1.22.19"
|
|
}
|