Skip to content

Commit 98ee978

Browse files
committedMar 25, 2015
[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.
1 parent 7527953 commit 98ee978

File tree

282 files changed

+4527
-27536
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

282 files changed

+4527
-27536
lines changed
 

‎.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
11+
[*.js]
12+
charset = utf-8
13+
indent_style = space
14+
indent_size = 2
15+
16+
[{package.json,.travis.yml}]
17+
indent_style = space
18+
indent_size = 2

‎.eslintrc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true
5+
},
6+
"ecmaFeatures": {
7+
"jsx": true
8+
},
9+
"parser": "babel-eslint",
10+
"plugins": [
11+
"react"
12+
],
13+
"rules": {
14+
"comma-spacing": 1,
15+
"key-spacing": 0,
16+
"no-underscore-dangle": 0,
17+
"no-unused-vars": [1, { "vars": "all", "args": "none" }],
18+
"no-undef": 1,
19+
"no-var": 2,
20+
"quotes": [1, "single", "avoid-escape"],
21+
"react/display-name": 0,
22+
"react/jsx-uses-react": 1,
23+
"react/no-did-mount-set-state": 1,
24+
"react/no-did-update-set-state": 1,
25+
"react/no-multi-comp": 1,
26+
"react/prop-types": 1,
27+
"react/react-in-jsx-scope": 1,
28+
"react/self-closing-comp": 1,
29+
"react/wrap-multilines": 1,
30+
"strict": 0
31+
}
32+
}

0 commit comments

Comments
 (0)