Skip to content

Commit e15c060

Browse files
authored
chore: repo improvements automerge (#73)
* chore: automerge renovate * ci: add workflow actions * chore: updated deps and qrcode for playground * ci: added netlify config * chore: fix lint
1 parent 1612aab commit e15c060

File tree

13 files changed

+496
-914
lines changed

13 files changed

+496
-914
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# From https://github.com/remirror/template/blob/4f8c5f5629a081217672a8cce1df085510f43913/.github/actions/pnpm/action.yml
2+
name: 'pnpm installation'
3+
description: 'Install and audit dependencies for pnpm'
4+
inputs:
5+
cache: # id of input
6+
description: 'The location of the pnpm cache'
7+
required: true
8+
default: '.pnpm-store'
9+
version: # id of input
10+
description: 'The version to use'
11+
required: false
12+
default: 6.10.0
13+
14+
runs:
15+
using: 'composite'
16+
steps:
17+
- name: install pnpm
18+
run: npm install pnpm@${{ inputs.version }} -g
19+
shell: bash
20+
21+
- name: setup pnpm config
22+
run: pnpm config set store-dir ${{ inputs.cache }}
23+
shell: bash
24+
25+
- name: install dependencies
26+
run: pnpm install --shamefully-hoist
27+
shell: bash

.github/workflows/lint-pr.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Lint PR'
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: Validate PR title
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@v5
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run linters
2+
on: [push]
3+
4+
env:
5+
PNPM_CACHE_FOLDER: .pnpm-store
6+
HUSKY: 0 # Bypass husky commit hook for CI
7+
8+
jobs:
9+
lint:
10+
name: Lint
11+
runs-on: ubuntu-20.04
12+
strategy:
13+
matrix:
14+
node-version: [16]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Setup Pnpm
19+
uses: pnpm/action-setup@v2
20+
with:
21+
version: 8
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: 'pnpm'
27+
- name: Install dependencies
28+
run: pnpm install
29+
- name: Run Lint
30+
run: pnpm run lint

docs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
"preview": "vitepress preview"
1010
},
1111
"dependencies": {
12-
"@tresjs/cientos": "^3.0.1",
13-
"@tresjs/core": "^3.2.2",
12+
"@tresjs/cientos": "^3.5.1",
13+
"@tresjs/core": "^3.5.0",
1414
"@tresjs/post-processing": "workspace:^",
15-
"gsap": "^3.11.5"
15+
"gsap": "^3.12.2"
1616
},
1717
"devDependencies": {
18-
"unocss": "^0.52.3",
19-
"unplugin-vue-components": "^0.24.1",
18+
"unocss": "^0.57.2",
19+
"unplugin-vue-components": "^0.25.2",
2020
"vite-svg-loader": "^4.0.0",
21-
"vitepress": "1.0.0-beta.1"
21+
"vitepress": "1.0.0-rc.25"
2222
}
2323
}

netlify.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build.environment]
2+
NODE_VERSION = "18"
3+
[build]
4+
publish = "docs/.vitepress/dist"
5+
command = "pnpm run build && pnpm docs:build"

