feat: update!
This commit is contained in:
1 parent
a610154140
commit
bba0a5148a
12 files changed
+5995
-8979
No files matched your search
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
dist
|
dist
|
||||||
typings
|
node_modules
|
||||||
@@ -1,12 +1,8 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
|
||||||
"env": {
|
"env": {
|
||||||
"es6": true,
|
|
||||||
"browser": true,
|
|
||||||
"node": true,
|
|
||||||
"jest": true
|
"jest": true
|
||||||
},
|
},
|
||||||
"extends": ["@antfu/eslint-config-ts"],
|
"extends": ["@antfu"],
|
||||||
"plugins": ["jest"],
|
"plugins": ["jest"],
|
||||||
"rules": {}
|
"rules": {}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
github: [antfu]
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
- run: npm i -g pnpm @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:
|
||||||
|
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
+26
-10
@@ -1,24 +1,40 @@
|
|||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x]
|
node-version: [12.x, 14.x, 15.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
run: npm ci
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
- name: Lint
|
- name: Setup
|
||||||
run: npm run lint
|
run: npm i -g pnpm @antfu/ni
|
||||||
|
|
||||||
- name: Test
|
- name: Install
|
||||||
run: npm test
|
run: nci
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: nr lint --if-present
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: nr test --if-present
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2020 Anthony Fu <https://github.com/antfu>
|
Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -1 +1,15 @@
|
|||||||
# ts-starter
|
# [name]
|
||||||
|
|
||||||
|
[](https://www.npmjs.com/package/[name])
|
||||||
|
|
||||||
|
## Sponsors
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
|
||||||
|
<img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
[MIT](./LICENSE) License © 2021 [Anthony Fu](https://github.com/antfu)
|
||||||
Generated
-8926
File diff suppressed because it is too large.
Load diff
+22
-32
@@ -1,59 +1,49 @@
|
|||||||
{
|
{
|
||||||
"name": "@antfu/ts-starter",
|
"name": "[name]",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist/index.mjs",
|
"module": "dist/index.mjs",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
"funding": "https://github.com/sponsors/antfu",
|
||||||
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/<placeholder>/issues"
|
"url": "https://github.com/antfu/[name]/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/<placeholder>#readme",
|
"homepage": "https://github.com/antfu/[name]#readme",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/<placeholder>.git"
|
"url": "git+https://github.com/antfu/[name].git"
|
||||||
},
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublishOnly": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
"watch": "npm run build -- --watch",
|
"watch": "npm run build -- --watch",
|
||||||
"dev": "esno src/index.ts",
|
"dev": "esno src/index.ts",
|
||||||
"build": "tsup src/index.ts --format cjs,esm --dts",
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|
||||||
"publish:ci": "npm publish --access public",
|
"release": "git-ensure -a && bumpp --commit --push --tag",
|
||||||
"release": "npx bumpp --commit --push --tag && npm run publish:ci",
|
|
||||||
"lint": "eslint \"{src,test}/**/*.ts\"",
|
"lint": "eslint \"{src,test}/**/*.ts\"",
|
||||||
"lint:fix": "npm run lint -- --fix",
|
"lint:fix": "npm run lint -- --fix",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"husky": {
|
|
||||||
"hooks": {
|
|
||||||
"pre-commit": "lint-staged"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lint-staged": {
|
|
||||||
"*.{ts,js}": [
|
|
||||||
"eslint --fix",
|
|
||||||
"git add"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"dist"
|
|
||||||
],
|
|
||||||
"dependencies": {},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config-ts": "^0.4.3",
|
"@antfu/eslint-config": "^0.4.3",
|
||||||
"@types/jest": "^26.0.15",
|
"@antfu/ni": "^0.5.4",
|
||||||
"@types/node": "^14.14.6",
|
"@types/jest": "^26.0.20",
|
||||||
"eslint": "^7.12.1",
|
"@types/node": "^14.14.28",
|
||||||
"eslint-plugin-jest": "^24.1.0",
|
"bumpp": "^6.0.6",
|
||||||
"esno": "^0.2.4",
|
"eslint": "^7.20.0",
|
||||||
"husky": "^4.3.0",
|
"eslint-plugin-jest": "^24.1.5",
|
||||||
|
"esno": "^0.4.3",
|
||||||
|
"git-ensure": "^0.0.4",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"lint-staged": "^10.5.1",
|
"ts-jest": "^26.5.1",
|
||||||
"ts-jest": "^26.4.3",
|
"tsup": "^4.0.0",
|
||||||
"tsup": "^3.7.1",
|
"typescript": "^4.1.5"
|
||||||
"typescript": "^4.0.5"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+5900
File diff suppressed because it is too large.
Load diff
+2
-1
@@ -1 +1,2 @@
|
|||||||
export * from './number'
|
export const one = 1
|
||||||
|
export const two = 2
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
export const one = 1
|
|
||||||
export const two = 2
|
|
||||||
Reference in new issue
Block a user