Skip to content

Commit

Permalink
preped
Browse files Browse the repository at this point in the history
  • Loading branch information
juspears committed Feb 26, 2016
1 parent d1e91ae commit fac4a72
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 348 deletions.
45 changes: 1 addition & 44 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,5 @@
"es2015",
"stage-0"
],
"plugins":["transform-runtime"],
"env": {
"production": {
"plugins": [
"transform-decorators-legacy"
]
},
"test": {
"plugins": [
"transform-decorators-legacy"
]
},
// this plugin will be included only in development mode, e.g.
// if NODE_ENV (or BABEL_ENV) environment variable is not set
// or is equal to "development"
"development": {
"plugins": [
"transform-decorators-legacy",
// must be an array with options object as second item
[
"react-transform",
{
// must be an array of objects
"transforms": [
{
// can be an NPM module name or a local path
"transform": "react-transform-hmr",
// see transform docs for "imports" and "locals" dependencies
"imports": [
"react"
],
"locals": [
"module"
]
}
]
// by default we only look for `React.createClass` (and ES6 classes)
// but you can tell the plugin to look for different component factories:
// factoryMethods: ["React.createClass", "createClass"]
}
]
]
}
}
"plugins":["transform-runtime", "transform-decorators-legacy"]
}
12 changes: 1 addition & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,17 @@
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"css-loader": "^0.23.1",
"expect": "^1.13.4",
"file-loader": "^0.8.5",
"karma": "^0.13.19",
"karma-chrome-launcher": "^0.2.2",
"karma-firefox-launcher": "^0.1.7",
"karma-mocha": "^0.2.1",
"karma-sourcemap-loader": "^0.3.6",
"karma-webpack": "^1.7.0",
"less": "^2.5.3",
"less-loader": "^2.2.2",
"lodash": "^3.10.1",
"mocha": "^2.3.4",
"react": "^0.14.6",
"react-addons-css-transition-group": "^0.14.6",
"react-addons-test-utils": "^0.14.6",
"react-dom": "^0.14.6",
"react-transform-catch-errors": "^1.0.1",
"react-transform-hmr": "^1.0.1",
"style-loader": "^0.13.0",
"url-loader": "^0.5.7",
"webpack": "^1.12.9",
"webpack-dev-server": "^1.14.0"
},
Expand All @@ -53,7 +43,7 @@
"test-dist": "npm run dist && NODE_ENV=test karma start --single-run --browsers Firefox",
"hot": "NODE_ENV=development webpack-dev-server --hot --inline --config ./webpack.config.js --entry ./public/index.jsx --output-filename=app.entry.js",
"demo": "NODE_ENV=production webpack -p --output-path .build --entry ./public/index.jsx --output-filename=app.[hash].js --config ./webpack.config.js",
"dist": "NODE_ENV=production webpack --display-modules -p --output-path dist --entry ./src/index.js --output-library-target=umd --output-library-name subschema-injection.zip --output-filename=index.js --config ./webpack.config.js",
"dist": "NODE_ENV=production webpack --display-modules -p --output-path dist --entry ./src/index.js --output-library-target=umd --output-library-name subschema-injection --output-filename=index.js --config ./webpack.config.js",
"prepublish": "npm run test-dist"
}
}
56 changes: 0 additions & 56 deletions test/injector-test.js

This file was deleted.

220 changes: 0 additions & 220 deletions test/support.js

This file was deleted.

17 changes: 0 additions & 17 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,6 @@ var config = {
join('public'),
isKarma ? join('test') : join('no_such_dir')
]
},
{test: /\.(png|jpe?g|mpe?g[34]?|gif)$/, loader: 'url-loader?limit=100000'},
{test: /\.woff(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/font-woff"},
{test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream"},
{test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file"},
{test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml"},
{
test: /\.json$/,
loader: 'json'
},
{
test: /\.css$/,
loader: 'style!css!' + AUTOPREFIXER_LOADER
},
{
test: /\.less$/,
loader: 'style!css!less!' + AUTOPREFIXER_LOADER
}]

},
Expand Down

0 comments on commit fac4a72

Please sign in to comment.