Skip to content

Instantly share code, notes, and snippets.

@natorojr
Last active September 13, 2016 22:01
Show Gist options
  • Save natorojr/6294abd7b4b77ca9449b7aa96d19c232 to your computer and use it in GitHub Desktop.
Save natorojr/6294abd7b4b77ca9449b7aa96d19c232 to your computer and use it in GitHub Desktop.
Old Project Files
{
"presets": [
"es2015",
"react",
"stage-0"
],
"plugins": [
"transform-runtime"
],
"comments": false
}
{
"root": true,
"parser": "babel-eslint",
"extends": [
"semistandard",
"standard-react"
],
"env": {
"commonjs": true,
"es6": true
},
"plugins": [
"babel"
],
"rules": {
"arrow-parens": 0,
"jsx-quotes": [2, "prefer-double"],
"no-class-assign": 0,
"react/jsx-curly-spacing": [2, "never"],
"react/jsx-indent": 0,
"react/jsx-no-bind": [2, {"allowBind": true}],
"space-before-function-paren": [2, "never"]
}
}
{
"name": "XXXX",
"version": "2.0.0",
"description": "XXXX",
"private": true,
"repository": {
"type": "git",
"url": "XXXX"
},
"license": "UNLICENSED",
"main": "src/server/index.js",
"scripts": {
"start": "[ -d public/build ] || npm run build && babel-node src/server/index.js",
"build": "rm -rf public/build && webpack -p",
"webpack-dev-server": "webpack-dev-server --host 0.0.0.0 --port 8000 --content-base public --history-api-fallback --inline --hot --progress",
"lint": "eslint src test --ext .js,.jsx && sass-lint -v",
"test": "mocha --require test/bootstrap.js --recursive --compilers js:babel-core/register --watch-extensions jsx",
"test:watch": "npm test -- --watch"
},
"dependencies": {
"app": "2.0.0",
"babel-cli": "^6.10.1",
"babel-core": "^6.10.4",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-0": "^6.5.0",
"babel-runtime": "^6.9.2",
"bottlejs": "^1.3.0",
"classnames": "^2.2.5",
"clipboard": "^1.5.12",
"express": "^4.14.0",
"font-awesome": "^4.6.3",
"foundation-sites": "^6.2.3",
"immutable": "^3.8.1",
"joi": "^8.4.2",
"joi-validation-strategy": "^0.3.3",
"lodash.capitalize": "^4.1.1",
"lodash.clonedeep": "^4.3.2",
"lodash.debounce": "^4.0.6",
"lodash.get": "^4.3.0",
"lodash.isempty": "^4.2.1",
"lodash.isfunction": "^3.0.8",
"lodash.isnil": "^4.0.0",
"lodash.isplainobject": "^4.0.4",
"lodash.isstring": "^4.0.1",
"lodash.padstart": "^4.5.0",
"lodash.set": "^4.2.0",
"lodash.trimright": "^3.0.4",
"lz-string": "^1.4.4",
"moment": "^2.13.0",
"moment-timezone": "^0.5.4",
"nl2br": "0.0.3",
"node-uuid": "^1.4.7",
"open-sans-fontface": "^1.4.0",
"pluralize": "^3.0.0",
"purecss": "^0.6.0",
"rc-collapse": "^1.6.3",
"rc-tooltip": "^3.3.5",
"react": "^15.1.0",
"react-addons-pure-render-mixin": "^15.1.0",
"react-addons-shallow-compare": "^15.1.0",
"react-addons-test-utils": "^15.1.0",
"react-day-picker": "^2.2.0",
"react-dom": "^15.1.0",
"react-dragula": "^1.1.16",
"react-immutable-proptypes": "^1.7.1",
"react-modal": "^1.3.0",
"react-router": "^2.5.1",
"react-select": "^1.0.0-beta13",
"react-simple-dropdown": "^1.1.4",
"react-tabs": "^0.6.2",
"react-validation-mixin": "^5.4.0",
"reactable": "^0.13.2",
"scroll-behavior": "^0.7.0",
"server": "2.0.0",
"store": "^1.3.20",
"superagent": "^2.0.0",
"superagent-promise": "^1.1.0",
"underscore.string": "^3.3.4",
"validator": "^5.4.0",
"video.js": "^5.10.6"
},
"devDependencies": {
"autoprefixer-loader": "^3.2.0",
"babel-eslint": "^6.1.0",
"babel-loader": "^6.2.4",
"chai": "^3.5.0",
"chai-jsx": "^1.0.1",
"css-loader": "^0.23.1",
"eslint": "^2.13.1",
"eslint-config-semistandard": "^6.0.2",
"eslint-config-standard": "^5.3.1",
"eslint-config-standard-react": "^2.5.0",
"eslint-loader": "^1.3.0",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-mocha": "^3.0.0",
"eslint-plugin-promise": "^1.3.2",
"eslint-plugin-react": "^5.2.2",
"eslint-plugin-standard": "^1.3.2",
"file-loader": "^0.9.0",
"imports-loader": "^0.6.5",
"jsdom": "^9.2.1",
"jsdomify": "^2.1.0",
"json-loader": "^0.5.4",
"mocha": "^2.5.3",
"node-sass": "^3.8.0",
"proxyquire": "^1.7.9",
"react-hot-loader": "^1.3.0",
"react-shallow-testutils": "^2.0.0",
"sass-lint": "^1.8.2",
"sass-loader": "^3.2.1",
"sasslint-loader": "0.0.1",
"sinon": "^1.17.4",
"style-loader": "^0.13.1",
"url-loader": "^0.5.7",
"webpack": "^1.13.1",
"webpack-dev-server": "^1.14.1"
}
}
'use strict';
var webpack = require('webpack');
function path(path) {
return require('path').join(__dirname, path);
}
var isHot = / --hot/.test(process.env.npm_lifecycle_script);
var isProduction = (process.env.NODE_ENV === 'production');
module.exports = {
entry: {
app: path('src/app/index.js')
},
output: {
path: path('public/build'),
filename: '[name].js',
publicPath: '/build/'
},
module: {
preLoaders: [
{
test: /\.(js|jsx)$/,
loader: 'eslint',
include: path('src')
},
{
test: /\.s?css$/,
loader: 'sasslint',
include: path('src')
}
],
loaders: [
{
test: /\.(js|jsx)$/,
loader: (isHot ? 'react-hot!' : '') + 'babel',
include: [
path('src'),
path('node_modules/joi'),
path('node_modules/isemail'),
path('node_modules/topo'),
path('node_modules/hoek')
]
},
{
test: /\.s?css$/,
loaders: [
'style',
'css',
'autoprefixer?{"browsers":["> 5%","last 2 versions","ie 8"]}',
'sass?includePaths[]=./node_modules'
]
},
{
test: /\.json$/,
loader: 'json'
},
{
test: /\.(eot|woff|woff2|ttf|svg)/,
loader: 'file?name=fonts/[name]-[hash].[ext]',
exclude: /\.eot#iefix/
}
]
},
resolve: {
extensions: ['', '.js', '.jsx', '.json']
},
sasslint: {
configFile: path('.sass-lint.yml'),
failOnWarning: true,
failOnError: true
},
node: {
__filename: true,
net: 'empty',
tls: 'empty',
dns: 'empty'
},
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': isProduction ? '\'production\'' : undefined
})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment