feat: Add turbo pipelines for types and themes

This commit is contained in:
Braks
2022-04-11 11:30:10 +02:00
parent 31423889d2
commit ca5033b272
2 changed files with 9 additions and 11 deletions
+1 -2
View File
@@ -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
View File
@@ -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": []