feat: update!

This commit is contained in:
Anthony Fu
2021-02-17 15:31:32 +08:00
parent a610154140
commit bba0a5148a
12 changed files with 5995 additions and 8979 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
dist
typings
node_modules
+1 -5
View File
@@ -1,12 +1,8 @@
{
"root": true,
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
},
"extends": ["@antfu/eslint-config-ts"],
"extends": ["@antfu"],
"plugins": ["jest"],
"rules": {}
}
+1
View File
@@ -0,0 +1 @@
github: [antfu]
+26
View File
@@ -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
View File
@@ -1,24 +1,40 @@
name: Test
on: [push]
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [12.x, 14.x, 15.x]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Install
run: npm ci
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Lint
run: npm run lint
- name: Setup
run: npm i -g pnpm @antfu/ni
- name: Test
run: npm test
- name: Install
run: nci
- name: Lint
run: nr lint --if-present
- name: Test
run: nr test --if-present
+1 -1
View File
@@ -1,6 +1,6 @@
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
of this software and associated documentation files (the "Software"), to deal
+15 -1
View File
@@ -1 +1,15 @@
# ts-starter
# [name]
[![NPM version](https://img.shields.io/npm/v/[name]?color=a1b858&label=)](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)
-8926
View File
File diff suppressed because it is too large Load Diff
+22 -32
View File
@@ -1,59 +1,49 @@
{
"name": "@antfu/ts-starter",
"name": "[name]",
"version": "0.0.0",
"description": "",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"funding": "https://github.com/sponsors/antfu",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"sideEffects": false,
"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": {
"type": "git",
"url": "git+https://github.com/<placeholder>.git"
"url": "git+https://github.com/antfu/[name].git"
},
"keywords": [],
"files": [
"dist"
],
"scripts": {
"prepublishOnly": "npm run build",
"watch": "npm run build -- --watch",
"dev": "esno src/index.ts",
"build": "tsup src/index.ts --format cjs,esm --dts",
"publish:ci": "npm publish --access public",
"release": "npx bumpp --commit --push --tag && npm run publish:ci",
"release": "git-ensure -a && bumpp --commit --push --tag",
"lint": "eslint \"{src,test}/**/*.ts\"",
"lint:fix": "npm run lint -- --fix",
"test": "jest"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js}": [
"eslint --fix",
"git add"
]
},
"files": [
"dist"
],
"dependencies": {},
"devDependencies": {
"@antfu/eslint-config-ts": "^0.4.3",
"@types/jest": "^26.0.15",
"@types/node": "^14.14.6",
"eslint": "^7.12.1",
"eslint-plugin-jest": "^24.1.0",
"esno": "^0.2.4",
"husky": "^4.3.0",
"@antfu/eslint-config": "^0.4.3",
"@antfu/ni": "^0.5.4",
"@types/jest": "^26.0.20",
"@types/node": "^14.14.28",
"bumpp": "^6.0.6",
"eslint": "^7.20.0",
"eslint-plugin-jest": "^24.1.5",
"esno": "^0.4.3",
"git-ensure": "^0.0.4",
"jest": "^26.6.3",
"lint-staged": "^10.5.1",
"ts-jest": "^26.4.3",
"tsup": "^3.7.1",
"typescript": "^4.0.5"
"ts-jest": "^26.5.1",
"tsup": "^4.0.0",
"typescript": "^4.1.5"
}
}
+5900
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -1 +1,2 @@
export * from './number'
export const one = 1
export const two = 2
-2
View File
@@ -1,2 +0,0 @@
export const one = 1
export const two = 2