feat: update template
This commit is contained in:
1 parent
0f8cd95693
commit
0a21ab7a36
11 files changed
+267
-934
No files matched your search
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"root": true,
|
||||
"env": {
|
||||
"es6": true,
|
||||
"browser": true,
|
||||
"node": true,
|
||||
"jest": true
|
||||
},
|
||||
"extends": ["@antfu/eslint-config-ts"],
|
||||
"plugins": ["jest"],
|
||||
"rules": {}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
es6: true,
|
||||
browser: true,
|
||||
node: true,
|
||||
},
|
||||
extends: [
|
||||
'@antfu/eslint-config-ts',
|
||||
],
|
||||
plugins: [
|
||||
'jest',
|
||||
],
|
||||
rules: {
|
||||
},
|
||||
}
|
||||
Vendored
-6
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"dbaeumer.vscode-eslint",
|
||||
"editorconfig.editorconfig",
|
||||
]
|
||||
}
|
||||
Vendored
-2
@@ -1,2 +0,0 @@
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 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
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Generated
+193
-801
File diff suppressed because it is too large.
Load diff
+34
-29
@@ -1,15 +1,29 @@
|
||||
{
|
||||
"name": "ts-node-starter",
|
||||
"version": "0.0.1",
|
||||
"name": "@antfu/ts-starter",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
||||
"license": "MIT",
|
||||
"sideEffects": false,
|
||||
"bugs": {
|
||||
"url": "https://github.com/<placeholder>/issues"
|
||||
},
|
||||
"homepage": "https://github.com/<placeholder>#readme",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/<placeholder>.git"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "rollup -c --watch",
|
||||
"build": "npm run typings && rollup -c",
|
||||
"typings": "tsc --emitDeclarationOnly",
|
||||
"publish:ci": "npm run build && npm publish --access public",
|
||||
"release": "bump --commit --push --tag && npm run publish:ci",
|
||||
"lint": "eslint src/**/*.ts",
|
||||
"prepare": "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",
|
||||
"lint": "eslint \"{src,test}/**/*.ts\"",
|
||||
"lint:fix": "npm run lint -- --fix",
|
||||
"test": "jest"
|
||||
},
|
||||
@@ -27,28 +41,19 @@
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"keywords": [],
|
||||
"author": "Anthony Fu<anthonyfu117@hotmail.com>",
|
||||
"license": "MIT",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config-ts": "0.3.3",
|
||||
"@rollup/plugin-json": "4.1.0",
|
||||
"@rollup/plugin-typescript": "6.0.0",
|
||||
"@types/jest": "26.0.14",
|
||||
"@types/node": "13.13.5",
|
||||
"eslint": "7.11.0",
|
||||
"eslint-plugin-jest": "24.1.0",
|
||||
"husky": "4.3.0",
|
||||
"jest": "^26.0.0",
|
||||
"lint-staged": "10.4.0",
|
||||
"nodemon": "2.0.4",
|
||||
"rimraf": "3.0.2",
|
||||
"rollup": "2.29.0",
|
||||
"rollup-plugin-dts": "1.4.13",
|
||||
"rollup-plugin-uglify": "6.0.4",
|
||||
"ts-jest": "26.4.1",
|
||||
"ts-node": "9.0.0",
|
||||
"typescript": "4.0.3"
|
||||
"@antfu/eslint-config-ts": "^0.3.3",
|
||||
"@types/jest": "^26.0.14",
|
||||
"@types/node": "^14.11.8",
|
||||
"eslint": "^7.11.0",
|
||||
"eslint-plugin-jest": "^24.1.0",
|
||||
"esno": "^0.2.0",
|
||||
"husky": "^4.3.0",
|
||||
"jest": "^26.5.3",
|
||||
"lint-staged": "^10.4.0",
|
||||
"ts-jest": "^26.4.1",
|
||||
"tsup": "^3.7.0",
|
||||
"typescript": "^4.0.3"
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"extends": [
|
||||
"config:base",
|
||||
":preserveSemverRanges",
|
||||
"schedule:weekly",
|
||||
"group:allNonMajor",
|
||||
":maintainLockFilesWeekly"
|
||||
],
|
||||
"lockFileMaintenance": {
|
||||
"extends": [
|
||||
"group:allNonMajor"
|
||||
],
|
||||
"commitMessageAction": "Update"
|
||||
},
|
||||
"automerge": true
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
// rollup.config.js
|
||||
import typescript from '@rollup/plugin-typescript'
|
||||
import json from '@rollup/plugin-json'
|
||||
import dts from 'rollup-plugin-dts'
|
||||
import { uglify } from 'rollup-plugin-uglify'
|
||||
|
||||
const external = [
|
||||
]
|
||||
|
||||
export default [
|
||||
{
|
||||
input: 'src/index.ts',
|
||||
output: [
|
||||
{
|
||||
file: 'dist/index.js',
|
||||
format: 'cjs',
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
typescript(),
|
||||
json(),
|
||||
uglify(),
|
||||
],
|
||||
external,
|
||||
},
|
||||
{
|
||||
input: './typings/index.d.ts',
|
||||
output: {
|
||||
file: 'dist/index.d.ts',
|
||||
format: 'es',
|
||||
},
|
||||
plugins: [
|
||||
dts(),
|
||||
],
|
||||
},
|
||||
]
|
||||
+6
-27
@@ -1,33 +1,12 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "commonjs",
|
||||
"target": "es2017",
|
||||
"module": "esnext",
|
||||
"lib": ["esnext"],
|
||||
"moduleResolution": "node",
|
||||
"lib": [
|
||||
"esnext",
|
||||
"esnext.asynciterable",
|
||||
"dom",
|
||||
"dom.iterable"
|
||||
],
|
||||
"esModuleInterop": true,
|
||||
"strict": true,
|
||||
"declaration": true,
|
||||
"resolveJsonModule": true,
|
||||
"declarationDir": "./typings",
|
||||
"types": [
|
||||
"@types/node",
|
||||
"@types/jest"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"**/**/*.test.ts",
|
||||
"**/**/*.md",
|
||||
"test",
|
||||
"typings",
|
||||
"dist"
|
||||
]
|
||||
"strictNullChecks": true,
|
||||
"resolveJsonModule": true
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user