1
0
Fork 0
freesewing/package.json

115 lines
4.1 KiB
JSON
Raw Normal View History

{
"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": {
2025-04-21 18:20:52 +02:00
"add": "node --experimental-json-modules --no-warnings scripts/add-software.mjs",
"new": "node --experimental-json-modules --no-warnings scripts/add-software.mjs",
"build": "lerna run build:all",
"?": "node scripts/help.mjs",
"tips": "node scripts/help.mjs",
"org": "cd sites/org && npm run start",
2025-04-21 18:20:52 +02:00
"eu": "cd sites/org && npm run start",
"dev": "cd sites/dev && npm run start",
2025-04-21 18:20:52 +02:00
"studio": "cd sites/studio && npm run start",
2025-04-23 18:35:21 +02:00
"kickstart": "npm install && husky && npm run reconfigure && npm run tips",
"cleanall": "npx nx run-many --target=clean",
"test": "npx nx run-many --target=test",
"e2e": "npx nx run-many --target=e2e",
"prettier": "npx prettier --write 'config/*' 'config/**/*' 'packages/**/src/*.mjs' 'packages/i18n/src/locales/**/*.*' 'packages/**/tests/*.mjs' 'packages/react-components/src/**/*.mjs'",
chore: Re-structure workspaces, enforce build order These are some changes in the way the monorepo is structured, that are aimed at making it easier to get started. There are two important changes: **Multiple workspaces** We had a yarn workspaces setup at `packages/*`. But our monorepo has grown to 92 packages which can be overwhelming for people not familiar with the package names. To remedy this, I've split it into 4 different workspaces: - `designs/*`: Holds FreeSewing designs (think patterns) - `plugins/*`: Holds FreeSewing plugins - `packages/*`: Holds other packages published on NPM - `sites/*`: Holds software that is not published as an NPM package, such as our various websites and backend API This should make it easier to find things, and to answer questions like *where do I find the code for the plugins*. **Updated reconfigure script to handle build order** One problem when bootstrapping the repo is inter-dependencies between packages. For example, building a pattern will only work once `plugin-bundle` is built. Which will only work once all plugins in the bundle or built. And that will only work when `core` is built, and so on. This can be frustrating for new users as `yarn buildall` will fail. And it gets overlooked by seasoned devs because they're likely to have every package built in their repo so this issue doesn't concern them. To remedy this, we now have a `config/build-order.mjs` file and the updated `/scripts/reconfigure.mjs` script will enforce the build order so that things *just work*.
2022-06-16 17:11:31 +02:00
"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",
2022-11-15 11:32:48 -06:00
"testall": "node scripts/testall.js",
"lint": "LINTER=1 nx run-many --target=lint -- ",
"qa": "npm run qa:prettier && npm run qa:lint",
2022-09-15 13:49:55 +02:00
"qa:prettier": "npx prettier",
"qa:lint": "npx eslint",
2022-05-21 19:28:43 +02:00
"release": "lerna exec --no-bail -- npm publish",
2019-08-21 16:29:30 +02:00
"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'",
2022-01-05 19:00:52 +01:00
"ship": "lerna exec --no-bail -- npm publish",
2021-11-27 20:06:56 +01:00
"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",
2022-02-20 14:04:58 +01:00
"checkdocs": "remark markdown --quiet --frail",
"strapi:translate": "node scripts/strapi-en-to-other.mjs",
2022-09-15 13:49:55 +02:00
"fixdocs": "remark markdown --quiet --frail --output",
"reversion": "node --no-warnings scripts/reversion.mjs && npm run reconfigure"
},
"repository": {
"type": "git",
"url": "git+https://github.com/freesewing/freesewing.git"
},
"bugs": {
"url": "https://github.com/freesewing/freesewing/issues"
},
"prettier": "@freesewing/prettier-config",
2022-09-15 13:49:55 +02:00
"lint-staged": {
"*": [
"npx prettier --write"
2022-09-15 13:49:55 +02:00
]
},
"devDependencies": {
"@commitlint/cli": "^19.0.3",
"@commitlint/config-conventional": "^19.0.3",
2025-05-30 11:29:55 +02:00
"@eslint/css": "^0.8.1",
"@eslint/js": "^9.27.0",
"@eslint/json": "^0.12.0",
"@eslint/markdown": "^6.4.0",
"@nx/eslint": "20.2.1",
2024-02-04 10:44:55 +01:00
"all-contributors-cli": "^6.26.1",
2023-10-13 17:19:40 +02:00
"axios": "^1.5.1",
"chalk": "^4.1.0",
"cross-env": "^7.0.2",
2025-05-30 11:29:55 +02:00
"eslint": "^9.27.0",
2022-09-21 10:28:38 -04:00
"eslint-plugin-jsonc": "^2.4.0",
"eslint-plugin-markdown": "^5.0.0",
"eslint-plugin-mongo": "^1.0.5",
2025-05-30 11:29:55 +02:00
"eslint-plugin-react": "^7.37.5",
2022-09-15 10:23:06 +02:00
"eslint-plugin-yaml": "^0.5.0",
2024-10-03 08:22:07 +02:00
"execa": "^9.3.1",
2025-05-30 11:29:55 +02:00
"globals": "^16.2.0",
"husky": "^9.0.10",
"js-yaml": "^4.0.0",
"lerna": "^8.0.0",
"lint-staged": "^15.0.1",
2022-06-22 09:41:07 +02:00
"mocha": "^10.0.0",
"mustache": "^4.0.1",
"nx": "20.2.1",
"nyc": "^15.1.0",
"prettier": "^3.0.0",
"pretty-quick": "^4.0.0",
"rimraf": "^5.0.0",
2022-09-10 18:45:57 +02:00
"standard": "^17.0.0"
2022-08-24 10:00:19 +02:00
},
"workspaces": [
"designs/*",
"packages/*",
"plugins/*",
"sites/*"
],
"version": "0.0.0",
"dependencies": {
2023-10-13 18:03:30 +02:00
"@babel/eslint-parser": "^7.22.15",
"@babel/plugin-syntax-import-assertions": "^7.22.5",
"@babel/preset-react": "^7.22.15",
"c8": "^10.1.2",
2025-04-26 15:29:25 +02:00
"glob": "^11.0.1",
"rehype-format": "^5.0.0",
"rehype-stringify": "^10.0.1",
"tlds": "^1.255.0"
2023-05-08 01:34:29 -05:00
},
2024-02-11 17:31:52 +01:00
"engines": {
"node": ">=20.0"
}
}