-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
NathanTrost
authored
Jul 25, 2016
1 parent
74f97d5
commit b97b81d
Showing
12 changed files
with
344 additions
and
1 deletion.
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,10 @@ | ||
{ | ||
"presets": ["es2015", "react", "stage-1"], | ||
"env": { | ||
"development": { | ||
"presets": [ | ||
"react-hmre" | ||
] | ||
} | ||
} | ||
} |
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,13 @@ | ||
# 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 |
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,75 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings" | ||
], | ||
"plugins": [ | ||
"react" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"env": { | ||
"es6": true, | ||
"browser": true, | ||
"node": true, | ||
"jquery": true, | ||
"mocha": true | ||
}, | ||
"rules": { | ||
"quotes": 0, | ||
"no-console": 0, | ||
"no-debugger": 1, | ||
"no-var": 2, | ||
"semi": [1, "always"], | ||
"no-trailing-spaces": 0, | ||
"eol-last": 0, | ||
"no-unused-vars": 0, | ||
"no-underscore-dangle": 0, | ||
"no-alert": 1, | ||
"no-lone-blocks": 0, | ||
"jsx-quotes": 1, | ||
"import/default": 0, | ||
"react/display-name": [ 1, {"ignoreTranspilerName": false }], | ||
"react/forbid-prop-types": [1, {"forbid": ["any"]}], | ||
"react/jsx-boolean-value": 0, | ||
"react/jsx-closing-bracket-location": 0, | ||
"react/jsx-curly-spacing": 1, | ||
"react/jsx-indent-props": 0, | ||
"react/jsx-key": 1, | ||
"react/jsx-max-props-per-line": 0, | ||
"react/jsx-no-bind": 1, | ||
"react/jsx-no-duplicate-props": 1, | ||
"react/jsx-no-literals": 0, | ||
"react/jsx-no-undef": 1, | ||
"react/jsx-pascal-case": 1, | ||
"react/jsx-sort-prop-types": 0, | ||
"react/jsx-sort-props": 0, | ||
"react/jsx-uses-react": 1, | ||
"react/jsx-uses-vars": 1, | ||
"react/no-danger": 1, | ||
"react/no-did-mount-set-state": 1, | ||
"react/no-did-update-set-state": 1, | ||
"react/no-direct-mutation-state": 1, | ||
"react/no-multi-comp": 1, | ||
"react/no-set-state": 0, | ||
"react/no-unknown-property": 1, | ||
"react/prefer-es6-class": 1, | ||
"react/prop-types": 1, | ||
"react/react-in-jsx-scope": 1, | ||
"react/require-extension": 1, | ||
"react/self-closing-comp": 1, | ||
"react/sort-comp": 1, | ||
"react/wrap-multilines": 1 | ||
}, | ||
"globals": { | ||
"jQuery": true, | ||
"$": true | ||
} | ||
} |
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,39 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
|
||
#dist folder | ||
dist | ||
|
||
#Webstorm metadata | ||
.idea | ||
|
||
#VSCode metadata | ||
.vscode | ||
|
||
# Mac files | ||
.DS_Store |
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,5 @@ | ||
.gitignore | ||
|
||
node_modules/ | ||
build/ | ||
dist/ |
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 @@ | ||
save-exact=true |
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,5 @@ | ||
## HEAD | ||
|
||
## 1.0.0 | ||
###### _Apr. 29, 2016_ | ||
- initial commit |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Cox Automotive | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 +1 @@ | ||
"# griddle-example" | ||
"# griddle-example" |
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,86 @@ | ||
{ | ||
"name": "fractal-chart", | ||
"version": "1.0.0", | ||
"description": "React Chart Kit for Cox Automotive", | ||
"scripts": { | ||
"start-message": "babel-node tools/startMessage.js", | ||
"prestart": "npm-run-all --parallel start-message remove-dist", | ||
"start": "npm-run-all --parallel open:src lint:watch", | ||
"open:src": "babel-node tools/srcServer.js", | ||
"open:dist": "babel-node tools/distServer.js", | ||
"lint": "node_modules/.bin/esw webpack.config.* src tools", | ||
"lint:watch": "npm run lint -- --watch", | ||
"clean-dist": "npm run remove-dist && mkdir dist", | ||
"remove-dist": "node_modules/.bin/rimraf ./dist", | ||
"build:html": "babel-node tools/buildHtml.js", | ||
"prebuild": "npm run clean-dist && npm run build:html", | ||
"build": "babel-node tools/build.js && npm run open:dist" | ||
}, | ||
"author": "Cox Automotive", | ||
"license": "MIT", | ||
"dependencies": { | ||
"axios": "^0.9.0", | ||
"griddle-react": "0.5.1", | ||
"isomorphic-fetch": "^2.1.1", | ||
"object-assign": "4.0.1", | ||
"react": "15.0.1", | ||
"react-bootstrap": "0.29.3", | ||
"react-dom": "15.0.1", | ||
"react-redux": "4.4.5", | ||
"react-router": "2.3.0", | ||
"redux": "3.5.1", | ||
"redux-logger": "^2.4.0", | ||
"redux-thunk": "2.0.1" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "6.7.7", | ||
"babel-core": "6.7.7", | ||
"babel-eslint": "6.0.2", | ||
"babel-loader": "6.2.4", | ||
"babel-plugin-react-display-name": "2.0.0", | ||
"babel-preset-es2015": "6.6.0", | ||
"babel-preset-react": "6.5.0", | ||
"babel-preset-react-hmre": "1.1.1", | ||
"babel-preset-stage-1": "6.5.0", | ||
"browser-sync": "2.11.2", | ||
"chai": "3.5.0", | ||
"cheerio": "0.20.0", | ||
"colors": "1.1.2", | ||
"connect-history-api-fallback": "1.2.0", | ||
"cross-env": "1.0.7", | ||
"enzyme": "2.2.0", | ||
"eslint": "2.7.0", | ||
"eslint-loader": "1.3.0", | ||
"eslint-plugin-import": "1.4.0", | ||
"eslint-plugin-react": "4.3.0", | ||
"eslint-watch": "2.1.10", | ||
"eventsource-polyfill": "0.9.6", | ||
"extract-text-webpack-plugin": "1.0.1", | ||
"file-loader": "0.8.5", | ||
"glob": "7.0.3", | ||
"mocha": "2.4.5", | ||
"npm-run-all": "1.7.0", | ||
"postcss": "5.0.19", | ||
"postcss-cssnext": "2.5.2", | ||
"postcss-import": "8.1.0", | ||
"postcss-loader": "0.8.2", | ||
"postcss-url": "5.1.1", | ||
"react-addons-test-utils": "15.0.1", | ||
"redux-immutable-state-invariant": "1.2.2", | ||
"rimraf": "2.5.2", | ||
"sinon": "1.17.3", | ||
"sinon-chai": "2.8.0", | ||
"transfer-webpack-plugin": "0.1.4", | ||
"url-loader": "0.5.7", | ||
"webpack": "1.12.15", | ||
"webpack-dev-middleware": "1.6.1", | ||
"webpack-hot-middleware": "2.10.0" | ||
}, | ||
"keywords:": [ | ||
"fractal-chart" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/coxautoinc/fractal-chart" | ||
} | ||
} |
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,36 @@ | ||
// For info about this file refer to webpack and webpack-hot-middleware documentation | ||
import webpack from 'webpack'; | ||
import path from 'path'; | ||
|
||
export default { | ||
debug: true, | ||
devtool: 'cheap-module-eval-source-map', // More info: https://webpack.github.io/docs/build-performance.html#sourcemaps and https://webpack.github.io/docs/configuration.html#devtool | ||
noInfo: true, // Set to false to see a list of every file being bundled. | ||
entry: [ | ||
'eventsource-polyfill', // Necessary for hot reloading with IE | ||
'webpack-hot-middleware/client?reload=true', // Note that it reloads the page if hot module reloading fails. | ||
'./src/app/index' | ||
], | ||
target: 'web', | ||
output: { // Note: Only prod environment actually outputs files. | ||
path: __dirname + '/dist', | ||
publicPath: '', | ||
filename: 'bundle.js' | ||
}, | ||
plugins: [ | ||
new webpack.HotModuleReplacementPlugin(), | ||
new webpack.NoErrorsPlugin() | ||
], | ||
module: { | ||
loaders: [ | ||
{test: /(\.js|\.jsx)$/, include: path.join(__dirname, 'src'), loaders: ['babel']}, | ||
{test: /\.ico(\?v=\d+\.\d+\.\d+)?$/, loader: "url?mimetype=image/x-icon"} | ||
] | ||
}, | ||
resolve: { | ||
alias: { | ||
'react': path.join(__dirname, 'node_modules', 'react') | ||
}, | ||
extensions: ['', '.js', '.jsx'] | ||
} | ||
}; |
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,52 @@ | ||
// For info about this file refer to webpack and webpack-hot-middleware documentation | ||
import webpack from 'webpack'; | ||
import path from 'path'; | ||
import ExtractTextPlugin from 'extract-text-webpack-plugin'; | ||
import TransferWebpackPlugin from 'transfer-webpack-plugin'; | ||
|
||
const GLOBALS = { | ||
'process.env.NODE_ENV': JSON.stringify('production'), | ||
__DEV__: false | ||
}; | ||
|
||
// NOTE: The resolve section at the bottom is necessary | ||
// to keep material-ui happy by assuring all references | ||
// to React point to the same spot. | ||
export default { | ||
debug: true, | ||
devtool: 'source-map', // More info: https://webpack.github.io/docs/build-performance.html#sourcemaps and https://webpack.github.io/docs/configuration.html#devtool | ||
noInfo: true, // Set to false to see a list of every file being bundled. | ||
entry: './src/app/index', | ||
target: 'web', | ||
output: { // Note: Only prod environment actually outputs files. | ||
path: __dirname + '/dist', | ||
publicPath: '', | ||
filename: 'bundle.js' | ||
}, | ||
plugins: [ | ||
new webpack.optimize.OccurenceOrderPlugin(), | ||
new webpack.DefinePlugin(GLOBALS), // Passes variables to Webpack. https://facebook.github.io/react/downloads.html | ||
//new ExtractTextPlugin('styles.css'), | ||
new webpack.optimize.DedupePlugin(), | ||
new webpack.optimize.UglifyJsPlugin({ | ||
compressor: {screw_ie8: true, keep_fnames: false, warnings: false}, | ||
mangle: {screw_ie8: true, keep_fnames: false} | ||
}), | ||
// Transfer Files | ||
new TransferWebpackPlugin([ | ||
{from: 'www'} | ||
], path.resolve(__dirname,"src")) | ||
], | ||
module: { | ||
loaders: [ | ||
{test: /(\.js|\.jsx)$/, include: path.join(__dirname, 'src'), loaders: ['babel']}, | ||
{test: /\.ico(\?v=\d+\.\d+\.\d+)?$/, loader: "url?mimetype=image/x-icon"} | ||
] | ||
}, | ||
resolve: { | ||
alias: { | ||
'react': path.join(__dirname, 'node_modules', 'react') | ||
}, | ||
extensions: ['', '.js', '.jsx'] | ||
} | ||
}; |