feat: 初始化项目

This commit is contained in:
zhangxiangliang 2020-07-21 16:53:37 +08:00
commit 34adf51126
7 changed files with 3825 additions and 0 deletions

12
.editorconfig Normal file
View File

@ -0,0 +1,12 @@
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false

14
.eslintrc Normal file
View File

@ -0,0 +1,14 @@
{
"extends": ["taro"],
"rules": {
"semi": ["error", "always"]
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"useJSXTextNode": true,
"project": "./tsconfig.json"
}
}

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
dist/
.DS_Store
node_modules/
coverage/

7
jestconfig.json Normal file
View File

@ -0,0 +1,7 @@
{
"transform": {
"^.+\\.(t|j)sx?$": "ts-jest"
},
"testRegex": "(/test/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"]
}

23
package.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "free-api",
"version": "1.0.0",
"main": "index.js",
"repository": "https://github.com/jiucaixiaozhu/free-api",
"author": "zhangxiangliang",
"license": "MIT",
"scripts": {
"build": "tsc",
"watch": "tsc --watch",
"test": "jest --config jestconfig.json"
},
"devDependencies": {
"@types/jest": "^26.0.5",
"@typescript-eslint/parser": "^3.7.0",
"jest": "^26.1.0",
"ts-jest": "^26.1.3",
"typescript": "^3.9.7"
},
"dependencies": {
"axios": "^0.19.2"
}
}

14
tsconfig.json Normal file
View File

@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "es2017",
"outDir": "dist",
"rootDir": "src",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules/**", "dist/**"]
}

3751
yarn.lock Normal file

File diff suppressed because it is too large Load Diff