chore: update
This commit is contained in:
1 parent
f1d73e195d
commit
b6d7f4fcab
11 files changed
+587
-2207
No files matched your search
@@ -1,8 +1,3 @@
|
|||||||
{
|
{
|
||||||
"env": {
|
"extends": "@antfu"
|
||||||
"jest": true
|
|
||||||
},
|
|
||||||
"extends": ["@antfu"],
|
|
||||||
"plugins": ["jest"],
|
|
||||||
"rules": {}
|
|
||||||
}
|
}
|
||||||
@@ -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'
|
||||||
@@ -11,23 +11,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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 }}
|
- name: Set node version to ${{ matrix.node_version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node_version }}
|
node-version: ${{ matrix.node_version }}
|
||||||
cache: "pnpm"
|
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
|
- run: npx conventional-github-releaser -p angular
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x, 14.x]
|
node-version: [14.x, 16.x]
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
@@ -39,8 +39,8 @@ jobs:
|
|||||||
- name: Install
|
- name: Install
|
||||||
run: nci
|
run: nci
|
||||||
|
|
||||||
# - name: Lint
|
- name: Install
|
||||||
# run: nr lint --if-present
|
run: nr build
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: nr test --if-present
|
run: nr test --if-present
|
||||||
@@ -1,2 +1 @@
|
|||||||
ignore-workspace-root-check=true
|
ignore-workspace-root-check=true
|
||||||
shamefully-hoist=true
|
|
||||||
@@ -6,4 +6,7 @@ export default defineBuildConfig({
|
|||||||
],
|
],
|
||||||
declaration: true,
|
declaration: true,
|
||||||
clean: true,
|
clean: true,
|
||||||
|
rollup: {
|
||||||
|
emitCJS: true
|
||||||
|
}
|
||||||
})
|
})
|
||||||
@@ -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
@@ -31,24 +31,22 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "unbuild",
|
"build": "unbuild",
|
||||||
"dev": "unbuild --stub",
|
"dev": "unbuild --stub",
|
||||||
"lint": "eslint \"{src,test}/**/*.ts\"",
|
"lint": "eslint --ext .js,.ts .",
|
||||||
"prepublishOnly": "nr build",
|
"prepublishOnly": "nr build",
|
||||||
"release": "bumpp --commit --push --tag && pnpm publish",
|
"release": "bumpp --commit --push --tag && pnpm publish",
|
||||||
"start": "esno src/index.ts",
|
"start": "esno src/index.ts",
|
||||||
"test": "jest"
|
"test": "vitest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^0.11.1",
|
"@antfu/eslint-config": "^0.14.0",
|
||||||
"@antfu/ni": "^0.11.0",
|
"@antfu/ni": "^0.12.0",
|
||||||
"@types/jest": "^27.0.3",
|
"@types/node": "^17.0.0",
|
||||||
"@types/node": "^16.11.10",
|
|
||||||
"bumpp": "^7.1.1",
|
"bumpp": "^7.1.1",
|
||||||
"eslint": "^8.3.0",
|
"eslint": "^8.5.0",
|
||||||
"eslint-plugin-jest": "^25.3.0",
|
"esno": "^0.13.0",
|
||||||
"esno": "^0.12.1",
|
"typescript": "^4.5.4",
|
||||||
"jest": "^27.3.1",
|
"unbuild": "^0.6.7",
|
||||||
"ts-jest": "^27.0.7",
|
"vitest": "^0.0.96",
|
||||||
"typescript": "^4.5.2",
|
"vite": "^2.7.3"
|
||||||
"unbuild": "^0.5.13"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+533
-2159
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
- packages
|
packages:
|
||||||
- playground
|
- playground
|
||||||
- examples/*
|
- examples/*
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { describe, it, expect } from 'vitest'
|
||||||
import { one } from '../src'
|
import { one } from '../src'
|
||||||
|
|
||||||
describe('should', () => {
|
describe('should', () => {
|
||||||
|
|||||||
Reference in new issue
Block a user