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",
|
2016-05-30 20:51:36 +03:00
|
|
|
"extract-locales": "better-npm-run extract-locales",
|
2016-07-29 11:46:54 +03:00
|
|
|
"clean": "rimraf './dist/*!(.gitkeep)' './webpack-assets.json'",
|
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",
|
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 .",
|
|
|
|
"stylelint": "stylelint --syntax scss **/*.scss",
|
2016-07-05 23:52:01 +03:00
|
|
|
"lint": "npm run eslint && npm run stylelint",
|
2016-08-24 15:17:09 +03:00
|
|
|
"servertest": "bin/config-check.js && ADDONS_FRONTEND_BUILD_ALL=1 npm run build && better-npm-run servertest && better-npm-run servertest:amo && better-npm-run servertest:disco && better-npm-run servertest:admin",
|
2016-05-05 23:04:05 +03:00
|
|
|
"start": "npm run version-check && NODE_PATH='./:./src' node bin/server.js",
|
2016-07-28 18:19:51 +03:00
|
|
|
"test": "bin/config-check.js && better-npm-run test",
|
|
|
|
"unittest": "bin/config-check.js && better-npm-run unittest",
|
|
|
|
"unittest:dev": "bin/config-check.js && better-npm-run unittest:dev",
|
2016-08-31 17:58:32 +03:00
|
|
|
"unittest:server": "bin/config-check.js && better-npm-run unittest:server",
|
|
|
|
"unittest:run": "bin/config-check.js && better-npm-run unittest:run",
|
2016-03-11 19:08:34 +03:00
|
|
|
"version-check": "node bin/version-check.js",
|
2016-03-29 16:20:50 +03:00
|
|
|
"webpack-dev-server": "better-npm-run webpack-dev-server"
|
|
|
|
},
|
|
|
|
"betterScripts": {
|
|
|
|
"build": {
|
2017-01-09 14:51:01 +03:00
|
|
|
"command": "npm run clean && npm run version-check && 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": {
|
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": "amo"
|
2016-03-29 16:20:50 +03:00
|
|
|
}
|
|
|
|
},
|
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": {
|
2016-05-20 01:33:30 +03:00
|
|
|
"command": "webpack --verbose --display-error-details --progress --colors --config webpack.l10n.config.babel.js",
|
|
|
|
"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
|
|
|
}
|
|
|
|
},
|
2016-03-29 17:05:12 +03:00
|
|
|
"servertest": {
|
2016-07-15 01:09:34 +03:00
|
|
|
"command": "mocha --compilers js:babel-register --timeout 10000 tests/server/",
|
2016-03-29 17:05:12 +03:00
|
|
|
"env": {
|
2016-04-28 00:06:27 +03:00
|
|
|
"NODE_PATH": "./:./src",
|
2016-07-28 18:19:51 +03:00
|
|
|
"NODE_ENV": "test",
|
2016-07-18 22:10:08 +03:00
|
|
|
"TRACKING_ENABLED": "false"
|
2016-03-29 17:05:12 +03:00
|
|
|
}
|
|
|
|
},
|
2016-08-24 15:17:09 +03:00
|
|
|
"servertest:admin": {
|
|
|
|
"command": "mocha --compilers js:babel-register --timeout 10000 tests/server/admin",
|
|
|
|
"env": {
|
|
|
|
"NODE_PATH": "./:./src",
|
|
|
|
"NODE_ENV": "test",
|
|
|
|
"NODE_APP_INSTANCE": "admin",
|
|
|
|
"TRACKING_ENABLED": "false"
|
|
|
|
}
|
|
|
|
},
|
2016-07-26 01:02:07 +03:00
|
|
|
"servertest:amo": {
|
|
|
|
"command": "mocha --compilers js:babel-register --timeout 10000 tests/server/amo",
|
|
|
|
"env": {
|
|
|
|
"NODE_PATH": "./:./src",
|
|
|
|
"NODE_ENV": "production",
|
|
|
|
"NODE_APP_INSTANCE": "amo",
|
|
|
|
"TRACKING_ENABLED": "false"
|
|
|
|
}
|
|
|
|
},
|
2016-07-15 01:09:34 +03:00
|
|
|
"servertest:disco": {
|
|
|
|
"command": "mocha --compilers js:babel-register --timeout 10000 tests/server/disco",
|
|
|
|
"env": {
|
|
|
|
"NODE_PATH": "./:./src",
|
2016-07-28 18:19:51 +03:00
|
|
|
"NODE_ENV": "test",
|
2016-07-18 22:10:08 +03:00
|
|
|
"NODE_APP_INSTANCE": "disco",
|
|
|
|
"TRACKING_ENABLED": "false"
|
2016-07-15 01:09:34 +03:00
|
|
|
}
|
|
|
|
},
|
2016-04-28 00:06:27 +03:00
|
|
|
"test": {
|
2016-06-23 16:12:15 +03:00
|
|
|
"command": "npm run version-check && npm run unittest && npm run servertest && npm run eslint && npm run stylelint",
|
2016-04-28 00:06:27 +03:00
|
|
|
"env": {
|
|
|
|
"NODE_PATH": "./:./src",
|
2016-07-28 18:19:51 +03:00
|
|
|
"NODE_ENV": "test"
|
2016-04-28 00:06:27 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"unittest": {
|
|
|
|
"command": "karma start --single-run",
|
|
|
|
"env": {
|
|
|
|
"NODE_PATH": "./:./src",
|
2016-07-28 18:19:51 +03:00
|
|
|
"NODE_ENV": "test"
|
2016-04-28 00:06:27 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"unittest:dev": {
|
|
|
|
"command": "karma start",
|
|
|
|
"env": {
|
|
|
|
"NODE_PATH": "./:./src",
|
2016-07-28 18:19:51 +03:00
|
|
|
"NODE_ENV": "test"
|
2016-04-15 22:29:27 +03:00
|
|
|
}
|
|
|
|
},
|
2016-08-31 17:58:32 +03:00
|
|
|
"unittest:server": {
|
|
|
|
"command": "karma start --no-auto-watch",
|
|
|
|
"env": {
|
|
|
|
"NODE_PATH": "./:./src",
|
|
|
|
"NODE_ENV": "test"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"unittest:run": {
|
|
|
|
"command": "karma run --",
|
|
|
|
"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",
|
2016-10-11 23:05:28 +03:00
|
|
|
"base64url": "2.0.0",
|
2017-01-13 04:06:54 +03:00
|
|
|
"better-npm-run": "0.0.14",
|
2016-11-16 13:50:59 +03:00
|
|
|
"bunyan": "1.8.5",
|
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",
|
2016-11-16 13:50:59 +03:00
|
|
|
"config": "1.24.0",
|
2016-11-24 03:02:48 +03:00
|
|
|
"deep-eql": "2.0.1",
|
2016-11-02 19:49:47 +03:00
|
|
|
"dompurify": "0.8.4",
|
2016-06-17 12:38:21 +03:00
|
|
|
"express": "4.14.0",
|
2016-03-08 00:21:12 +03:00
|
|
|
"extract-text-webpack-plugin": "1.0.1",
|
2017-01-01 01:09:24 +03:00
|
|
|
"helmet": "3.3.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",
|
2016-12-19 06:54:21 +03:00
|
|
|
"jsdom": "9.9.1",
|
2016-12-20 18:34:07 +03:00
|
|
|
"moment": "2.17.1",
|
2016-09-26 15:39:22 +03:00
|
|
|
"mozilla-tabzilla": "0.5.1",
|
2016-10-03 16:04:51 +03:00
|
|
|
"normalize.css": "5.0.0",
|
2017-01-04 00:45:56 +03:00
|
|
|
"normalizr": "3.0.1",
|
2016-05-13 21:18:03 +03:00
|
|
|
"piping": "0.3.2",
|
2016-10-18 13:03:18 +03:00
|
|
|
"react": "15.3.2",
|
2017-01-13 03:58:02 +03:00
|
|
|
"react-addons-css-transition-group": "15.4.2",
|
2016-12-02 04:55:52 +03:00
|
|
|
"react-cookie": "1.0.4",
|
2016-11-23 04:59:56 +03:00
|
|
|
"react-dom": "15.4.1",
|
2016-12-30 02:37:08 +03:00
|
|
|
"react-helmet": "3.3.0",
|
2016-12-23 03:01:43 +03:00
|
|
|
"react-onclickoutside": "5.8.3",
|
2017-01-11 17:26:51 +03:00
|
|
|
"react-photoswipe": "1.2.0",
|
2016-12-22 19:43:24 +03:00
|
|
|
"react-redux": "4.4.6",
|
2016-11-18 15:52:27 +03:00
|
|
|
"react-router": "2.8.1",
|
2016-11-16 13:50:59 +03:00
|
|
|
"react-router-scroll": "0.4.1",
|
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",
|
2016-11-16 13:50:59 +03:00
|
|
|
"redux-logger": "2.7.4",
|
2016-06-01 00:56:56 +03:00
|
|
|
"serialize-javascript": "1.3.0",
|
2016-05-10 17:10:00 +03:00
|
|
|
"url": "0.11.0",
|
2016-08-20 01:15:37 +03:00
|
|
|
"url-loader": "0.5.7",
|
2017-01-13 04:08:39 +03:00
|
|
|
"webpack-isomorphic-tools": "2.6.6"
|
2016-02-22 17:46:38 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2017-01-03 08:32:24 +03:00
|
|
|
"autoprefixer": "6.6.1",
|
2016-12-17 00:58:00 +03:00
|
|
|
"babel-core": "6.21.0",
|
2016-10-26 22:03:50 +03:00
|
|
|
"babel-eslint": "7.1.0",
|
2016-08-02 18:09:30 +03:00
|
|
|
"babel-gettext-extractor": "git+https://github.com/muffinresearch/babel-gettext-extractor.git#ecd85dea4553247a3cb579da817df29f381df5b9",
|
2016-12-15 16:33:28 +03:00
|
|
|
"babel-loader": "6.2.10",
|
2016-11-16 13:50:59 +03:00
|
|
|
"babel-plugin-istanbul": "3.0.0",
|
2016-03-05 04:36:18 +03:00
|
|
|
"babel-plugin-react-transform": "2.0.2",
|
2016-10-25 03:15:25 +03:00
|
|
|
"babel-plugin-transform-class-properties": "6.18.0",
|
2016-02-25 19:35:30 +03:00
|
|
|
"babel-plugin-transform-decorators-legacy": "1.3.4",
|
2016-12-09 04:15:45 +03:00
|
|
|
"babel-plugin-transform-object-rest-spread": "6.20.2",
|
2016-10-25 04:26:26 +03:00
|
|
|
"babel-preset-es2015": "6.18.0",
|
2016-09-29 11:47:15 +03:00
|
|
|
"babel-preset-react": "6.16.0",
|
2016-10-25 04:20:49 +03:00
|
|
|
"babel-preset-stage-2": "6.18.0",
|
2016-10-25 13:01:52 +03:00
|
|
|
"babel-register": "6.18.0",
|
2016-05-26 20:14:31 +03:00
|
|
|
"bundle-loader": "0.5.4",
|
2016-02-25 00:42:06 +03:00
|
|
|
"chai": "3.5.0",
|
2016-03-29 03:25:51 +03:00
|
|
|
"chalk": "1.1.3",
|
2016-08-24 20:12:04 +03:00
|
|
|
"cheerio": "0.22.0",
|
2016-10-02 22:11:16 +03:00
|
|
|
"concurrently": "3.1.0",
|
2016-03-29 17:05:12 +03:00
|
|
|
"csp-parse": "0.0.2",
|
2016-12-02 17:05:34 +03:00
|
|
|
"css-loader": "0.26.1",
|
2016-11-18 21:06:51 +03:00
|
|
|
"deepcopy": "0.6.3",
|
2017-01-13 04:07:56 +03:00
|
|
|
"eslint": "3.13.1",
|
2016-11-16 13:50:59 +03:00
|
|
|
"eslint-config-airbnb": "13.0.0",
|
2016-11-07 14:16:53 +03:00
|
|
|
"eslint-plugin-import": "2.2.0",
|
2016-11-18 15:52:27 +03:00
|
|
|
"eslint-plugin-jsx-a11y": "2.2.3",
|
2016-12-05 02:53:15 +03:00
|
|
|
"eslint-plugin-react": "6.8.0",
|
2017-01-05 00:43:46 +03:00
|
|
|
"fetch-mock": "5.8.1",
|
2016-06-23 19:30:35 +03:00
|
|
|
"file-loader": "0.9.0",
|
2016-10-10 18:53:00 +03:00
|
|
|
"glob": "7.1.1",
|
2016-03-08 00:21:12 +03:00
|
|
|
"json-loader": "0.5.4",
|
2016-09-09 21:41:16 +03:00
|
|
|
"karma": "1.3.0",
|
2016-02-25 00:42:06 +03:00
|
|
|
"karma-chai": "0.1.0",
|
2016-07-25 18:45:14 +03:00
|
|
|
"karma-coverage": "1.1.1",
|
2016-03-01 20:55:20 +03:00
|
|
|
"karma-coveralls": "1.1.2",
|
2016-05-04 06:08:54 +03:00
|
|
|
"karma-firefox-launcher": "1.0.0",
|
2016-11-10 05:01:25 +03:00
|
|
|
"karma-mocha": "1.3.0",
|
2016-09-19 12:51:03 +03:00
|
|
|
"karma-mocha-reporter": "2.2.0",
|
2016-05-04 23:47:41 +03:00
|
|
|
"karma-sinon": "1.0.5",
|
2016-02-25 00:42:06 +03:00
|
|
|
"karma-sourcemap-loader": "0.3.7",
|
2016-12-22 03:18:55 +03:00
|
|
|
"karma-webpack": "1.8.1",
|
2016-11-25 03:05:25 +03:00
|
|
|
"mocha": "3.2.0",
|
2017-01-13 04:07:47 +03:00
|
|
|
"node-sass": "4.2.0",
|
2016-10-13 23:48:32 +03:00
|
|
|
"po2json": "0.4.5",
|
2016-12-12 21:53:07 +03:00
|
|
|
"postcss-loader": "1.2.1",
|
2016-11-23 04:59:38 +03:00
|
|
|
"react-addons-test-utils": "15.4.1",
|
2016-02-22 21:53:31 +03:00
|
|
|
"react-hot-loader": "1.3.0",
|
2016-03-06 21:08:51 +03:00
|
|
|
"react-transform-hmr": "1.0.4",
|
2016-05-12 01:54:24 +03:00
|
|
|
"redux-devtools": "3.3.1",
|
2016-11-04 07:47:37 +03:00
|
|
|
"require-uncached": "1.0.3",
|
2016-07-22 20:16:39 +03:00
|
|
|
"rimraf": "2.5.4",
|
2016-12-21 14:18:15 +03:00
|
|
|
"sass-loader": "4.1.1",
|
2016-07-14 19:59:31 +03:00
|
|
|
"semver": "5.3.0",
|
2016-10-27 08:56:14 +03:00
|
|
|
"shelljs": "0.7.5",
|
2016-12-31 06:28:56 +03:00
|
|
|
"sinon": "1.17.7",
|
2016-06-24 11:01:13 +03:00
|
|
|
"sri-stats-webpack-plugin": "0.7.3",
|
2016-03-24 22:37:09 +03:00
|
|
|
"style-loader": "0.13.1",
|
2016-12-31 19:11:55 +03:00
|
|
|
"stylelint": "7.7.1",
|
2016-12-18 16:05:54 +03:00
|
|
|
"stylelint-config-standard": "15.0.1",
|
2016-10-21 01:33:58 +03:00
|
|
|
"supertest": "2.0.1",
|
2016-11-02 23:09:20 +03:00
|
|
|
"supertest-as-promised": "4.0.2",
|
2016-07-28 17:59:02 +03:00
|
|
|
"svg-url-loader": "1.1.0",
|
2016-12-20 18:34:07 +03:00
|
|
|
"tosource": "1.0.0",
|
2016-12-07 11:08:26 +03:00
|
|
|
"webpack": "1.14.0",
|
2016-12-15 22:59:09 +03:00
|
|
|
"webpack-dev-middleware": "1.9.0",
|
2016-10-25 00:43:25 +03:00
|
|
|
"webpack-dev-server": "1.16.2",
|
2017-01-13 03:57:43 +03:00
|
|
|
"webpack-hot-middleware": "2.15.0"
|
2016-02-22 17:40:12 +03:00
|
|
|
}
|
2016-02-22 12:39:48 +03:00
|
|
|
}
|