chore: update

This commit is contained in:
Anthony Fu committed 2021-12-18 12:30:48 +08:00
1 parent f1d73e195d
commit b6d7f4fcab
11 files changed
+587 -2207

No files matched your search

+1 -6
View File
@@ -1,8 +1,3 @@
{
"env": {
"jest": true
},
"extends": ["@antfu"],
"plugins": ["jest"],
"rules": {}
"extends": "@antfu"
}
+34
View File
@@ -0,0 +1,34 @@
name: Lint Fix
on:
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: 6.15.1
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
registry-url: https://registry.npmjs.org/
cache: "pnpm"
- run: pnpm install
- name: Lint Fix
run: pnpm run lint -- --fix
- uses: EndBug/add-and-commit@v7
with:
message: 'chore: fix lint'
-12
View File
@@ -11,23 +11,11 @@ jobs:
steps:
- uses: actions/checkout@v2
# - name: Install pnpm
# uses: pnpm/action-setup@v2.0.1
# with:
# version: 6.15.1
- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
cache: "pnpm"
# - run: pnpm i -g @antfu/ni
# - run: nci
# - run: nr test --if-present
# - run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npx conventional-github-releaser -p angular
env:
+3 -3
View File
@@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [14.x, 16.x]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
@@ -39,8 +39,8 @@ jobs:
- name: Install
run: nci
# - name: Lint
# run: nr lint --if-present
- name: Install
run: nr build
- name: Test
run: nr test --if-present
-1
View File
@@ -1,2 +1 @@
ignore-workspace-root-check=true
shamefully-hoist=true
+3
View File
@@ -6,4 +6,7 @@ export default defineBuildConfig({
],
declaration: true,
clean: true,
rollup: {
emitCJS: true
}
})
-12
View File
@@ -1,12 +0,0 @@
module.exports = {
roots: [
'<rootDir>/test',
],
testMatch: [
'**/__tests__/**/*.+(ts|tsx|js)',
'**/?(*.)+(spec|test).+(ts|tsx|js)',
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
}
+11 -13
View File
@@ -31,24 +31,22 @@
"scripts": {
"build": "unbuild",
"dev": "unbuild --stub",
"lint": "eslint \"{src,test}/**/*.ts\"",
"lint": "eslint --ext .js,.ts .",
"prepublishOnly": "nr build",
"release": "bumpp --commit --push --tag && pnpm publish",
"start": "esno src/index.ts",
"test": "jest"
"test": "vitest"
},
"devDependencies": {
"@antfu/eslint-config": "^0.11.1",
"@antfu/ni": "^0.11.0",
"@types/jest": "^27.0.3",
"@types/node": "^16.11.10",
"@antfu/eslint-config": "^0.14.0",
"@antfu/ni": "^0.12.0",
"@types/node": "^17.0.0",
"bumpp": "^7.1.1",
"eslint": "^8.3.0",
"eslint-plugin-jest": "^25.3.0",
"esno": "^0.12.1",
"jest": "^27.3.1",
"ts-jest": "^27.0.7",
"typescript": "^4.5.2",
"unbuild": "^0.5.13"
"eslint": "^8.5.0",
"esno": "^0.13.0",
"typescript": "^4.5.4",
"unbuild": "^0.6.7",
"vitest": "^0.0.96",
"vite": "^2.7.3"
}
}
+533 -2159
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1,3 +1,3 @@
- packages
packages:
- playground
- examples/*
+1
View File
@@ -1,3 +1,4 @@
import { describe, it, expect } from 'vitest'
import { one } from '../src'
describe('should', () => {