|
@@ -11,22 +11,47 @@
|
|
|
},
|
|
|
"browserify-shim": {},
|
|
|
"devDependencies": {
|
|
|
- "browserify": "~3.46.1",
|
|
|
- "browserify-shim": "~3.4.1",
|
|
|
+ "babel-cli": "^6.5.1",
|
|
|
+ "babel-core": "^6.5.2",
|
|
|
+ "babel-loader": "^6.2.3",
|
|
|
+ "babel-preset-es2015": "^6.5.0",
|
|
|
+ "babel-preset-react": "^6.5.0",
|
|
|
+ "chai": "^3.5.0",
|
|
|
+ "eslint": "^2.2.0",
|
|
|
+ "eslint-config-airbnb": "^6.0.2",
|
|
|
+ "eslint-plugin-react": "^4.1.0",
|
|
|
+ "glob": "^7.0.0",
|
|
|
"gulp": "~3.8.11",
|
|
|
"gulp-autoprefixer": "~3.0.2",
|
|
|
"gulp-rename": "^1.2.2",
|
|
|
"gulp-sass": "~2.0.4",
|
|
|
"gulp-sourcemaps": "~1.5.2",
|
|
|
"gulp-util": "~2.2.14",
|
|
|
- "jscs": "^1.12.0",
|
|
|
- "require-dir": "^0.3.0"
|
|
|
+ "isparta": "^4.0.0",
|
|
|
+ "lodash": "^4.5.1",
|
|
|
+ "mocha": "^2.4.5",
|
|
|
+ "mustache": "^2.2.1",
|
|
|
+ "redux-devtools": "^3.1.1",
|
|
|
+ "require-dir": "^0.3.0",
|
|
|
+ "sinon": "^1.17.3"
|
|
|
+ },
|
|
|
+ "dependencies": {
|
|
|
+ "exports-loader": "^0.6.3",
|
|
|
+ "imports-loader": "^0.6.5",
|
|
|
+ "react-redux": "^4.4.0",
|
|
|
+ "redux": "^3.3.1",
|
|
|
+ "whatwg-fetch": "^0.11.0"
|
|
|
},
|
|
|
- "dependencies": {},
|
|
|
"scripts": {
|
|
|
- "build": "gulp build",
|
|
|
- "start": "gulp watch",
|
|
|
- "lint:js": "./node_modules/.bin/jscs ./wagtail || true",
|
|
|
- "format:js": "./node_modules/.bin/jscs ./wagtail -x"
|
|
|
+ "install": "pushd ./client; npm install; popd",
|
|
|
+ "build": "gulp build; webpack --progress --colors --config webpack.prd.config.js",
|
|
|
+ "watch": "webpack --progress --colors --config webpack.dev.config.js & gulp watch",
|
|
|
+ "start": "npm run watch",
|
|
|
+ "lint:js": "eslint --max-warnings 16 webpack.*.config.js ./client/src",
|
|
|
+ "lint": "npm run lint:js",
|
|
|
+ "test": "npm run test:unit",
|
|
|
+ "test:unit": "env NODE_PATH=$NODE_PATH:$PWD/client/src mocha --compilers js:babel-core/register client/tests/**/*.test.js",
|
|
|
+ "test:unit:coverage": "env NODE_PATH=$NODE_PATH:$PWD/client/src babel-node $(npm bin)/isparta cover node_modules/mocha/bin/_mocha -- client/tests/**/*.test.js",
|
|
|
+ "component": "node ./client/src/cli/index.js component --dir ./client/src/components/"
|
|
|
}
|
|
|
}
|