Skip to content

Commit

Permalink
update file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Hendrik Helms committed Nov 13, 2022
1 parent e6bee3b commit 6a4c2be
Show file tree
Hide file tree
Showing 11 changed files with 2,256 additions and 5,110 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Node.js CI

on: [pull_request]
on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 16.x]
node-version: [19.x, 18.x, 16.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -22,7 +22,7 @@ jobs:
run: npm run lint
- name: run type checks
run: npm run type-check
- name: run tests
run: npm run test:unit
- name: test build process
run: npm run build
- name: run tests
run: npm run test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ coverage
*.njsproj
*.sln
*.sw?

test-results/
File renamed without changes.
7,258 changes: 2,194 additions & 5,064 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"files": [
"dist"
],
"name": "vue3-chessboard",
"version": "0.0.8",
"keywords": [
"vue",
"chessboard",
Expand All @@ -13,7 +11,9 @@
"chess.js",
"typescript"
],
"version": "0.0.8",
"files": [
"dist"
],
"license": "GPL-3.0",
"type": "module",
"exports": {
Expand All @@ -23,20 +23,19 @@
},
"./style.css": "./dist/style.css"
},
"types": "./dist/index.d.ts",
"types": "./dist/src/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/qwerty084/vue3-chessboard.git"
},
"scripts": {
"dev": "vite",
"build": "vite build && vue-tsc --emitDeclarationOnly",
"preview": "vite preview --port 4173",
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly --project tsconfig.app.json",
"preview": "vite preview",
"test:unit": "vitest --environment jsdom --root src/",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"test": "vitest",
"coverage": "vitest run --coverage"
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
"dependencies": {
"chess.js": "^0.13.4",
Expand All @@ -45,19 +44,20 @@
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.1.4",
"@types/chess.js": "^0.13.3",
"@types/node": "^18.8.0",
"@types/chess.js": "^0.13.4",
"@types/jsdom": "^20.0.0",
"@types/node": "^16.11.68",
"@vitejs/plugin-vue": "^3.1.2",
"@vitest/coverage-c8": "^0.24.3",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.0",
"@vue/test-utils": "^2.1.0",
"@vue/tsconfig": "^0.1.3",
"eslint": "^8.25.0",
"eslint-plugin-vue": "^9.6.0",
"happy-dom": "^7.6.0",
"eslint": "^8.22.0",
"eslint-plugin-vue": "^9.3.0",
"jsdom": "^20.0.1",
"npm-run-all": "^4.1.5",
"typescript": "^4.8.4",
"prettier": "^2.7.1",
"typescript": "~4.7.4",
"vite": "^3.1.8",
"vitest": "^0.24.3",
"vue-tsc": "^1.0.8"
Expand Down
15 changes: 15 additions & 0 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "@vue/tsconfig/tsconfig.web.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"composite": true,
"baseUrl": ".",
"outDir": "./dist",
"declaration": true,
"declarationDir": "./dist",
"paths": {
"@/*": ["./src/*"]
}
}
}
1 change: 1 addition & 0 deletions tsconfig.app.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"4.7.4"}
7 changes: 6 additions & 1 deletion tsconfig.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"extends": "@vue/tsconfig/tsconfig.node.json",
"include": ["vite.config.*", "vitest.config.*", "cypress.config.*"],
"include": [
"vite.config.*",
"vitest.config.*",
"cypress.config.*",
"playwright.config.*"
],
"compilerOptions": {
"composite": true,
"types": ["node"]
Expand Down
26 changes: 7 additions & 19 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
{
"extends": "@vue/tsconfig/tsconfig.web.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"outDir": "dist",
"declaration": true,
"removeComments": true,

"noUnusedLocals": true,
"strictNullChecks": true,
"noImplicitAny": true,
"noImplicitThis": true,
"noImplicitReturns": false,

"strict": true
},
"files": [],
"references": [
{
"path": "./tsconfig.config.json"
},
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.vitest.json"
}
]
}
9 changes: 9 additions & 0 deletions tsconfig.vitest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.app.json",
"exclude": [],
"compilerOptions": {
"composite": true,
"lib": [],
"types": ["node", "jsdom"]
}
}
4 changes: 0 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="vitest" />
import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
import { resolve } from 'path';
Expand Down Expand Up @@ -28,7 +27,4 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
test: {
environment: 'happy-dom',
},
});

0 comments on commit 6a4c2be

Please sign in to comment.