2016-02-22 12:39:48 +03:00
|
|
|
{
|
|
|
|
"name": "mozilla-addons-frontend",
|
|
|
|
"version": "0.0.1",
|
|
|
|
"description": "Universal front-end projects to complement addons-server.",
|
|
|
|
"main": "index.js",
|
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
2016-07-05 22:30:46 +03:00
|
|
|
"build": "bin/build-checks.js && better-npm-run build",
|
2017-03-22 14:23:54 +03:00
|
|
|
"build-locales": "bin/build-locales",
|
2016-05-30 20:51:36 +03:00
|
|
|
"extract-locales": "better-npm-run extract-locales",
|
2017-03-22 14:23:54 +03:00
|
|
|
"clean": "rimraf './dist/*!(.gitkeep)' './webpack-assets.json' './src/locale/**(!.gitkeep)'",
|
2016-08-24 15:17:09 +03:00
|
|
|
"dev:admin": "better-npm-run dev:admin",
|
2016-07-11 15:04:15 +03:00
|
|
|
"dev:amo": "better-npm-run dev:amo",
|
2017-02-17 19:08:14 +03:00
|
|
|
"dev:amo:no-proxy": "better-npm-run dev:amo:no-proxy",
|
2016-04-14 17:55:00 +03:00
|
|
|
"dev:disco": "better-npm-run dev:disco",
|
2016-06-23 16:12:15 +03:00
|
|
|
"eslint": "eslint .",
|
2017-04-17 21:37:35 +03:00
|
|
|
"flow:check": "flow check",
|
|
|
|
"flow:dev": "chokidar .flowconfig flow/ src/ tests/ -i flow/logs/flow.log -c 'flow status' --initial",
|
2016-06-23 16:12:15 +03:00
|
|
|
"stylelint": "stylelint --syntax scss **/*.scss",
|
2016-07-05 23:52:01 +03:00
|
|
|
"lint": "npm run eslint && npm run stylelint",
|
2016-05-05 23:04:05 +03:00
|
|
|
"start": "npm run version-check && NODE_PATH='./:./src' node bin/server.js",
|
2017-05-23 16:27:55 +03:00
|
|
|
"test-ci": "bin/config-check.js && better-npm-run test-ci && cat ./coverage/lcov.info | coveralls",
|
2017-05-19 20:54:22 +03:00
|
|
|
"test": "bin/config-check.js && jest",
|
|
|
|
"test-watch": "bin/config-check.js && jest --watch",
|
|
|
|
"test-coverage": "bin/config-check.js && jest --coverage",
|
2016-03-11 19:08:34 +03:00
|
|
|
"version-check": "node bin/version-check.js",
|
2017-03-22 14:23:54 +03:00
|
|
|
"webpack-dev-server": "npm run build-locales && better-npm-run webpack-dev-server"
|
2016-03-29 16:20:50 +03:00
|
|
|
},
|
|
|
|
"betterScripts": {
|
|
|
|
"build": {
|
2017-03-22 14:23:54 +03:00
|
|
|
"command": "npm run clean && npm run version-check && npm run build-locales && webpack --bail --verbose --display-error-details --progress --colors --config webpack.prod.config.babel.js",
|
2016-03-29 16:20:50 +03:00
|
|
|
"env": {
|
2016-04-28 00:06:27 +03:00
|
|
|
"NODE_PATH": "./:./src"
|
2016-03-29 16:20:50 +03:00
|
|
|
}
|
|
|
|
},
|
2016-08-24 15:17:09 +03:00
|
|
|
"dev:admin": {
|
2016-07-11 15:04:15 +03:00
|
|
|
"command": "better-npm-run start-dev",
|
|
|
|
"env": {
|
2016-08-24 15:17:09 +03:00
|
|
|
"NODE_APP_INSTANCE": "admin"
|
2016-07-11 15:04:15 +03:00
|
|
|
}
|
|
|
|
},
|
2016-08-24 15:17:09 +03:00
|
|
|
"dev:amo": {
|
2017-02-17 19:08:14 +03:00
|
|
|
"command": "better-npm-run start-dev-proxy",
|
2016-03-29 16:20:50 +03:00
|
|
|
"env": {
|
2016-08-24 15:17:09 +03:00
|
|
|
"NODE_APP_INSTANCE": "amo"
|
2016-03-29 16:20:50 +03:00
|
|
|
}
|
|
|
|
},
|
2017-02-17 19:08:14 +03:00
|
|
|
"dev:amo:no-proxy": {
|
|
|
|
"command": "better-npm-run start-dev",
|
|
|
|
"env": {
|
|
|
|
"NODE_APP_INSTANCE": "amo",
|
|
|
|
"PROXY_ENABLED": "false"
|
|
|
|
}
|
|
|
|
},
|
2016-08-24 15:17:09 +03:00
|
|
|
"dev:disco": {
|
2016-04-22 19:42:57 +03:00
|
|
|
"command": "better-npm-run start-dev",
|
2016-03-29 16:20:50 +03:00
|
|
|
"env": {
|
2016-08-24 15:17:09 +03:00
|
|
|
"NODE_APP_INSTANCE": "disco"
|
2016-03-29 16:20:50 +03:00
|
|
|
}
|
|
|
|
},
|
2016-05-30 20:51:36 +03:00
|
|
|
"extract-locales": {
|
2017-01-19 03:01:14 +03:00
|
|
|
"command": "webpack --verbose --bail --display-error-details --progress --colors --config webpack.l10n.config.babel.js",
|
2016-05-20 01:33:30 +03:00
|
|
|
"env": {
|
|
|
|
"NODE_PATH": "./:./src",
|
|
|
|
"NODE_ENV": "production"
|
|
|
|
}
|
|
|
|
},
|
2016-04-22 19:42:57 +03:00
|
|
|
"start-dev": {
|
2016-12-22 23:18:55 +03:00
|
|
|
"command": "npm run clean && concurrently --kill-others 'npm run webpack-dev-server' 'node bin/server.js | bunyan'",
|
2016-04-22 19:42:57 +03:00
|
|
|
"env": {
|
2016-04-28 00:06:27 +03:00
|
|
|
"ENABLE_PIPING": "true",
|
2016-04-22 19:42:57 +03:00
|
|
|
"NODE_ENV": "development",
|
2016-04-28 00:06:27 +03:00
|
|
|
"NODE_PATH": "./:./src"
|
2016-04-22 19:42:57 +03:00
|
|
|
}
|
|
|
|
},
|
2017-02-17 19:08:14 +03:00
|
|
|
"start-dev-proxy": {
|
|
|
|
"command": "npm run clean && concurrently --kill-others 'npm run webpack-dev-server' 'node bin/server.js | bunyan' 'node bin/proxy.js | bunyan'",
|
|
|
|
"env": {
|
|
|
|
"ENABLE_PIPING": "true",
|
|
|
|
"NODE_ENV": "development",
|
|
|
|
"NODE_PATH": "./:./src",
|
|
|
|
"SERVER_PORT": "3333"
|
|
|
|
}
|
|
|
|
},
|
2017-05-19 20:54:22 +03:00
|
|
|
"test-ci": {
|
|
|
|
"command": "npm run version-check && npm run flow:check && npm run test-coverage && npm run eslint && npm run stylelint",
|
2016-08-31 17:58:32 +03:00
|
|
|
"env": {
|
|
|
|
"NODE_PATH": "./:./src",
|
|
|
|
"NODE_ENV": "test"
|
|
|
|
}
|
|
|
|
},
|
2016-03-29 16:20:50 +03:00
|
|
|
"webpack-dev-server": {
|
|
|
|
"command": "node bin/webpack-dev-server.js",
|
|
|
|
"env": {
|
|
|
|
"NODE_ENV": "development",
|
2016-04-28 00:06:27 +03:00
|
|
|
"NODE_PATH": "./:./src"
|
2016-03-29 16:20:50 +03:00
|
|
|
}
|
|
|
|
}
|
2016-02-22 12:39:48 +03:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git+https://github.com/mozillla/addons-frontend.git"
|
|
|
|
},
|
|
|
|
"author": "Mozilla Add-ons Team",
|
|
|
|
"license": "MPL-2.0",
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/mozillla/addons-frontend/issues"
|
|
|
|
},
|
2016-02-22 17:40:12 +03:00
|
|
|
"homepage": "https://github.com/mozillla/addons-frontend#readme",
|
|
|
|
"dependencies": {
|
2016-05-20 01:33:30 +03:00
|
|
|
"babel-plugin-dedent": "2.0.0",
|
2016-12-09 02:27:17 +03:00
|
|
|
"babel-polyfill": "6.20.0",
|
2017-05-15 14:26:05 +03:00
|
|
|
"base62": "1.2.0",
|
2016-10-11 23:05:28 +03:00
|
|
|
"base64url": "2.0.0",
|
2017-03-20 22:16:03 +03:00
|
|
|
"better-npm-run": "0.0.15",
|
2017-04-05 17:13:01 +03:00
|
|
|
"bunyan": "1.8.10",
|
2016-05-05 13:47:38 +03:00
|
|
|
"classnames": "2.2.5",
|
2017-01-11 17:26:51 +03:00
|
|
|
"common-tags": "1.4.0",
|
2017-05-03 17:50:43 +03:00
|
|
|
"config": "1.26.1",
|
2017-05-05 14:19:55 +03:00
|
|
|
"deep-eql": "2.0.2",
|
2017-05-22 21:55:36 +03:00
|
|
|
"dompurify": "0.9.0",
|
2017-02-08 05:21:15 +03:00
|
|
|
"es6-error": "4.0.2",
|
2017-03-22 21:01:56 +03:00
|
|
|
"express": "4.15.2",
|
2017-05-18 00:07:06 +03:00
|
|
|
"extract-text-webpack-plugin": "2.1.0",
|
2017-03-22 19:04:39 +03:00
|
|
|
"fastclick": "1.0.6",
|
2017-05-05 01:50:23 +03:00
|
|
|
"helmet": "3.6.0",
|
2017-01-09 15:21:50 +03:00
|
|
|
"humps": "2.0.0",
|
2016-03-09 02:02:08 +03:00
|
|
|
"isomorphic-fetch": "2.2.1",
|
2016-07-22 10:52:24 +03:00
|
|
|
"jed": "1.1.1",
|
2017-03-12 23:36:58 +03:00
|
|
|
"jsdom": "9.12.0",
|
2017-05-02 22:37:03 +03:00
|
|
|
"localforage": "1.5.0",
|
2017-03-22 04:54:38 +03:00
|
|
|
"moment": "2.18.1",
|
2016-09-26 15:39:22 +03:00
|
|
|
"mozilla-tabzilla": "0.5.1",
|
2017-03-13 19:07:49 +03:00
|
|
|
"mozilla-version-comparator": "1.0.2",
|
2017-05-03 21:37:53 +03:00
|
|
|
"normalize.css": "7.0.0",
|
2017-02-23 19:09:32 +03:00
|
|
|
"normalizr": "3.2.2",
|
2017-04-20 18:57:32 +03:00
|
|
|
"raven": "1.2.1",
|
2017-04-21 00:59:58 +03:00
|
|
|
"raven-js": "3.14.2",
|
2017-04-20 19:11:47 +03:00
|
|
|
"react": "15.5.4",
|
2017-04-21 01:00:42 +03:00
|
|
|
"react-addons-css-transition-group": "15.5.2",
|
2017-03-21 04:58:40 +03:00
|
|
|
"react-cookie": "1.0.5",
|
2017-04-20 19:12:48 +03:00
|
|
|
"react-dom": "15.5.4",
|
2017-04-20 18:46:14 +03:00
|
|
|
"react-helmet": "5.0.3",
|
2017-01-29 16:56:05 +03:00
|
|
|
"react-nested-status": "0.1.2",
|
2017-04-21 00:59:24 +03:00
|
|
|
"react-onclickoutside": "5.11.1",
|
2017-01-11 17:26:51 +03:00
|
|
|
"react-photoswipe": "1.2.0",
|
2017-02-24 22:17:42 +03:00
|
|
|
"react-redux": "4.4.6",
|
2017-05-18 19:47:01 +03:00
|
|
|
"react-redux-loading-bar": "2.8.2",
|
2016-11-18 15:52:27 +03:00
|
|
|
"react-router": "2.8.1",
|
2017-04-20 18:47:09 +03:00
|
|
|
"react-router-scroll": "0.4.2",
|
2016-09-06 18:21:07 +03:00
|
|
|
"redux": "3.6.0",
|
2016-12-22 19:43:24 +03:00
|
|
|
"redux-connect": "4.0.2",
|
2017-03-23 20:39:35 +03:00
|
|
|
"redux-logger": "2.8.1",
|
2017-03-27 23:27:56 +03:00
|
|
|
"redux-saga": "0.14.3",
|
2016-06-01 00:56:56 +03:00
|
|
|
"serialize-javascript": "1.3.0",
|
2017-05-02 22:37:03 +03:00
|
|
|
"simple-debounce": "0.0.3",
|
2017-03-13 19:07:49 +03:00
|
|
|
"ua-parser-js": "0.7.12",
|
2016-05-10 17:10:00 +03:00
|
|
|
"url": "0.11.0",
|
2017-02-24 19:39:40 +03:00
|
|
|
"url-loader": "0.5.8",
|
2017-02-28 01:36:32 +03:00
|
|
|
"utf8": "2.1.2",
|
2017-03-23 20:57:07 +03:00
|
|
|
"webpack-isomorphic-tools": "2.6.6"
|
2016-02-22 17:46:38 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2017-05-03 18:43:01 +03:00
|
|
|
"autoprefixer": "^6.7.7",
|
|
|
|
"babel-core": "^6.24.1",
|
|
|
|
"babel-eslint": "^7.2.3",
|
2017-03-17 14:16:50 +03:00
|
|
|
"babel-gettext-extractor": "git+https://github.com/muffinresearch/babel-gettext-extractor.git#0d39d3882bc846e7dcb6c9ff6463896c96920ce6",
|
2017-05-19 20:54:22 +03:00
|
|
|
"babel-jest": "20.0.3",
|
2017-05-18 00:07:06 +03:00
|
|
|
"babel-loader": "^7.0.0",
|
2017-05-03 18:43:01 +03:00
|
|
|
"babel-plugin-react-transform": "^2.0.2",
|
|
|
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
|
|
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
|
|
|
"babel-plugin-transform-flow-strip-types": "^6.22.0",
|
|
|
|
"babel-plugin-transform-object-rest-spread": "^6.20.2",
|
|
|
|
"babel-preset-es2015": "^6.24.1",
|
|
|
|
"babel-preset-react": "^6.24.1",
|
|
|
|
"babel-preset-stage-2": "^6.24.1",
|
|
|
|
"babel-register": "^6.24.1",
|
|
|
|
"bundle-loader": "^0.5.5",
|
|
|
|
"chai": "^3.5.0",
|
|
|
|
"chalk": "^1.1.3",
|
|
|
|
"cheerio": "^0.22.0",
|
|
|
|
"chokidar-cli": "^1.2.0",
|
|
|
|
"concurrently": "^3.4.0",
|
2017-05-23 14:27:24 +03:00
|
|
|
"content-security-policy-parser": "0.1.0",
|
2017-05-03 18:43:01 +03:00
|
|
|
"cookie": "^0.3.1",
|
2017-05-23 16:26:25 +03:00
|
|
|
"coveralls": "2.13.1",
|
2017-05-03 18:43:01 +03:00
|
|
|
"css-loader": "^0.28.1",
|
|
|
|
"deepcopy": "^0.6.3",
|
|
|
|
"eslint": "^3.19.0",
|
|
|
|
"eslint-config-airbnb": "^13.0.0",
|
|
|
|
"eslint-plugin-import": "^2.2.0",
|
|
|
|
"eslint-plugin-jsx-a11y": "^2.2.3",
|
2017-05-16 00:32:26 +03:00
|
|
|
"eslint-plugin-promise": "^3.5.0",
|
2017-05-03 18:43:01 +03:00
|
|
|
"eslint-plugin-react": "^6.10.3",
|
|
|
|
"fetch-mock": "^5.10.0",
|
|
|
|
"file-loader": "^0.11.1",
|
2017-05-10 18:43:17 +03:00
|
|
|
"flow-bin": "^0.46.0",
|
2017-05-03 18:43:01 +03:00
|
|
|
"glob": "^7.1.1",
|
|
|
|
"http-proxy": "^1.16.2",
|
2017-05-19 20:54:22 +03:00
|
|
|
"intl": "1.2.5",
|
|
|
|
"intl-locales-supported": "1.0.0",
|
|
|
|
"jest": "20.0.3",
|
2017-05-03 18:43:01 +03:00
|
|
|
"json-loader": "^0.5.4",
|
2017-05-23 14:27:24 +03:00
|
|
|
"mock-express-request": "0.2.0",
|
|
|
|
"mock-express-response": "0.2.0",
|
2017-05-03 18:43:01 +03:00
|
|
|
"node-sass": "^4.5.2",
|
|
|
|
"piping": "^1.0.0-rc.4",
|
|
|
|
"po2json": "^0.4.5",
|
|
|
|
"postcss-loader": "^1.3.3",
|
2017-05-22 12:27:12 +03:00
|
|
|
"potools": "^0.0.5",
|
2017-05-03 18:43:01 +03:00
|
|
|
"react-addons-test-utils": "^15.5.1",
|
|
|
|
"react-hot-loader": "^1.3.0",
|
|
|
|
"react-transform-hmr": "^1.0.4",
|
|
|
|
"redux-devtools": "^3.3.2",
|
2017-03-27 23:27:56 +03:00
|
|
|
"redux-saga-tester": "^1.0.247",
|
2017-05-03 18:43:01 +03:00
|
|
|
"require-uncached": "^1.0.3",
|
|
|
|
"rimraf": "^2.6.1",
|
|
|
|
"sass-loader": "^6.0.3",
|
|
|
|
"semver": "^5.3.0",
|
|
|
|
"shelljs": "^0.7.7",
|
|
|
|
"sinon": "^2.2.0",
|
|
|
|
"style-loader": "^0.17.0",
|
|
|
|
"stylelint": "^7.10.1",
|
|
|
|
"stylelint-config-standard": "^16.0.0",
|
|
|
|
"svg-url-loader": "^2.0.2",
|
2017-05-18 00:07:06 +03:00
|
|
|
"tmp": "^0.0.31",
|
2017-05-03 18:43:01 +03:00
|
|
|
"tosource": "^1.0.0",
|
2017-05-18 00:07:06 +03:00
|
|
|
"webpack": "^2.5.1",
|
2017-05-03 18:43:01 +03:00
|
|
|
"webpack-dev-middleware": "^1.10.2",
|
|
|
|
"webpack-dev-server": "^2.4.5",
|
2017-05-18 00:07:06 +03:00
|
|
|
"webpack-hot-middleware": "^2.18.0",
|
|
|
|
"webpack-subresource-integrity": "^1.0.0-rc.1"
|
2016-02-22 17:40:12 +03:00
|
|
|
}
|
2016-02-22 12:39:48 +03:00
|
|
|
}
|