Skip to content

Commit

Permalink
Removed jest, jshint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
badsyntax committed May 14, 2015
1 parent 8f92f6d commit fdab7a1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 32 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ A boilerplate for building React apps with ES6 and webpack.

* React 0.13
* Compilation of ES6 & JSX to ES5
* Jest testing framework
* webpack bundling with react hot loader (as well as html, css & sass loaders)
* webpack module loader with react hot loader (as well as html, css & sass loaders)
* Karma, mocha, chai & sinon for testing
* Basic flux architecture with app actions, stores and example web API usage
* React router ([feature/react-router](https://github.com/badsyntax/react-seed/tree/feature/react-router))
* Material UI ([feature/material-ui](https://github.com/badsyntax/react-seed/tree/feature/material-ui))
Expand Down
28 changes: 4 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"build": "NODE_ENV=production npm run webpack",
"clean": "rimraf $npm_package_config_buildDir && mkdir $npm_package_config_buildDir",
"env": "env",
"lint": "eslint --ext .js --ext .jsx ./app && echo No linting errors.",
"lint": "eslint --ext .js --ext .jsx ./app ./webpack && echo No linting errors.",
"prebuild": "npm run clean",
"prestart": "npm install",
"pretest": "npm install",
"pretest-travis": "npm install",
"pretest": "npm install && npm run lint",
"pretest-travis": "npm install && npm run lint",
"start": "NODE_ENV=development node dev-server ./webpack/config",
"test": "NODE_ENV=test karma start",
"test-travis": "NODE_ENV=test karma start --single-run",
Expand All @@ -32,7 +32,6 @@
"devDependencies": {
"autoprefixer-core": "^5.1.11",
"babel-core": "^5.3.3",
"babel-jest": "^5.2.0",
"babel-loader": "^5.0.0",
"babel-runtime": "^5.3.3",
"chai": "^2.3.0",
Expand All @@ -43,7 +42,6 @@
"file-loader": "^0.8.1",
"glob": "^5.0.6",
"html-loader": "^0.3.0",
"jest-cli": "^0.4.3",
"json-loader": "^0.5.1",
"karma": "^0.12.31",
"karma-chrome-launcher": "^0.1.12",
Expand Down Expand Up @@ -73,23 +71,6 @@
"engines": {
"node": ">=0.10.0"
},
"jest": {
"scriptPreprocessor": "./jest-preprocessor.js",
"testPathDirs": [
"./app"
],
"testFileExtensions": [
"js"
],
"moduleFileExtensions": [
"js",
"json",
"jsx"
],
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/react"
]
},
"eslintConfig": {
"env": {
"browser": true,
Expand All @@ -101,10 +82,9 @@
"jsx": true
},
"globals": {
"jest": true,
"describe": true,
"it": true,
"expect": true
"sinon": true
},
"plugins": [
"react"
Expand Down
1 change: 0 additions & 1 deletion webpack/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
var path = require('path');
var util = require('util');
var webpack = require('webpack');
var autoprefixer = require('autoprefixer-core');
var pkg = require('../package.json');

Expand Down
8 changes: 4 additions & 4 deletions webpack/config.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var config = require('./config');

delete config['context'];
delete config['entry'];
delete config['output'];
delete config['devServer'];
delete config.context;
delete config.entry;
delete config.output;
delete config.devServer;

module.exports = config;
3 changes: 2 additions & 1 deletion webpack/loaders.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var path = require('path');
var pkg = require('../package.json');
var ExtractTextPlugin = require('extract-text-webpack-plugin');

var DEBUG = process.env.NODE_ENV === 'development';
var TEST = process.env.NODE_ENV === 'test';
Expand Down Expand Up @@ -32,7 +33,7 @@ if (DEBUG || TEST) {
jsxLoader.push('react-hot');
}
jsxLoader.push('babel-loader?optional=runtime');
sassParams.push('sourceMap', 'sourceMapContents=true')
sassParams.push('sourceMap', 'sourceMapContents=true');
sassLoader = [
'style-loader',
'css-loader?sourceMap',
Expand Down

0 comments on commit fdab7a1

Please sign in to comment.