package.json

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,38 @@
11
{
22
"name": "@tresjs/post-processing",
3-
"description": "Post-processing library for TresJS",
4-
"version": "0.5.0",
53
"type": "module",
4+
"version": "0.5.0",
5+
"packageManager": "[email protected]",
6+
"description": "Post-processing library for TresJS",
67
"author": "Alvaro Saburido <[email protected]> (https://github.com/alvarosabu/)",
7-
"files": [
8-
"dist",
9-
"*.d.ts"
10-
],
118
"license": "MIT",
12-
"main": "./dist/tres-postprocessing.js",
13-
"module": "./dist/tres-postprocessing.js",
9+
"keywords": [
10+
"vue",
11+
"3d",
12+
"threejs",
13+
"three",
14+
"post-processing",
15+
"effects",
16+
"fx"
17+
],
1418
"exports": {
1519
".": {
1620
"types": "./dist/index.d.ts",
1721
"import": "./dist/tres-postprocessing.js"
1822
},
1923
"./*": "./*"
2024
},
25+
"main": "./dist/tres-postprocessing.js",
26+
"module": "./dist/tres-postprocessing.js",
27+
"files": [
28+
"dist",
29+
"*.d.ts"
30+
],
2131
"publishConfig": {
2232
"access": "public"
2333
},
24-
"keywords": [
25-
"vue",
26-
"3d",
27-
"threejs",
28-
"three",
29-
"post-processing",
30-
"effects",
31-
"fx"
32-
],
3334
"scripts": {
34-
"dev": "vite",
35+
"dev": "cd playground && npm run dev",
3536
"playground": "cd playground && npm run dev",
3637
"build": "vite build",
3738
"preview": "vite preview",
@@ -47,16 +48,16 @@
4748
"vue": ">=3.3"
4849
},
4950
"dependencies": {
50-
"@tresjs/core": "^3.4.1",
51-
"@unocss/core": "^0.57.1",
51+
"@tresjs/core": "^3.5.0",
52+
"@unocss/core": "^0.57.2",
5253
"@vueuse/core": "^10.5.0",
53-
"postprocessing": "^6.33.2",
54-
"three-stdlib": "^2.28.3"
54+
"postprocessing": "^6.33.3",
55+
"three-stdlib": "^2.28.5"
5556
},
5657
"devDependencies": {
5758
"@release-it/conventional-changelog": "^7.0.2",
5859
"@tresjs/eslint-config-vue": "^0.2.1",
59-
"@types/three": "^0.157.2",
60+
"@types/three": "^0.158.1",
6061
"@vitejs/plugin-vue": "^4.4.0",
6162
"gsap": "^3.12.2",
6263
"kolorist": "^1.8.0",
@@ -67,12 +68,12 @@
6768
"rollup-plugin-visualizer": "^5.9.2",
6869
"three": "^0.158.0",
6970
"typescript": "^5.2.2",
70-
"unocss": "^0.57.1",
71+
"unocss": "^0.57.2",
7172
"vite": "^4.5.0",
7273
"vite-plugin-banner": "^0.7.1",
73-
"vite-plugin-dts": "3.6.2",
74+
"vite-plugin-dts": "3.6.3",
7475
"vite-svg-loader": "^4.0.0",
75-
"vitepress": "1.0.0-rc.24",
76+
"vitepress": "1.0.0-rc.25",
7677
"vue": "^3.3.7",
7778
"vue-tsc": "^1.8.22"
7879
}

playground/.eslintrc-auto-import.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
"watchPostEffect": true,
6060
"watchSyncEffect": true,
6161
"toValue": true,
62-
"WritableComputedRef": true
62+
"WritableComputedRef": true,
63+
"ExtractDefaultPropTypes": true,
64+
"ExtractPropTypes": true,
65+
"ExtractPublicPropTypes": true
6366
}
6467
}

playground/auto-imports.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-disable */
22
/* prettier-ignore */
33
// @ts-nocheck
4+
// noinspection JSUnusedGlobalSymbols
45
// Generated by unplugin-auto-import
56
export {}
67
declare global {
@@ -60,5 +61,5 @@ declare global {
6061
// for type re-export
6162
declare global {
6263
// @ts-ignore
63-
export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
64+
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
6465
}

playground/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44
"version": "0.0.0",
55
"private": true,
66
"scripts": {
7-
"dev": "vite",
7+
"dev": "vite --host",
88
"build": "vue-tsc && vite build",
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12-
"@tresjs/cientos": "^3.0.1",
13-
"@tresjs/core": "3.2.0",
14-
"@tresjs/leches": "^0.9.1",
15-
"vue-router": "^4.2.2"
12+
"@tresjs/cientos": "^3.5.1",
13+
"@tresjs/core": "3.5.0",
14+
"@tresjs/leches": "^0.13.0",
15+
"vue-router": "^4.2.5"
1616
},
1717
"devDependencies": {
18-
"@types/three": "^0.152.1",
19-
"unplugin-auto-import": "^0.16.4",
20-
"unplugin-vue-components": "^0.25.1"
18+
"@types/three": "^0.158.1",
19+
"unplugin-auto-import": "^0.16.7",
20+
"unplugin-vue-components": "^0.25.2",
21+
"vite-plugin-qrcode": "^0.2.2"
2122
}
2223
}

playground/vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Components from 'unplugin-vue-components/vite'
55
import { resolve } from 'pathe'
66
import UnoCSS from 'unocss/vite'
77
import { templateCompilerOptions } from '@tresjs/core'
8+
import { qrcode } from 'vite-plugin-qrcode'
89

910
// https://vitejs.dev/config/
1011
export default defineConfig({
@@ -28,6 +29,7 @@ export default defineConfig({
2829
UnoCSS({
2930
/* options */
3031
}),
32+
qrcode(),
3133
],
3234
resolve: {
3335
alias: {

0 commit comments

Comments
 (0)