Skip to content

Commit

Permalink
chore: Improve build system
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchin committed Jan 30, 2017
1 parent c4d385d commit 7a28c64
Show file tree
Hide file tree
Showing 61 changed files with 573 additions and 2,634 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015", "es2016", "react"]
}
17 changes: 17 additions & 0 deletions .esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"source": "./src",
"destination": "./doc",
"plugins": [
{
"name": "esdoc-importpath-plugin",
"option": {
"replaces": [
{
"from": "^src/js/",
"to": ""
}
]
}
}
]
}
38 changes: 31 additions & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,23 +1,47 @@
rules:
class-methods-use-this:
- 1
indent:
- 2
- 2
import/extensions:
- 0
import/no-extraneous-dependencies:
- 0
import/prefer-default-export:
- 1
no-plusplus:
- 2
- allowForLoopAfterthoughts: true
no-underscore-dangle:
- 0
quotes:
- 2
- single
semi:
- 2
- always
jsx-a11y/anchor-has-content:
- 1
react/jsx-boolean-value:
- 1
jsx-a11y/href-no-hash:
- 1
jsx-a11y/no-static-element-interactions:
- 0
react/jsx-curly-spacing:
- 2
- always
react/sort-comp:
- 2
- order
- lifecycle
- /^on.+$/
- render
- everything-else
react/jsx-closing-bracket-location:
- 0
react/jsx-filename-extension:
- 0
react/no-unused-prop-types:
- 1
react/no-string-refs:
- 1
react/require-default-props:
- 0
env:
es6: true
browser: true
Expand Down
13 changes: 5 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
.DS_Store
*.log
/bower_components
/build
/coverage
/example/build
/lib
/node_modules
/out
build
coverage
doc
lib
node_modules
10 changes: 5 additions & 5 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
*.conf.js
*.config.js
*.log
**/.*
bower.json
build
coverage
doc
example
Gemfile*
gulpfile.babel.js
karma.conf.js
node_modules
src
tasks
test
35 changes: 35 additions & 0 deletions .sass-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
files:
include: './src/scss/**/*.scss'
options:
formatter: stylish
rules:
class-name-format: &class-name-format
- 2
- convention: ^(([A-Z][a-z]*)+$|(([A-Z][a-z]*)+|u|is|js)(-|--)([a-z]+([a-z]|[A-Z])*)+|(([A-Z][a-z]*)+|u|is|js)(-|--)([a-z]+([a-z]|[A-Z])*)+(--[a-z]+([a-z]|[A-Z])*)+)|[ng]-(\w)+(-(\w)*)*$
empty-line-between-blocks:
- 2
- ignore-single-line-rulesets: false
force-attribute-nesting: 0
force-element-nesting: 0
force-pseudo-nesting: 0
function-name-format: 2
hex-length:
- 2
- style: long
indentation:
- 2
- size: 2
leading-zero:
- 2
- include: true
mixin-name-format: 1
nesting-depth:
- 2
- max-depth: 2
no-ids: 2
no-important: 2
placeholder-name-format: *class-name-format
quotes:
- 2
- style: single
variable-name-format: *class-name-format
167 changes: 0 additions & 167 deletions .scss-lint.yml

This file was deleted.

3 changes: 0 additions & 3 deletions Gemfile

This file was deleted.

14 changes: 0 additions & 14 deletions Gemfile.lock

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ value |number | Object.<number> |Current value(s) (

If you want to work on this project locally, you need to grab all of its dependencies.
```
npm install && bundle install
npm install
```

After that, you should be able run
```
npm start
npm run dev
```

Contributions are welcome. :)
45 changes: 0 additions & 45 deletions bower.json

This file was deleted.

Loading

0 comments on commit 7a28c64

Please sign in to comment.