From ca5033b27267966cad6e6b150b9db9bae7e1eaac Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sun, 10 Apr 2022 23:30:52 +0200 Subject: [PATCH] feat: Add turbo pipelines for types and themes --- package/package.json | 3 +-- turbo.json | 17 ++++++++--------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/package/package.json b/package/package.json index 42c702d0..1498ce15 100644 --- a/package/package.json +++ b/package/package.json @@ -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 .", diff --git a/turbo.json b/turbo.json index 8e2cffe7..4139b65e 100644 --- a/turbo.json +++ b/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": []