package.json
{
"name": "crime-data-explorer",
"version": "3.1.0",
"private": true,
"engines": {
"node": "6.14.x"
},
"scripts": {
"start": "node build/server.js",
"postinstall": "npm run swagger",
"build":
"export NODE_ENV=production && webpack -p --progress --config webpack.config.js && unset NODE_ENV",
"watch":
"webpack -w --progress --config webpack.config.js & nodemon build/server.js",
"lint": "npm run lint:js && npm run lint:yml",
"lint:js":
"eslint src scripts server.js --ignore-path .gitignore || exit 0",
"lint:yml": "yamllint content/**/*.yml || exit 0",
"test": "jest --env=jsdom --no-cache",
"test:debug": "node --debug-brk jest -i --env=jsdom",
"test:watch": "jest --env=jsdom --watch",
"selenium:run":
"mocha test/browser/release_verification.js --require babel-register --timeout=15000",
"selenium:start":
"java -jar -Dwebdriver.gecko.driver=./test/browser/geckodriver ./test/browser/selenium-server-standalone-3.5.3.jar",
"selenium:start:mac":
"java -jar -Dwebdriver.gecko.driver=./test/browser/geckodriver-mac ./test/browser/selenium-server-standalone-3.5.3.jar",
"coverage": "npm test -- --coverage",
"prettier":
"prettier --single-quote --trailing-comma all --semi false --write \"{src,test}/**/*.js\"",
"swagger":
"rm -f node_modules/swagger-ui/dist/*.html && mkdir -p public/swagger/vendor && cp -r node_modules/swagger-ui/dist/* public/swagger/vendor",
"agencies": "node scripts/agencies/update.js"
},
"dependencies": {
"autotrack": "^2.3.2",
"axios": "^0.15.3",
"babel-polyfill": "^6.20.0",
"basscss-sass": "^4.0.0",
"body-parser": "^1.17.1",
"cfenv": "^1.0.3",
"connect-gzip-static": "^2.0.1",
"d3-array": "^1.0.2",
"d3-collection": "^1.0.3",
"d3-format": "^1.0.2",
"d3-geo": "^1.4.0",
"d3-scale": "^1.0.4",
"d3-shape": "^1.0.4",
"d3-time-format": "^2.0.3",
"element-closest": "^2.0.2",
"express": "^4.14.0",
"express-basic-auth": "^1.1.3",
"file-saver": "^1.3.3",
"glossary-panel": "^0.2.0",
"helmet": "^3.9.0",
"js-yaml": "^3.7.0",
"jszip": "^3.1.3",
"lodash.debounce": "^4.0.8",
"lodash.flatten": "^4.4.0",
"lodash.kebabcase": "^4.1.1",
"lodash.lowercase": "^4.3.0",
"lodash.range": "^3.2.0",
"lodash.snakecase": "^4.1.1",
"lodash.startcase": "^4.4.0",
"lodash.throttle": "^4.1.1",
"lodash.uniqby": "^4.7.0",
"lodash.upperfirst": "^4.3.1",
"markdown-it": "^8.2.2",
"newrelic": "^1.35.1",
"normalize.css": "^5.0.0",
"pluralize": "^3.1.0",
"prop-types": "^15.5.8",
"react": "^15.5.1",
"react-accessible-accordion": "^2.3.1",
"react-dom": "^15.4.1",
"react-helmet": "^5.1.3",
"react-redux": "^5.0.1",
"react-router": "^3.0.0",
"react-accessible-accordion": "^1.0.2",
"react-custom-scrollbars": "^4.2.1",
"react-json-table": "^0.1.1",
"reduce-entries": "^1.0.1",
"redux": "^3.6.0",
"redux-logger": "^2.8.1",
"redux-thunk": "^2.1.0",
"source-map-support": "^0.4.11",
"swagger-ui": "^2.2.6",
"topojson": "^2.2.0",
"uuid": "^3.1.0"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
"babel-cli": "^6.18.0",
"babel-core": "^6.18.2",
"babel-eslint": "^7.1.1",
"babel-jest": "^17.0.2",
"babel-loader": "^7.1.1",
"babel-preset-es2015": "^6.18.0",
"babel-preset-react": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"babel-register": "^6.26.0",
"compression-webpack-plugin": "^0.4.0",
"css-loader": "^0.28.4",
"enzyme": "^2.6.0",
"eslint": "^3.11.1",
"eslint-config-airbnb": "^13.0.0",
"eslint-import-resolver-webpack": "^0.8.3",
"eslint-plugin-babel": "^4.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.10.0",
"extract-text-webpack-plugin": "^2.1.2",
"jest": "^17.0.3",
"json-loader": "^0.5.4",
"mocha": "^3.5.3",
"node-sass": "^4.5.3",
"nodemon": "^1.11.0",
"postcss-loader": "^2.0.6",
"prettier": "^1.4.4",
"react-test-renderer": "^15.5.4",
"sass-loader": "^6.0.6",
"sinon": "^1.17.6",
"style-loader": "^0.18.2",
"webpack": "^2.6.1",
"yaml-lint": "0.0.4",
"yaml-loader": "^0.5.0"
},
"optionalDependencies": {
"webdriverio": "^4.8.0",
"selenium-webdriver": "^3.5.0",
"geckodriver": "^1.8.1"
},
"babel": {
"presets": ["es2015", "stage-0", "react"]
},
"jest": {
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|yml|yaml)$":
"<rootDir>/test/mocks/fileMock.js"
},
"testPathIgnorePatterns": ["/test/browser"]
}
}