Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
templates
/
mui-template
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a00cc184
authored
2019-12-20 09:36:25 +0800
by
McLemore
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
build: resolve ts file
1 parent
ddfa7479
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
2 deletions
boilerplate/README.md
boilerplate/eslintrc
boilerplate/gulpfile.js
boilerplate/tsconfig.json
boilerplate/README.md
View file @
a00cc18
### 组件简介
### 使用方法
### 开始开发
1.
本地执行
`npm run dev`
...
...
boilerplate/eslintrc
View file @
a00cc18
...
...
@@ -2,6 +2,25 @@
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["airbnb-base", "plugin:@typescript-eslint/recommended"],
"rules": {
"no-restricted-globals": "off",
"no-restricted-properties": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"ts": "never"
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts"]
}
}
},
"globals": {
"window": true,
"document": true,
...
...
boilerplate/gulpfile.js
View file @
a00cc18
...
...
@@ -6,7 +6,7 @@ const ts = require('gulp-typescript')
const
dist
=
'miniprogram_dist'
const
demoDir
=
'demo'
const
lessFiles
=
[
'./src/index.less'
]
const
tsFiles
=
[
'./src/
index
.ts'
]
const
tsFiles
=
[
'./src/
*
.ts'
]
const
tsProject
=
ts
.
createProject
(
'tsconfig.json'
)
...
...
boilerplate/tsconfig.json
View file @
a00cc18
...
...
@@ -4,6 +4,7 @@
"./node_modules/miniprogram-api-typings"
],
"lib"
:
[
"ES6"
,
"ES7"
],
"target"
:
"es2017"
"target"
:
"es2017"
,
"module"
:
"CommonJS"
}
}
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment