refactor(global): remove yarn in favor for npm

re #2087
This commit is contained in:
Dominik Biedebach 2022-05-10 15:30:14 +02:00 committed by Dominik
parent 5bc77081b7
commit 80de6cdf18
9 changed files with 73 additions and 7856 deletions

View File

@ -53,7 +53,7 @@ body:
- type: checkboxes
attributes:
label: Did you update your dependencies?
description: "Use `yarn upgrade-interactive` to update your dependencies."
description: "Use `npm update` to update your dependencies."
options:
- label: Yes, Ive updated my dependencies to use the latest version of all packages.
required: true

View File

@ -38,16 +38,16 @@ jobs:
path: |
**/node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
id: install-dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
run: npm install
# - name: Fix code style linting errors
# id: lint-fix
# run: yarn lint:fix
# run: npm run lint:fix
# continue-on-error: true
#
# - name: Commit fixed linting errors
@ -58,7 +58,7 @@ jobs:
- name: Lint code
id: lint
run: yarn lint
run: npm run lint
- name: Send Slack notifications
uses: act10ns/slack@v1
@ -91,8 +91,8 @@ jobs:
id: cypress
uses: cypress-io/github-action@v2
with:
cache-key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
start: yarn start
cache-key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
start: npm run start
wait-on: 'http://localhost:3000'
project: ./tests
browser: chrome
@ -150,16 +150,16 @@ jobs:
path: |
**/node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
id: install-dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
run: npm install
- name: Try to build the packages
id: build-packages
run: yarn build:ci
run: npm run build:ci
- name: Send Slack notifications
uses: act10ns/slack@v1

View File

