forked from react-bootstrap/react-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[changed] Source to ES6 using Babel and Webpack
A lot has happened since this projects inception and newer tools are available that can facilitate a better development environment. This work gives the project structure a facelift to meet the current trends of the broader React community. - Source cleanup - Rename all js files to *.js - Use [Babel](http://babeljs.io/) for our es6 -> es5 transpilation - Update all js to es6 standards - src - test - docs - doc examples - ie8 visual test - [ESLint](http://eslint.org/) all .js files - Build - Use [Webpack](http://webpack.github.io/) - This should provide more control on how we build our pre-concatenated and minified releases. - Drop Grunt, use npm scripts and shell scripts where needed. - Promise based release process (faster) - Update README to explain how to run. - Test - Single karma config file - Not dependent on building src to disk to run, use [karma-webpack](https://github.com/webpack/karma-webpack) which will build the src in memory. - Better test watcher that re-runs tests when changing src files. Current watcher only runs if test files change. - Fail on linting errors - Pull `es5-shim` from npm - Docs - Pull `bootstrap` from npm - Pull `codemirror` from npm - Use in browser Babel transformer for doc examples - Consolidate package.json deps and scripts to repo root. Leads to less confusion on how to run the docs locally. - Update README for local setup.
- Loading branch information
Showing
282 changed files
with
4,527 additions
and
27,536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 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 | ||
insert_final_newline = true | ||
|
||
[*.js] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{package.json,.travis.yml}] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"parser": "babel-eslint", | ||
"plugins": [ | ||
"react" | ||
], | ||
"rules": { | ||
"comma-spacing": 1, | ||
"key-spacing": 0, | ||
"no-underscore-dangle": 0, | ||
"no-unused-vars": [1, { "vars": "all", "args": "none" }], | ||
"no-undef": 1, | ||
"no-var": 2, | ||
"quotes": [1, "single", "avoid-escape"], | ||
"react/display-name": 0, | ||
"react/jsx-uses-react": 1, | ||
"react/no-did-mount-set-state": 1, | ||
"react/no-did-update-set-state": 1, | ||
"react/no-multi-comp": 1, | ||
"react/prop-types": 1, | ||
"react/react-in-jsx-scope": 1, | ||
"react/self-closing-comp": 1, | ||
"react/wrap-multilines": 1, | ||
"strict": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
*~ | ||
node_modules | ||
.DS_Store | ||
npm-debug.log | ||
test_bundle.js | ||
test-built/* | ||
.idea | ||
transpiled/* | ||
docs/*.html | ||
docs/assets/bundle.js | ||
cjs/* | ||
amd/* | ||
node_modules | ||
amd/ | ||
!tools/amd/ | ||
lib/ | ||
!tools/lib/ | ||
dist/ | ||
!tools/dist/ | ||
docs-built/ | ||
ie8/bundle.js | ||
lib/* | ||
tmp-bower-repo/ | ||
tmp-docs-repo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
node_modules/ | ||
docs/ | ||
docs-built/ | ||
test-built/ | ||
test/ | ||
tools/ | ||
.gitignore | ||
.travis.yml | ||
Gruntfile.js | ||
karma.ci.js | ||
karma.dev.js | ||
test_bundle.js | ||
karma.conf.js | ||
tmp-docs-repo/ | ||
tmp-bower-repo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ sudo: false | |
language: node_js | ||
node_js: | ||
- "0.10" | ||
- "0.12" | ||
- "iojs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.