Skip to content

Commit

Permalink
Update Turbo tasks (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
psirenny committed Feb 8, 2024
1 parent da5e417 commit 5464ab6
Show file tree
Hide file tree
Showing 19 changed files with 124 additions and 111 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-buckets-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spear-ai/tailwind-config": patch
---

Updated Turbo tasks.
6 changes: 3 additions & 3 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ version: 2
updates:
- directory: /
labels:
- 🌋 technical debt
- 🔧 maintenance
package-ecosystem: github-actions
schedule:
interval: monthly
- directory: /
labels:
- 🌋 technical debt
- 🔧 maintenance
package-ecosystem: npm
schedule:
interval: monthly
- directory: /packages/tailwind-config
labels:
- 🌋 technical debt
- 🔧 maintenance
package-ecosystem: npm
schedule:
interval: monthly
4 changes: 2 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Checks
name: Build and check
on:
pull_request:
types:
Expand All @@ -20,7 +20,7 @@ jobs:
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
steps:
- name: Checkout Git repository
- name: Checkout repository
uses: actions/[email protected]
with:
fetch-depth: 2
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
should-deploy: ${{ steps.changesets.outputs.hasChangesets == 'false' }}
permissions: write-all
steps:
- name: Checkout repository
uses: actions/[email protected]
Expand Down Expand Up @@ -41,6 +42,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
title: "ci: release 🚀"
commit: "ci: release 🚀"
publish: yarn run publish-packages
title: Release 🚀
version: yarn run version
commit: Release 🚀
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
7 changes: 7 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { UserConfig } from "@commitlint/types";

const commitlintConfig: UserConfig = {
extends: ["@spear-ai/commitlint-config"],
};

export default commitlintConfig;
2 changes: 0 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-default-export */

import { baseEslintConfig, prettierConfig } from "@spear-ai/eslint-config";

/** @type {import("eslint").Linter.FlatConfig} */
Expand Down
1 change: 1 addition & 0 deletions npmpackagejsonlint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ module.exports = {
rules: {
"prefer-absolute-version-dependencies": "off",
"prefer-absolute-version-devDependencies": "off",
"prefer-alphabetical-scripts": "off",
},
};
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.1",
"@commitlint/cli": "18.6.0",
"@commitlint/config-conventional": "18.6.0",
"@commitlint/types": "18.6.0",
"@spear-ai/commitlint-config": "3.1.0",
"@spear-ai/eslint-config": "17.1.0",
"@spear-ai/npm-package-json-lint-config": "3.1.0",
"@spear-ai/prettier-config": "2.1.0",
Expand All @@ -27,27 +28,29 @@
"turbo": "1.12.3",
"typescript": "5.3.3"
},
"license": "",
"license": "UNLICENSED",
"packageManager": "[email protected]",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/spear-ai/ui.git"
},
"scripts": {
"version": "changeset version && yarn workspaces foreach -A run sync-version",
"build": "yarn dlx turbo build",
"check": "yarn dlx turbo root:check-yarn-cache root:lint:eslint root:lint:npm lint:eslint lint:prettier lint:npm",
"fix": "yarn dlx turbo root:fix fix",
"commitlint:check": "commitlint --from=HEAD^1",
"eslint:check": "eslint --max-warnings 0 .",
"eslint:fix": "yarn eslint:check --fix",
"github-actions:push": "act push -s GH_PAT=$GH_PAT -s GITHUB_TOKEN=$GH_PAT -s NPM_TOKEN=$NPM_TOKEN",
"github-actions:push:release-tag": "act push -e .github/test-events/push-release-tag.json -s GH_PAT=$GH_PAT -s GITHUB_TOKEN=$GH_PAT",
"publish-packages": "yarn publish-packages:npm && yarn publish-packages:github && yarn changeset tag",
"npmpkgjsonlint:check": "npmPkgJsonLint .",
"prettier:check": "prettier --check .",
"prettier:fix": "prettier --write .",
"publish-packages": "yarn run publish-packages:npm && yarn run publish-packages:github && yarn run publish-packages:custom && yarn changeset tag",
"publish-packages:custom": "yarn workspaces foreach -A run publish-package",
"publish-packages:github": "npm_config_registry=https://npm.pkg.github.com changeset publish --no-git-tag",
"publish-packages:npm": "changeset publish --no-git-tag",
"root:check-yarn-cache": "yarn install --check-cache --immutable --immutable-cache",
"root:fix": "yarn root:lint:eslint --fix",
"root:lint:eslint": "eslint --max-warnings 0 .",
"root:lint:npm": "npmPkgJsonLint .",
"root:lint:prettier": "prettier --check ."
"typescript:check": "tsc --noEmit"
},
"workspaces": [
"packages/*"
Expand Down
20 changes: 9 additions & 11 deletions packages/tailwind-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.10",
"change-case": "5.4.2",
"change-case": "^5.4.2",
"culori": "^4.0.1",
"tailwind-scrollbar": "^3.0.5",
"tailwindcss-3d": "^1.0.4",
Expand Down Expand Up @@ -51,16 +51,14 @@
"url": "https://github.com/spear-ai/ui.git"
},
"scripts": {
"build": "tsup src --clean --dts --format cjs,esm src/index.ts",
"dev": "yarn build --watch",
"fix": "yarn fix:eslint && yarn fix:prettier",
"fix:eslint": "yarn lint:eslint --fix",
"fix:prettier": "prettier --write .",
"lint": "yarn lint:eslint && yarn lint:prettier && yarn lint:npm",
"lint:eslint": "eslint --max-warnings 0 .",
"lint:npm": "npmPkgJsonLint .",
"lint:prettier": "prettier --check .",
"typecheck": "tsc --noEmit"
"build": "tsup src --clean --dts --format cjs,esm",
"dev": "yarn run build --watch",
"eslint:check": "eslint --max-warnings 0 .",
"eslint:fix": "yarn eslint:check --fix",
"npmpkgjsonlint:check": "npmPkgJsonLint .",
"prettier:check": "prettier --check .",
"prettier:fix": "prettier --write .",
"typescript:check": "tsc --noEmit"
},
"types": "./dist/index.d.ts"
}
1 change: 1 addition & 0 deletions packages/tailwind-config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"outDir": "bin",
"pretty": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"stripInternal": true,
Expand Down
2 changes: 0 additions & 2 deletions prettier.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies */

