settings
This commit is contained in:
parent
8ed6d318c8
commit
e036589813
6 changed files with 2977 additions and 3 deletions
55
.github/workflows/main.yml
vendored
Normal file
55
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
name: Node.js CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [16.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
name: Install pnpm
|
||||
with:
|
||||
version: 7
|
||||
run_install: |
|
||||
- recursive: true
|
||||
- args: [--global, rimraf, typescript]
|
||||
|
||||
- name: Get pnpm store directory
|
||||
shell: bash
|
||||
run: |
|
||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||
|
||||
- uses: actions/cache@v3
|
||||
name: Setup pnpm cache
|
||||
with:
|
||||
path: ${{ env.STORE_PATH }}
|
||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-store-
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
|
||||
- name: Lint
|
||||
run: pnpm lint
|
||||
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
dist/**
|
||||
dist/**
|
||||
node_modules/**
|
||||
23
eslint.config.mjs
Normal file
23
eslint.config.mjs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import jsdoc from 'eslint-plugin-jsdoc';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
export default tseslint.config(
|
||||
{
|
||||
files: ["**/*.ts"],
|
||||
plugins: {
|
||||
jsdoc,
|
||||
},
|
||||
ignores: [
|
||||
"node_modules/*",
|
||||
"dist/*",
|
||||
"**./*.d.ts"
|
||||
],
|
||||
rules: {
|
||||
"no-console": "warn",
|
||||
'jsdoc/require-description': 'warn'
|
||||
}
|
||||
},
|
||||
...tseslint.configs.strict,
|
||||
...tseslint.configs.stylistic,
|
||||
jsdoc.configs['flat/recommended-typescript']
|
||||
);
|
||||
1563
package-lock.json
generated
Normal file
1563
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
14
package.json
14
package.json
|
|
@ -3,7 +3,8 @@
|
|||
"version": "0.0.1",
|
||||
"description": "A lightweight library to build web components easily",
|
||||
"scripts": {
|
||||
"build": "tsc -b"
|
||||
"build": "tsc -b",
|
||||
"lint": "eslint"
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
@ -12,5 +13,14 @@
|
|||
],
|
||||
"keywords": [],
|
||||
"author": "kyuno",
|
||||
"license": "ISC"
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@eslint/js": "=9.14.0",
|
||||
"@typescript-eslint/eslint-plugin": "=8.13.0",
|
||||
"@typescript-eslint/parser": "=8.13.0",
|
||||
"eslint": "=9.14.0",
|
||||
"eslint-plugin-jsdoc": "^50.4.3",
|
||||
"globals": "=15.12.0",
|
||||
"typescript-eslint": "=8.13.0"
|
||||
}
|
||||
}
|
||||
1322
pnpm-lock.yaml
Normal file
1322
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue