mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-23 19:19:03 +08:00
feat: add turbo for parallel builds
This commit is contained in:
parent
05271c98fe
commit
780bff84ba
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -7,6 +7,8 @@ on:
|
||||
# manual trigger for other branches
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -17,6 +17,9 @@ yarn-error.log*
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
|
||||
# Turbo cache
|
||||
.turbo
|
||||
|
||||
.rpt2_cache
|
||||
.rts2_cache
|
||||
.rts2_cache_cjs
|
||||
|
562
package-lock.json
generated
562
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
21
package.json
21
package.json
@ -1,5 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"packageManager": "npm@10.5.0",
|
||||
"workspaces": [
|
||||
"demos",
|
||||
"packages/*"
|
||||
@ -18,16 +19,17 @@
|
||||
"test:open": "cypress open --project tests",
|
||||
"test:run": "cypress run --project tests",
|
||||
"test": "npm run build:pm && npm run test:run",
|
||||
"build": "npm run build --workspace packages",
|
||||
"build:pm": "npm run build --workspace packages/pm",
|
||||
"build": "turbo run build",
|
||||
"build:pm": "turbo run build --filter=@tiptap/pm",
|
||||
"build:demos": "npm run build:demos --workspace demos",
|
||||
"build:ci": "npm run build",
|
||||
"publish": "npm run build && npm publish --workspace packages --provenance --tag latest --access public",
|
||||
"publish:pre": "npm run build && npm publish --workspace packages --provenance --tag next --access public",
|
||||
"build:ci": "turbo run build",
|
||||
"publish": "turbo run build && npm publish --workspace packages --provenance --tag latest --access public",
|
||||
"publish:pre": "turbo run build && npm publish --workspace packages --provenance --tag next --access public",
|
||||
"clean:packages": "rm -rf ./packages/*/dist && rm -rf ./packages/pm/*/dist",
|
||||
"clean:packs": "rm -rf ./packages/*/*.tgz",
|
||||
"reset": "npm run clean:packages && npm run clean:packs && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./package-lock.json && npm install",
|
||||
"prepare": "husky install"
|
||||
"prepare": "husky install",
|
||||
"turbo": "turbo"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.24.7",
|
||||
@ -42,29 +44,30 @@
|
||||
"@rollup/plugin-babel": "^6.0.4",
|
||||
"@rollup/plugin-commonjs": "^26.0.1",
|
||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@types/react": "^18.3.3",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
||||
"@typescript-eslint/parser": "^5.62.0",
|
||||
"babel-loader": "^9.1.3",
|
||||
"cypress": "^10.8.0",
|
||||
"cz-conventional-changelog": "^3.3.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-airbnb-base": "^15.0.0",
|
||||
"eslint-plugin-cypress": "^2.15.2",
|
||||
"eslint-plugin-html": "^6.2.0",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-simple-import-sort": "^7.0.0",
|
||||
"eslint-plugin-vue": "^9.26.0",
|
||||
"eslint": "^8.57.0",
|
||||
"husky": "^8.0.3",
|
||||
"lint-staged": "^13.3.0",
|
||||
"minimist": "^1.2.8",
|
||||
"rollup": "^4.18.0",
|
||||
"rollup-plugin-auto-external": "^2.0.0",
|
||||
"rollup-plugin-sourcemaps": "^0.6.3",
|
||||
"rollup-plugin-typescript2": "^0.36.0",
|
||||
"rollup": "^4.18.0",
|
||||
"ts-loader": "9.3.1",
|
||||
"tsup": "^8.1.0",
|
||||
"turbo": "2.0.6",
|
||||
"typescript": "^5.4.5",
|
||||
"webpack": "^5.91.0"
|
||||
},
|
||||
|
13
turbo.json
Normal file
13
turbo.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "https://turbo.build/schema.json",
|
||||
"tasks": {
|
||||
"build": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/**"]
|
||||
},
|
||||
"dev": {
|
||||
"persistent": true,
|
||||
"cache": false
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user