const prettierConfig = require("@spear-ai/prettier-config");

module.exports = prettierConfig;
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"outDir": "bin",
"pretty": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"stripInternal": true,
Expand Down
80 changes: 44 additions & 36 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,45 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"//#root:check": {},
"//#root:check-yarn-cache": {
"inputs": [".yarn/cache", "yarn.lock"]
},
"//#commitlint:check": {},
"//#eslint:check": {},
"//#eslint:fix": {},
"//#npmpkgjsonlint:check": {},
"//#prettier:check": {},
"//#prettier:fix": {},
"//#root:fix": {
"dependsOn": ["^build"]
},
"//#root:lint:eslint": {
"dependsOn": ["^build"],
"inputs": [
"**/*.code-workspace",
"**/*.cjs",
"**/*.js",
"**/*.json",
"**/*.json5",
"**/*.jsonc",
"**/*.mjs",
"**/*.toml",
"**/*.ts",
"**/*.yaml",
"**/*.yml",
"eslint.config.js",
"tsconfig.json"
]
},
"//#root:lint:npm": {
"dependsOn": ["^build"],
"inputs": [".npmpackagejsonlintignore", "npmpackagejsonlint.config.cjs", "package.json"]
},
"//#typescript:check": {},
"build": {
"dependsOn": ["^build"],
"dotEnv": [".env", ".env.local", ".env.production", ".env.production.local"],
"outputs": ["build/**", "dist/**"]
},
"check": {
"dependsOn": ["^build"]
"dependsOn": [
"//#commitlint:check",
"//#eslint:check",
"//#npmpkgjsonlint:check",
"//#prettier:check",
"eslint:check",
"npmpkgjsonlint:check",
"prettier:check",
"typescript:check"
]
},
"commitlint:check": {
"cache": false
},
"dev": {
"cache": false,
"persistent": true
},
"fix": {
"cache": false,
"dependsOn": ["^build"]
},
"lint:eslint": {
"eslint:check": {
"dependsOn": ["^build"],
"inputs": [
"**/*.code-workspace",
"**/*.cjs",
"**/*.code-workspace",
"**/*.graphql",
"**/*.js",
"**/*.json",
Expand All @@ -67,11 +57,19 @@
"tsconfig.json"
]
},
"lint:npm": {
"eslint:fix": {
"cache": false,
"dependsOn": ["^build"]
},
"fix": {
"cache": false,
"dependsOn": ["//#eslint:fix", "eslint:fix", "//#prettier:fix", "prettier:fix"]
},
"npmpkgjsonlint:check": {
"dependsOn": ["^build"],
"inputs": [".npmpackagejsonlintignore", "npmpackagejsonlint.config.cjs", "package.json"]
},
"lint:prettier": {
"prettier:check": {
"dependsOn": ["^build"],
"inputs": [
"**/*.cjs",
Expand All @@ -87,9 +85,19 @@
"**/*.toml",
"**/*.ts",
"**/*.tsx",
"**/*.yaml",
"**/*.yml",
".prettierignore",
"prettier.config.cjs"
"prettier.config.*"
]
},
"prettier:fix": {
"cache": false,
"dependsOn": ["^build"]
},
"typescript:check": {
"dependsOn": ["^build"],
"inputs": ["**/*.cjs", "**/*.js", "**/*.json", "**/*.mjs", "**/*.ts", "**/*.tsx", "tsconfig.json"]
}
}
}
Loading

0 comments on commit 5464ab6

Please sign in to comment.