feat: Add turbo pipelines for types and themes
This commit is contained in:
@@ -24,8 +24,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "ts-patch install -s",
|
"prepare": "ts-patch install -s",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"postbuild": "shx rm -rf tmp",
|
"types": "vue-tsc --declaration --emitDeclarationOnly && tsc -p tsconfig.build.json && shx rm -rf tmp && yarn lint:dist",
|
||||||
"types": "vue-tsc --declaration --emitDeclarationOnly && tsc -p tsconfig.build.json",
|
|
||||||
"theme": "postcss src/style.css -o dist/style.css && postcss src/theme-default.css -o dist/theme-default.css",
|
"theme": "postcss src/style.css -o dist/style.css && postcss src/theme-default.css -o dist/theme-default.css",
|
||||||
"test": "yarn --cwd .. tests",
|
"test": "yarn --cwd .. tests",
|
||||||
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path ../.gitignore .",
|
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path ../.gitignore .",
|
||||||
|
|||||||
+8
-9
@@ -1,19 +1,18 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://turborepo.org/schema.json",
|
"$schema": "https://turborepo.org/schema.json",
|
||||||
"baseBranch": "origin/main",
|
"baseBranch": "origin/master",
|
||||||
"pipeline": {
|
"pipeline": {
|
||||||
"package#build": {
|
"build": {
|
||||||
"dependsOn": ["build", "types", "theme", "lint:dist"],
|
"dependsOn": ["^build", "types", "theme"],
|
||||||
"outputs": ["dist/**", ".vuepress/dist/**"]
|
"outputs": ["dist/**", ".vuepress/dist/**"]
|
||||||
},
|
},
|
||||||
"docs#build": {
|
"types": {
|
||||||
"dependsOn": ["^build"],
|
"outputs": []
|
||||||
"outputs": [".vuepress/dist/**"]
|
|
||||||
},
|
},
|
||||||
"build": {
|
"theme": {
|
||||||
"dependsOn": ["^build"],
|
"outputs": []
|
||||||
"outputs": ["dist/**"]
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"test": {
|
"test": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
|
|||||||
Reference in New Issue
Block a user