Skip to content

Commit

Permalink
chore: project init
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Nov 2, 2019
1 parent 54c8d00 commit 9501d35
Show file tree
Hide file tree
Showing 747 changed files with 17,893 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
site/vendor
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: ['./index.js', './typescript.js'],
globals: {
Prism: false
}
};
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## OS
.DS_Store
.idea
*.log

## Local
node_modules

## Built-files
.cache
dist
27 changes: 27 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## OS
.DS_Store
.idea
.editorconfig
package-lock.json
yarn.lock

# Ignored suffix
*.log
*.md
*.svg
*.png
*ignore

## Local
site/vendor
test/index/no-cond-assign/bad.js
test/index/no-irregular-whitespace/bad.js
test/index/no-labels/bad.js
test/react/jsx-fragments/bad.js
test/index/no-sequences/bad.js
test/index/no-useless-rename/bad.js
test/react/self-closing-comp/bad.js

## Built-files
.cache
dist
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: node_js
node_js:
- lts/*
branches:
only:
- master
- /^greenkeeper/.*$/
install:
- npm ci
script:
- npm test
- npm run build
deploy:
provider: pages
skip-cleanup: true
local_dir: dist
github-token: $GITHUB_TOKEN # a token generated on github allowing travis to push code on you repository
keep-history: true
on:
branch: master
# keep the npm cache around to speed up installs
cache:
directories:
- '$HOME/.npm'
Loading

0 comments on commit 9501d35

Please sign in to comment.