mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 12:19:10 +00:00
[misc]: add package template
This commit is contained in:
parent
78152a601d
commit
c6c16ce6b4
5 changed files with 42 additions and 0 deletions
14
.templates/package/.lintstagedrc.yml
Normal file
14
.templates/package/.lintstagedrc.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
linters:
|
||||
lib/**/*.{js,jsx}:
|
||||
- standard --fix
|
||||
- git add
|
||||
lib/**/*.d.ts:
|
||||
- tslint --fix
|
||||
- git add
|
||||
src/**/*.{ts,tsx}:
|
||||
- tslint --fix
|
||||
- stylelint --fix
|
||||
- jest --bail --findRelatedTests
|
||||
- git add
|
||||
|
||||
|
16
.templates/package/package.json
Normal file
16
.templates/package/package.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"private": true,
|
||||
"name": "@template@",
|
||||
"version": "2.0.0",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"precommit": "lint-staged",
|
||||
"dev": "yarn build --watch"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"lint-staged": "^8.1.7",
|
||||
"tslint": "^5.17.0",
|
||||
"typescript": "^3.5.1"
|
||||
}
|
||||
}
|
0
.templates/package/src/.gitkeep
Normal file
0
.templates/package/src/.gitkeep
Normal file
9
.templates/package/tsconfig.json
Normal file
9
.templates/package/tsconfig.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./lib"
|
||||
},
|
||||
"include": [
|
||||
"./src"
|
||||
]
|
||||
}
|
3
.templates/package/tslint.json
Normal file
3
.templates/package/tslint.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"extends": "tslint-config-standard"
|
||||
}
|
Loading…
Add table
Reference in a new issue