Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format prettier install #539

Merged
merged 3 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/format-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Format Check

on:
push:
branches:
- "*"

jobs:
format-check:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache pnpm modules
id: cache-modules
uses: actions/cache@v2
with:
path: |
~/.pnpm-store
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'rollup.config.js') }}
restore-keys: |
${{ runner.os }}-

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.1
with:
version: latest
run_install: false

- name: Install Packages
if: steps.cache-modules.outputs.cache-hit != 'true'
run: pnpm install --no-frozen-lockfile

- name: Format Check
run: pnpm format:check
38 changes: 38 additions & 0 deletions .github/workflows/typecheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Typecheck

on:
push:
branches:
- '*'

jobs:
typecheck:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache pnpm modules
id: cache-modules
uses: actions/cache@v2
with:
path: |
~/.pnpm-store
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'rollup.config.js') }}
restore-keys: |
${{ runner.os }}-

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.1
with:
version: latest
run_install: false

- name: Install Packages
if: steps.cache-modules.outputs.cache-hit != 'true'
run: pnpm install --no-frozen-lockfile

- name: Typecheck
run: pnpm typecheck
14 changes: 9 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"lint": "eslint src/*",
"release": "semantic-release",
"start": "rollup -wc",
"watch": "rollup -c --watch"
"watch": "rollup -c --watch",
"typecheck": "tsc --noEmit",
"format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
"format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache"
},
"dependencies": {
"@material/mwc-ripple": "^0.19.1",
Expand All @@ -38,22 +41,23 @@
"memoize-one": "^6.0.0",
"sortablejs": "^1.15.0",
"superstruct": "^1.0.3",
"tsc": "^2.0.4",
"tslib": "^2.4.0"
},
"devDependencies": {
"prettier": "2.8.8",
"@babel/core": "^7.17.9",
"@babel/eslint-parser": "^7.17.0",
"@babel/eslint-plugin": "^7.17.7",
"@google/semantic-release-replace-plugin": "^1.1.0",
"@open-wc/eslint-config": "^7.0.0",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.2.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^8.3.2",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0",
"conventional-changelog-conventionalcommits": "^4.6.3",
Expand All @@ -63,8 +67,8 @@
"rollup": "^2.70.2",
"rollup-plugin-minify-html-literals": "^1.2.6",
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-terser": "^7.0.2",
"semantic-release": "^19.0.2",
"semantic-release": "^20.1.0",
"semantic-release-replace-plugin": "^1.2.7",
"typescript": "^4.9.5"
}
}
Loading
Loading