Skip to content

Commit

Permalink
feat: cleanup repo
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Sep 18, 2024
1 parent 0e0983b commit 4904129
Show file tree
Hide file tree
Showing 23 changed files with 23,921 additions and 21,495 deletions.
4 changes: 4 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>taiga-family/renovate-config"]
}
46 changes: 46 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: 🤖 Auto approve validation
on: pull_request

env:
JOBS_NAME: '[ "Build" ]'

jobs:
setup:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- id: matrix
if: env.IS_TAIGA_FAMILY_BOT_PR_AUTHOR == 'true'
run: echo "value=$JOBS_NAME" >> $GITHUB_OUTPUT

wait:
needs: [setup]
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
value: ${{ fromJSON(needs.setup.outputs.matrix) }}
steps:
- uses: taiga-family/ci/actions/run/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
job: ${{ matrix.value }}

approve:
needs: [wait]
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/auto/approve/[email protected]
with:
token1: ${{ secrets.GITHUB_TOKEN }}
token2: ${{ secrets.TAIGA_FAMILY_APPROVE_BOT_PAT }}
- uses: taiga-family/ci/actions/run/[email protected]
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

concurrency:
group: auto-approve-${{ github.head_ref }}
cancel-in-progress: true
16 changes: 16 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 🤖 Auto assign
on:
pull_request:
types: [opened, reopened]

jobs:
assign-author:
name: PR author as an assignee
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: toshimaru/[email protected]
if: env.IS_OWNER_MODE == 'true'
with:
repo-token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ⚙️ CI

on:
pull_request:
push:
branches: [main]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: |
if [[ "${{ env.SUPPORT_AUTO_PUSH }}" == "true" ]]; then
npx stylelint '**/*.{less,css}' --fix
npx prettier '**/*.*' --write
npx eslint . --fix
else
npx stylelint '**/*.{less,css}'
npx prettier '**/*.*' --check
npx eslint .
fi
- uses: taiga-family/ci/actions/auto/[email protected]
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

concurrency:
group: build-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.nx
.idea
.angular
.gitignore
.prettierignore
package-lock.json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# taiga-playground
# Taiga UI playground

[Edit in StackBlitz next generation editor ⚡️](https://stackblitz.com/~/github.com/taiga-family/taiga-playground)
134 changes: 64 additions & 70 deletions angular.json
Original file line number Diff line number Diff line change
@@ -1,74 +1,68 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"cli": {
"analytics": "1e1de97b-a744-405a-8b5a-0397bb3d01ce"
},
"newProjectRoot": "projects",
"projects": {
"demo": {
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"configurations": {
"development": {
"extractLicenses": false,
"namedChunks": true,
"optimization": false,
"sourceMap": true
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"newProjectRoot": "projects",
"projects": {
"demo": {
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"configurations": {
"development": {
"extractLicenses": false,
"namedChunks": true,
"optimization": false,
"sourceMap": true
},
"production": {
"aot": true,
"extractLicenses": true,
"namedChunks": false,
"optimization": true,
"outputHashing": "all",
"sourceMap": false
}
},
"options": {
"assets": [
{
"glob": "**/*",
"input": "node_modules/@taiga-ui/icons/src",
"output": "assets/taiga-ui/icons"
}
],
"index": "src/index.html",
"browser": "src/main.ts",
"outputPath": "dist/demo",
"polyfills": ["zone.js"],
"scripts": [],
"styles": ["src/styles.less"],
"tsConfig": "tsconfig.app.json",
"server": "src/main.server.ts",
"prerender": true,
"ssr": {
"entry": "server.ts"
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"development": {
"buildTarget": "demo:build:development"
},
"production": {
"buildTarget": "demo:build:production"
}
},
"defaultConfiguration": "development"
}
},
"production": {
"aot": true,
"extractLicenses": true,
"namedChunks": false,
"optimization": true,
"outputHashing": "all",
"sourceMap": false
}
},
"options": {
"assets": [
{
"glob": "**/*",
"input": "node_modules/@taiga-ui/icons/src",
"output": "assets/taiga-ui/icons"
}
],
"index": "src/index.html",
"browser": "src/main.ts",
"outputPath": "dist/demo",
"polyfills": ["zone.js"],
"scripts": [],
"styles": [
"@taiga-ui/core/styles/taiga-ui-theme.less",
"@taiga-ui/core/styles/taiga-ui-fonts.less"
],
"tsConfig": "tsconfig.app.json",
"server": "src/main.server.ts",
"prerender": true,
"ssr": {
"entry": "server.ts"
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"development": {
"buildTarget": "demo:build:development"
},
"production": {
"buildTarget": "demo:build:production"
}
},
"defaultConfiguration": "development"
"prefix": "app",
"projectType": "application",
"root": "",
"schematics": {},
"sourceRoot": "src"
}
},
"prefix": "app",
"projectType": "application",
"root": "",
"schematics": {},
"sourceRoot": "src"
}
},
"version": 1
},
"version": 1
}
Loading

0 comments on commit 4904129

Please sign in to comment.