feat: Add turbo pipelines for types and themes

This commit is contained in:
Braks
2022-04-10 23:30:52 +02:00
parent 31423889d2
commit ca5033b272
2 changed files with 9 additions and 11 deletions

View File

@@ -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 .",

View File

@@ -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": []