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

Switch to pnpm #88

Closed
wants to merge 16 commits into from
30 changes: 30 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"env": {
"browser": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs,ts}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "type"]
}
}
10 changes: 0 additions & 10 deletions .eslintrc.js

This file was deleted.

17 changes: 11 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,22 @@ jobs:
with:
fetch-depth: 2

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Analyze
run: npm run analyze
run: pnpm analyze

- name: Test
run: npm run test
run: pnpm test
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/*.d.ts
**/node_modules
**/dist
10 changes: 10 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** @type {import("prettier").Config} */
const config = {
trailingComma: "es5",
tabWidth: 2,
semi: true,
singleQuote: true,
bracketSpacing: true,
};

export default config;
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ This is a collection of tools based off the [Custom Elements Manifest](https://g
- [React Wrappers](https://github.com/break-stuff/cem-tools/tree/main/packages/react-wrappers#readme) - a tool for generating react-compatible wrappers for custom elements
- [SolidJS Integration](https://github.com/break-stuff/cem-tools/tree/main/packages/solidjs-integration#readme) - a custom type generator to convert the CEM data into usable types to integrate custom elements into [SolidJS projects](https://www.solidjs.com/)
- [Vue.js Integration](https://github.com/break-stuff/cem-tools/tree/main/packages/vuejs-integration#readme) - a custom type generator to convert the CEM data into usable types to integrate custom elements into [Vue.js projects](https://vuejs.org/)
- [VS Code Integration](https://github.com/break-stuff/cem-tools/tree/main/packages/vs-code-integration#readme) - a mapper to take the information captured in the CEM and generate the appropriate HTML and CSS data files for for VS Code integration
- [VS Code Integration](https://github.com/break-stuff/cem-tools/tree/main/packages/vs-code-integration#readme) - a mapper to take the information captured in the CEM and generate the appropriate HTML and CSS data files for for VS Code integration
118 changes: 0 additions & 118 deletions demo/lit-app/custom-element-vuejs.d.ts

This file was deleted.

Loading
Loading