@ -4,7 +4,7 @@
"private": true,
"scripts": {
"start": "vite --host",
"build": "yarn ts && vite build",
"build": "npm run ts && vite build",
"ts": "tsc --project tsconfig.base.json --noEmit && tsc --project tsconfig.react.json --noEmit && tsc --project tsconfig.vue-2.json --noEmit && tsc --project tsconfig.vue-3.json --noEmit"
},
"dependencies": {

View File

@ -20,19 +20,19 @@ tiptap would be nothing without its lively community. Contributions have always
Make sure to open an issue and outline your idea first. Well get back to you quickly and let you know if there is a chance we can merge your contribution.
## Set up the development environment
Its not too hard to tinker around with the official repository. Youll need [Git](https://github.com/git-guides/install-git), [Node](https://nodejs.org/en/download/) and [Yarn](https://classic.yarnpkg.com/en/docs/install/#mac-stable) installed. Here is what you need to do then:
Its not too hard to tinker around with the official repository. Youll need [Git](https://github.com/git-guides/install-git), [Node and NPM](https://nodejs.org/en/download/) installed. Here is what you need to do then:
1. Copy the code to your local machine: `$ git clone git@github.com:ueberdosis/tiptap.git`
2. Install dependencies: `$ yarn install`
3. Start the development environment: `$ yarn start`
2. Install dependencies: `$ npm install`
3. Start the development environment: `$ npm run start`
4. Open http://localhost:3000 in your favorite browser.
5. Start playing around!
## Our code style
There is an eslint config that ensures a consistent code style. To check for errors, run `$ yarn run lint`. Thatll be checked when you send a pull request, too. Make sure its passing, before sending a pull request.
There is an eslint config that ensures a consistent code style. To check for errors, run `$ npm run lint`. Thatll be checked when you send a pull request, too. Make sure its passing, before sending a pull request.
## Testing for errors
Your pull request will automatically execute all our existing tests. Make sure that they all pass, before sending a pull request. Run all tests locally with `$ yarn run test` or run single tests (e. g. when writing new ones) with `$ yarn run test:open`.
Your pull request will automatically execute all our existing tests. Make sure that they all pass, before sending a pull request. Run all tests locally with `$ npm run test` or run single tests (e. g. when writing new ones) with `$ npm run test:open`.
## Further questions
Any further questions? Create a new issue or discussion in the repository. Well get back to you.

View File

@ -35,19 +35,9 @@ npm install @tiptap/vue-2 @tiptap/starter-kit
```
## Keep Tiptap v2 up to date
We are constantly releasing updates to Tiptap. Did you know theres an easy-to-use command to update your dependencies with Yarn?
We are constantly releasing updates to Tiptap.
```bash
yarn upgrade-interactive
```
You can add the `--latest` flag, to show all possible upgrades even if they dont follow the versioning youve set in your package.json.
```bash
yarn upgrade-interactive --latest
```
Unfortunately, for npm there is no integrated tool, but you can use the `npm-check` package:
Unfortunately, for npm there is no integrated tool to easily update your dependencies, but you can use the `npm-check` package:
```bash
npm install -g npm-check

View File

@ -2,12 +2,11 @@
"packages": [
"packages/*"
],
"npmClient": "yarn",
"version": "independent",
"useWorkspaces": false,
"command": {
"publish": {
"conventionalCommits": true
"conventionalCommits": true
}
}
}

78
package-lock.json generated
View File

@ -16052,7 +16052,7 @@
},
"packages/core": {
"name": "@tiptap/core",
"version": "2.0.0-beta.174",
"version": "2.0.0-beta.175",
"license": "MIT",
"dependencies": {
"@types/prosemirror-commands": "^1.0.4",
@ -16101,7 +16101,7 @@
},
"packages/extension-bubble-menu": {
"name": "@tiptap/extension-bubble-menu",
"version": "2.0.0-beta.55",
"version": "2.0.0-beta.56",
"license": "MIT",
"dependencies": {
"prosemirror-state": "^1.3.4",
@ -16130,7 +16130,7 @@
},
"packages/extension-character-count": {
"name": "@tiptap/extension-character-count",
"version": "2.0.0-beta.25",
"version": "2.0.0-beta.26",
"license": "MIT",
"dependencies": {
"prosemirror-model": "^1.16.1",
@ -16265,7 +16265,7 @@
},
"packages/extension-floating-menu": {
"name": "@tiptap/extension-floating-menu",
"version": "2.0.0-beta.50",
"version": "2.0.0-beta.51",
"license": "MIT",
"dependencies": {
"prosemirror-state": "^1.3.4",
@ -16418,7 +16418,7 @@
},
"packages/extension-link": {
"name": "@tiptap/extension-link",
"version": "2.0.0-beta.36",
"version": "2.0.0-beta.37",
"license": "MIT",
"dependencies": {
"linkifyjs": "^3.0.5",
@ -16447,10 +16447,10 @@
},
"packages/extension-mention": {
"name": "@tiptap/extension-mention",
"version": "2.0.0-beta.95",
"version": "2.0.0-beta.96",
"license": "MIT",
"dependencies": {
"@tiptap/suggestion": "^2.0.0-beta.90",
"@tiptap/suggestion": "^2.0.0-beta.91",
"prosemirror-model": "^1.16.1",
"prosemirror-state": "^1.3.4"
},
@ -16544,6 +16544,10 @@
"version": "2.0.0-beta.48",
"license": "MIT",
"dependencies": {
"@types/prosemirror-model": "^1.16.0",
"@types/prosemirror-state": "^1.2.8",
"prosemirror-model": "^1.16.1",
"prosemirror-state": "^1.3.4",
"prosemirror-tables": "^1.1.1",
"prosemirror-view": "^1.23.6"
},
@ -16593,7 +16597,7 @@
},
"packages/extension-task-item": {
"name": "@tiptap/extension-task-item",
"version": "2.0.0-beta.31",
"version": "2.0.0-beta.32",
"license": "MIT",
"funding": {
"type": "github",
@ -16677,10 +16681,10 @@
},
"packages/html": {
"name": "@tiptap/html",
"version": "2.0.0-beta.173",
"version": "2.0.0-beta.174",
"license": "MIT",
"dependencies": {
"@tiptap/core": "^2.0.0-beta.174",
"@tiptap/core": "^2.0.0-beta.175",
"prosemirror-model": "^1.16.1",
"zeed-dom": "^0.9.19"
},
@ -16691,11 +16695,11 @@
},
"packages/react": {
"name": "@tiptap/react",
"version": "2.0.0-beta.108",
"version": "2.0.0-beta.109",
"license": "MIT",
"dependencies": {
"@tiptap/extension-bubble-menu": "^2.0.0-beta.55",
"@tiptap/extension-floating-menu": "^2.0.0-beta.50",
"@tiptap/extension-bubble-menu": "^2.0.0-beta.56",
"@tiptap/extension-floating-menu": "^2.0.0-beta.51",
"prosemirror-view": "^1.23.6"
},
"devDependencies": {
@ -16750,10 +16754,10 @@
},
"packages/starter-kit": {
"name": "@tiptap/starter-kit",
"version": "2.0.0-beta.183",
"version": "2.0.0-beta.184",
"license": "MIT",
"dependencies": {
"@tiptap/core": "^2.0.0-beta.174",
"@tiptap/core": "^2.0.0-beta.175",
"@tiptap/extension-blockquote": "^2.0.0-beta.26",
"@tiptap/extension-bold": "^2.0.0-beta.26",
"@tiptap/extension-bullet-list": "^2.0.0-beta.26",
@ -16780,13 +16784,18 @@
},
"packages/suggestion": {
"name": "@tiptap/suggestion",
"version": "2.0.0-beta.90",
"version": "2.0.0-beta.91",
"license": "MIT",
"dependencies": {
"prosemirror-model": "^1.16.1",
"prosemirror-state": "^1.3.4",
"prosemirror-view": "^1.23.6"
},
"devDependencies": {
"@types/prosemirror-model": "^1.16.1",
"@types/prosemirror-state": "^1.2.8",
"@types/prosemirror-view": "^1.23.1"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@ -16797,11 +16806,11 @@
},
"packages/vue-2": {
"name": "@tiptap/vue-2",
"version": "2.0.0-beta.77",
"version": "2.0.0-beta.78",
"license": "MIT",
"dependencies": {
"@tiptap/extension-bubble-menu": "^2.0.0-beta.55",
"@tiptap/extension-floating-menu": "^2.0.0-beta.50",
"@tiptap/extension-bubble-menu": "^2.0.0-beta.56",
"@tiptap/extension-floating-menu": "^2.0.0-beta.51",
"prosemirror-view": "^1.23.6"
},
"devDependencies": {
@ -16825,11 +16834,11 @@
},
"packages/vue-3": {
"name": "@tiptap/vue-3",
"version": "2.0.0-beta.90",
"version": "2.0.0-beta.91",
"license": "MIT",
"dependencies": {
"@tiptap/extension-bubble-menu": "^2.0.0-beta.55",
"@tiptap/extension-floating-menu": "^2.0.0-beta.50",
"@tiptap/extension-bubble-menu": "^2.0.0-beta.56",
"@tiptap/extension-floating-menu": "^2.0.0-beta.51",
"prosemirror-state": "^1.3.4",
"prosemirror-view": "^1.23.6"
},
@ -19817,7 +19826,7 @@
"@tiptap/extension-mention": {
"version": "file:packages/extension-mention",
"requires": {
"@tiptap/suggestion": "^2.0.0-beta.90",
"@tiptap/suggestion": "^2.0.0-beta.91",
"prosemirror-model": "^1.16.1",
"prosemirror-state": "^1.3.4"
}
@ -19853,6 +19862,10 @@
"@tiptap/extension-table": {
"version": "file:packages/extension-table",
"requires": {
"@types/prosemirror-model": "^1.16.0",
"@types/prosemirror-state": "^1.2.8",
"prosemirror-model": "^1.16.1",
"prosemirror-state": "^1.3.4",
"prosemirror-tables": "^1.1.1",
"prosemirror-view": "^1.23.6"
}
@ -19900,7 +19913,7 @@
"@tiptap/html": {
"version": "file:packages/html",
"requires": {
"@tiptap/core": "^2.0.0-beta.174",
"@tiptap/core": "^2.0.0-beta.175",
"prosemirror-model": "^1.16.1",
"zeed-dom": "^0.9.19"
}
@ -19908,8 +19921,8 @@
"@tiptap/react": {
"version": "file:packages/react",
"requires": {
"@tiptap/extension-bubble-menu": "^2.0.0-beta.55",
"@tiptap/extension-floating-menu": "^2.0.0-beta.50",
"@tiptap/extension-bubble-menu": "^2.0.0-beta.56",
"@tiptap/extension-floating-menu": "^2.0.0-beta.51",
"@types/react": "^18.0.1",
"@types/react-dom": "^18.0.0",
"prosemirror-view": "^1.23.6",
@ -19950,7 +19963,7 @@
"@tiptap/starter-kit": {
"version": "file:packages/starter-kit",
"requires": {
"@tiptap/core": "^2.0.0-beta.174",
"@tiptap/core": "^2.0.0-beta.175",
"@tiptap/extension-blockquote": "^2.0.0-beta.26",
"@tiptap/extension-bold": "^2.0.0-beta.26",
"@tiptap/extension-bullet-list": "^2.0.0-beta.26",
@ -19974,6 +19987,9 @@
"@tiptap/suggestion": {
"version": "file:packages/suggestion",
"requires": {
"@types/prosemirror-model": "^1.16.1",
"@types/prosemirror-state": "^1.2.8",
"@types/prosemirror-view": "^1.23.1",
"prosemirror-model": "^1.16.1",
"prosemirror-state": "^1.3.4",
"prosemirror-view": "^1.23.6"
@ -19982,8 +19998,8 @@
"@tiptap/vue-2": {
"version": "file:packages/vue-2",
"requires": {
"@tiptap/extension-bubble-menu": "^2.0.0-beta.55",
"@tiptap/extension-floating-menu": "^2.0.0-beta.50",
"@tiptap/extension-bubble-menu": "^2.0.0-beta.56",
"@tiptap/extension-floating-menu": "^2.0.0-beta.51",
"prosemirror-view": "^1.23.6",
"vue": "^2.6.0"
},
@ -19999,8 +20015,8 @@
"@tiptap/vue-3": {
"version": "file:packages/vue-3",
"requires": {
"@tiptap/extension-bubble-menu": "^2.0.0-beta.55",
"@tiptap/extension-floating-menu": "^2.0.0-beta.50",
"@tiptap/extension-bubble-menu": "^2.0.0-beta.56",
"@tiptap/extension-floating-menu": "^2.0.0-beta.51",
"prosemirror-state": "^1.3.4",
"prosemirror-view": "^1.23.6",
"vue": "^3.0.0"

View File

@ -9,18 +9,18 @@
"not IE 11"
],
"scripts": {
"start": "yarn --cwd ./demos start",
"start": "npm --prefix ./demos run start",
"lint": "eslint --quiet --no-error-on-unmatched-pattern ./",
"lint:fix": "eslint --fix --quiet --no-error-on-unmatched-pattern ./",
"test:open": "cypress open --project tests",
"test": "cypress run --project tests",
"build:demos": "yarn --cwd ./demos build",
"build:ci": "yarn clean:packages && for dir in packages/*; do package=${dir#'packages/'}; rollup -c --ci --scope @tiptap/$package || exit 1; done",
"build:packages": "yarn clean:packages && lerna changed | while read package; do rollup -c --scope $package || exit 1; done",
"build:allpackages": "yarn clean:packages && for dir in packages/*; do package=${dir#'packages/'}; rollup -c --scope @tiptap/$package || exit 1; done",
"release": "yarn build:packages && lerna publish",
"build:demos": "npm --prefix ./demos run build",
"build:ci": "npm run clean:packages && for dir in packages/*; do package=${dir#'packages/'}; rollup -c --ci --scope @tiptap/$package || exit 1; done",
"build:packages": "npm run clean:packages && lerna changed | while read package; do rollup -c --scope $package || exit 1; done",
"build:allpackages": "npm run clean:packages && for dir in packages/*; do package=${dir#'packages/'}; rollup -c --scope @tiptap/$package || exit 1; done",
"release": "npm run build:packages && lerna publish",
"clean:packages": "rm -rf ./packages/*/dist",
"reset": "yarn clean:packages && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./yarn.lock && yarn install"
"reset": "npm run clean:packages && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./package-lock.json && npm install"
},
"devDependencies": {
"@atomico/rollup-plugin-sizes": "^1.1.4",

7788
yarn.lock

File diff suppressed because it is too large Load Diff