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