Skip to content
Permalink
Browse files

chore: Improve build system

  • Loading branch information...
davidchin committed Jan 15, 2017
1 parent c4d385d commit 7a28c6462e874190a8035e7d4e35e052478c98b1
Showing with 573 additions and 2,634 deletions.
  1. +3 −0 .babelrc
  2. +17 −0 .esdoc.json
  3. +31 −7 .eslintrc
  4. +5 −8 .gitignore
  5. +5 −5 .npmignore
  6. +35 −0 .sass-lint.yml
  7. +0 −167 .scss-lint.yml
  8. +0 −3 Gemfile
  9. +0 −14 Gemfile.lock
  10. +2 −2 README.md
  11. +0 −45 bower.json
  12. +0 −82 dist/react-input-range.css
  13. +0 −1,213 dist/react-input-range.js
  14. +0 −1 dist/react-input-range.min.css
  15. +0 −1 dist/react-input-range.min.js
  16. +2 −3 example/index.html
  17. +33 −27 example/js/App.js
  18. +0 −7 example/js/example.js
  19. +10 −0 example/js/index.js
  20. +0 −2 example/scss/{example.scss → index.scss}
  21. +0 −12 gulpfile.babel.js
  22. +31 −50 karma.conf.js
  23. +48 −56 package.json
  24. +9 −0 postcss.config.js
  25. +0 −11 scss/InputRange.scss
  26. +0 −47 src/InputRange/Label.js
  27. +0 −21 src/InputRange/index.js
  28. +109 −95 src/{ → js}/InputRange/InputRange.js
  29. +32 −0 src/js/InputRange/Label.js
  30. +38 −44 src/{ → js}/InputRange/Slider.js
  31. +23 −25 src/{ → js}/InputRange/Track.js
  32. +4 −6 src/{ → js}/InputRange/defaultClassNames.js
  33. +3 −5 src/{ → js}/InputRange/propTypes.js
  34. +12 −37 src/{ → js}/InputRange/valueTransformer.js
  35. +3 −0 src/js/index.js
  36. +10 −24 src/{InputRange/util.js → js/utils/index.js}
  37. +11 −0 src/scss/InputRange/InputRange.scss
  38. 0 {scss → src/scss/InputRange}/_InputRangeLabel.scss
  39. 0 {scss → src/scss/InputRange}/_InputRangeLabelContainer.scss
  40. 0 {scss → src/scss/InputRange}/_InputRangeSlider.scss
  41. +1 −1 {scss → src/scss/InputRange}/_InputRangeTrack.scss
  42. +1 −1 {scss → src/scss/InputRange}/_InputRangeVariables.scss
  43. +1 −0 src/scss/index.scss
  44. +0 −15 tasks/build.js
  45. +0 −43 tasks/clean.js
  46. +0 −229 tasks/config.js
  47. +0 −7 tasks/connect.js
  48. +0 −5 tasks/default.js
  49. +0 −66 tasks/helpers/script-helper.js
  50. +0 −33 tasks/lint.js
  51. +0 −69 tasks/release.js
  52. +0 −10 tasks/run.js
  53. +0 −34 tasks/script.js
  54. +0 −43 tasks/style.js
  55. +0 −21 tasks/test.js
  56. +0 −25 tasks/watch.js
  57. +3 −3 test/{ → InputRange}/InputRange.spec.js
  58. +2 −9 test/TestUtil.js
  59. +5 −0 test/index.js
  60. +43 −0 webpack-example.config.js
  61. +41 −0 webpack.config.js
@@ -0,0 +1,3 @@
{
"presets": ["es2015", "es2016", "react"]
}
@@ -0,0 +1,17 @@
{
"source": "./src",
"destination": "./doc",
"plugins": [
{
"name": "esdoc-importpath-plugin",
"option": {
"replaces": [
{
"from": "^src/js/",
"to": ""
}
]
}
}
]
}
@@ -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
@@ -1,9 +1,6 @@
.DS_Store
*.log
/bower_components
/build
/coverage
/example/build
/lib
/node_modules
/out
build
coverage
doc
lib
node_modules
@@ -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
@@ -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

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -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. :)

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 7a28c64

Please sign in to comment.
You can’t perform that action at this time.