Skip to content

Commit

Permalink
基础环境迁移、lint 完成。
Browse files Browse the repository at this point in the history
  • Loading branch information
simaQ committed Jun 8, 2017
1 parent eeb4cc3 commit 9eca2fe
Show file tree
Hide file tree
Showing 117 changed files with 19,498 additions and 5,751 deletions.
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [
"es2015-loose-rollup",
"stage-0"
],
"plugins": [
"external-helpers"
]
}
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[Makefile]
indent_style = tab
indent_size = 1

[*.md]
trim_trailing_whitespace = false
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build/
dist/
mocks/
node_modules/
28 changes: 13 additions & 15 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
{
"extends": "airbnb/legacy",
"extends": [
"egg"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"no-console": [
"no-bitwise": [
0
],
"space-before-function-paren": [
"experimentalDecorators": [
0
],
"comma-dangle": [2, "never"],
"vars-on-top": 0,
"no-param-reassign": 0,
"max-len": 0,
"new-cap": 0,
"func-names": 0,
"no-unused-expressions": 0,
"dot-notation": [2, {"allowKeywords": false}],
"quote-props": 0,
"no-nested-ternary": 0,
"no-new": 0,
"no-cond-assign": 0
"comma-dangle": [
"error",
"never"
]
}
}
11 changes: 11 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
before_script:
- Xvfb :99 &
- export DISPLAY=:99.0;
- echo $PATH
test:
image: reg.docker.alibaba-inc.com/dockerlab/macaca-electron:0.2.0
script:
- time tnpm i --no-cache
- time tnpm run ci
tags:
- swarm
68 changes: 68 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# lock
package-lock.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

build
.DS_Store

# npmignore - content above this line is automatically generated and modifications may be omitted
# see npmjs.com/npmignore for more details.
test
Loading

0 comments on commit 9eca2fe

Please sign in to comment.