1
0
Fork 0

chore: Move from yarn to npm

This commit is contained in:
joostdecock 2024-12-10 12:51:49 +01:00
parent 7cf7d1a394
commit 3378fca793
2 changed files with 18 additions and 18 deletions

View file

@ -95,13 +95,13 @@ To get started with FreeSewing, you can spin up our development environment with
npx @freesewing/new-design
```
To work with FreeSewing's monorepo, you'll need [NodeJS v18](https://nodejs.org), [lerna](https://lerna.js.org/) and [yarn](https://yarnpkg.com/) on your system.
Once you have those, clone (or fork) this repo and run `yarn kickstart`:
To work with FreeSewing's monorepo, you'll need [NodeJS v20](https://nodejs.org) and [lerna](https://lerna.js.org/) on your system.
Once you have those, clone (or fork) this repo and run `npm run kickstart`:
```bash
git clone git@github.com:freesewing/freesewing.git
cd freesewing
yarn kickstart
npm run kickstart
```
## Links 👩‍💻

View file

@ -14,23 +14,23 @@
"new": "node --experimental-json-modules --no-warnings scripts/add-software.mjs",
"?": "node scripts/help.mjs",
"tips": "node scripts/help.mjs",
"org": "cd sites/org && yarn start",
"dev": "cd sites/dev && yarn start",
"kickstart": "npx yarn install && yarn prepare && yarn tips",
"kickstart:windows": "npx yarn install && yarn prepare && yarn tips",
"org": "cd sites/org && npm run start",
"dev": "cd sites/dev && npm run start",
"kickstart": "npm install && npm run prepare && npm run tips",
"kickstart:windows": "npm install && npm run prepare && npm run 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' 'packages/react-components/src/**/*.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",
"prerelease": "lerna version --no-git-tag-version --no-push && npm run reconfigure && npm run buildall",
"buildall": "lerna run build:all",
"build": "yarn buildall",
"build": "npm run buildall",
"wbuild": "lerna run wbuild:all",
"testall": "node scripts/testall.js",
"lint": "LINTER=1 lerna run --no-bail lint -- ",
"qa": "yarn qa:prettier && yarn qa:lint",
"qa": "npm run qa:prettier && npm run qa:lint",
"qa:prettier": "npx prettier",
"qa:lint": "npx eslint",
"release": "lerna exec --no-bail -- npm publish",
@ -45,7 +45,7 @@
"strapi:translate": "node scripts/strapi-en-to-other.mjs",
"fixdocs": "remark markdown --quiet --frail --output",
"wbuildall": "lerna run wbuildall",
"prepare": "husky && yarn buildall"
"prepare": "husky && npm run buildall"
},
"repository": {
"type": "git",
@ -88,7 +88,9 @@
"prop-types": "^15.7.2",
"react": "^18.2.0",
"rimraf": "^5.0.0",
"standard": "^17.0.0"
"standard": "^17.0.0",
"nx": "20.2.1",
"@nx/eslint": "20.2.1"
},
"workspaces": [
"designs/*",
@ -104,11 +106,9 @@
"c8": "^10.1.2",
"eslint-config-next": "^14.0.1",
"glob": "^10.3.10",
"rehype-format": "^5.0.0",
"yarn": "^1.22.19"
"rehype-format": "^5.0.0"
},
"engines": {
"node": ">=18.0"
},
"packageManager": "yarn@1.22.19"
}
"node": ">=20.0"
}
}