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 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. 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 `yarn kickstart`: Once you have those, clone (or fork) this repo and run `npm run kickstart`:
```bash ```bash
git clone git@github.com:freesewing/freesewing.git git clone git@github.com:freesewing/freesewing.git
cd freesewing cd freesewing
yarn kickstart npm run kickstart
``` ```
## Links 👩‍💻 ## Links 👩‍💻

View file

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