302 строки
9.6 KiB
JSON
302 строки
9.6 KiB
JSON
{
|
|
"name": "mozilla-addons-frontend",
|
|
"version": "0.0.1",
|
|
"description": "Universal front-end projects to complement addons-server.",
|
|
"main": "index.js",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "bin/build-checks.js && better-npm-run build",
|
|
"build-locales": "bin/build-locales",
|
|
"extract-locales": "better-npm-run extract-locales",
|
|
"clean": "rimraf './dist/*!(.gitkeep)' './webpack-assets.json' './src/locale/**(!.gitkeep)'",
|
|
"dev:admin": "better-npm-run dev:admin",
|
|
"dev:amo": "better-npm-run dev:amo",
|
|
"dev:amo:no-proxy": "better-npm-run dev:amo:no-proxy",
|
|
"dev:disco": "better-npm-run dev:disco",
|
|
"eslint": "eslint .",
|
|
"flow:check": "flow check",
|
|
"flow:dev": "chokidar .flowconfig flow/ src/ tests/ -i flow/logs/flow.log -c 'flow status' --initial",
|
|
"stylelint": "stylelint --syntax scss **/*.scss",
|
|
"lint": "npm run eslint && npm run stylelint",
|
|
"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",
|
|
"start": "npm run version-check && NODE_PATH='./:./src' node bin/server.js",
|
|
"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",
|
|
"unittest:server": "bin/config-check.js && better-npm-run unittest:server",
|
|
"unittest:run": "bin/config-check.js && better-npm-run unittest:run",
|
|
"version-check": "node bin/version-check.js",
|
|
"webpack-dev-server": "npm run build-locales && better-npm-run webpack-dev-server"
|
|
},
|
|
"betterScripts": {
|
|
"build": {
|
|
"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",
|
|
"env": {
|
|
"NODE_PATH": "./:./src"
|
|
}
|
|
},
|
|
"dev:admin": {
|
|
"command": "better-npm-run start-dev",
|
|
"env": {
|
|
"NODE_APP_INSTANCE": "admin"
|
|
}
|
|
},
|
|
"dev:amo": {
|
|
"command": "better-npm-run start-dev-proxy",
|
|
"env": {
|
|
"NODE_APP_INSTANCE": "amo"
|
|
}
|
|
},
|
|
"dev:amo:no-proxy": {
|
|
"command": "better-npm-run start-dev",
|
|
"env": {
|
|
"NODE_APP_INSTANCE": "amo",
|
|
"PROXY_ENABLED": "false"
|
|
}
|
|
},
|
|
"dev:disco": {
|
|
"command": "better-npm-run start-dev",
|
|
"env": {
|
|
"NODE_APP_INSTANCE": "disco"
|
|
}
|
|
},
|
|
"extract-locales": {
|
|
"command": "webpack --verbose --bail --display-error-details --progress --colors --config webpack.l10n.config.babel.js",
|
|
"env": {
|
|
"NODE_PATH": "./:./src",
|
|
"NODE_ENV": "production"
|
|
}
|
|
},
|
|
"start-dev": {
|
|
"command": "npm run clean && concurrently --kill-others 'npm run webpack-dev-server' 'node bin/server.js | bunyan'",
|
|
"env": {
|
|
"ENABLE_PIPING": "true",
|
|
"NODE_ENV": "development",
|
|
"NODE_PATH": "./:./src"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"servertest": {
|
|
"command": "mocha --compilers js:babel-register --timeout 10000 tests/server/",
|
|
"env": {
|
|
"NODE_PATH": "./:./src",
|
|
"NODE_ENV": "test",
|
|
"TRACKING_ENABLED": "false"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"servertest:amo": {
|
|
"command": "mocha --compilers js:babel-register --timeout 10000 tests/server/amo",
|
|
"env": {
|
|
"NODE_PATH": "./:./src",
|
|
"NODE_ENV": "test",
|
|
"NODE_APP_INSTANCE": "amo",
|
|
"TRACKING_ENABLED": "false"
|
|
}
|
|
},
|
|
"servertest:disco": {
|
|
"command": "mocha --compilers js:babel-register --timeout 10000 tests/server/disco",
|
|
"env": {
|
|
"NODE_PATH": "./:./src",
|
|
"NODE_ENV": "test",
|
|
"NODE_APP_INSTANCE": "disco",
|
|
"TRACKING_ENABLED": "false"
|
|
}
|
|
},
|
|
"test": {
|
|
"command": "npm run version-check && npm run flow:check && npm run unittest && npm run servertest && npm run eslint && npm run stylelint",
|
|
"env": {
|
|
"NODE_PATH": "./:./src",
|
|
"NODE_ENV": "test"
|
|
}
|
|
},
|
|
"unittest": {
|
|
"command": "karma start --single-run",
|
|
"env": {
|
|
"NODE_PATH": "./:./src",
|
|
"NODE_ENV": "test"
|
|
}
|
|
},
|
|
"unittest:dev": {
|
|
"command": "karma start --watch",
|
|
"env": {
|
|
"NODE_PATH": "./:./src",
|
|
"NODE_ENV": "test"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"webpack-dev-server": {
|
|
"command": "node bin/webpack-dev-server.js",
|
|
"env": {
|
|
"NODE_ENV": "development",
|
|
"NODE_PATH": "./:./src"
|
|
}
|
|
}
|
|
},
|
|
"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"
|
|
},
|
|
"homepage": "https://github.com/mozillla/addons-frontend#readme",
|
|
"dependencies": {
|
|
"babel-plugin-dedent": "2.0.0",
|
|
"babel-polyfill": "6.20.0",
|
|
"base62": "1.1.2",
|
|
"base64url": "2.0.0",
|
|
"better-npm-run": "0.0.15",
|
|
"bunyan": "1.8.10",
|
|
"classnames": "2.2.5",
|
|
"common-tags": "1.4.0",
|
|
"config": "1.26.1",
|
|
"deep-eql": "2.0.2",
|
|
"dompurify": "0.8.9",
|
|
"es6-error": "4.0.2",
|
|
"express": "4.15.2",
|
|
"extract-text-webpack-plugin": "1.0.1",
|
|
"fastclick": "1.0.6",
|
|
"helmet": "3.6.0",
|
|
"humps": "2.0.0",
|
|
"isomorphic-fetch": "2.2.1",
|
|
"jed": "1.1.1",
|
|
"jsdom": "9.12.0",
|
|
"localforage": "1.5.0",
|
|
"moment": "2.18.1",
|
|
"mozilla-tabzilla": "0.5.1",
|
|
"mozilla-version-comparator": "1.0.2",
|
|
"normalize.css": "7.0.0",
|
|
"normalizr": "3.2.2",
|
|
"raven": "1.2.1",
|
|
"raven-js": "3.14.2",
|
|
"react": "15.5.4",
|
|
"react-addons-css-transition-group": "15.5.2",
|
|
"react-cookie": "1.0.5",
|
|
"react-dom": "15.5.4",
|
|
"react-helmet": "5.0.3",
|
|
"react-nested-status": "0.1.2",
|
|
"react-onclickoutside": "5.11.1",
|
|
"react-photoswipe": "1.2.0",
|
|
"react-redux": "4.4.6",
|
|
"react-redux-loading-bar": "2.9.0",
|
|
"react-router": "2.8.1",
|
|
"react-router-scroll": "0.4.2",
|
|
"redux": "3.6.0",
|
|
"redux-connect": "4.0.2",
|
|
"redux-logger": "2.8.1",
|
|
"serialize-javascript": "1.3.0",
|
|
"simple-debounce": "0.0.3",
|
|
"ua-parser-js": "0.7.12",
|
|
"url": "0.11.0",
|
|
"url-loader": "0.5.8",
|
|
"utf8": "2.1.2",
|
|
"webpack-isomorphic-tools": "2.6.6"
|
|
},
|
|
"devDependencies": {
|
|
"autoprefixer": "^6.7.7",
|
|
"babel-core": "^6.24.1",
|
|
"babel-eslint": "^7.2.3",
|
|
"babel-gettext-extractor": "git+https://github.com/muffinresearch/babel-gettext-extractor.git#0d39d3882bc846e7dcb6c9ff6463896c96920ce6",
|
|
"babel-loader": "^6.4.1",
|
|
"babel-plugin-istanbul": "^4.1.3",
|
|
"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",
|
|
"cookie": "^0.3.1",
|
|
"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",
|
|
"eslint-plugin-react": "^6.10.3",
|
|
"fetch-mock": "^5.10.0",
|
|
"file-loader": "^0.11.1",
|
|
"flow-bin": "^0.45.0",
|
|
"glob": "^7.1.1",
|
|
"http-proxy": "^1.16.2",
|
|
"json-loader": "^0.5.4",
|
|
"karma": "^1.6.0",
|
|
"karma-chai": "^0.1.0",
|
|
"karma-coverage": "^1.1.1",
|
|
"karma-coveralls": "^1.1.2",
|
|
"karma-firefox-launcher": "^1.0.1",
|
|
"karma-mocha": "^1.3.0",
|
|
"karma-mocha-reporter": "^2.2.3",
|
|
"karma-sinon": "^1.0.5",
|
|
"karma-sourcemap-loader": "^0.3.7",
|
|
"karma-webpack": "^2.0.3",
|
|
"mocha": "^3.3.0",
|
|
"node-sass": "^4.5.2",
|
|
"piping": "^1.0.0-rc.4",
|
|
"po2json": "^0.4.5",
|
|
"postcss-loader": "^1.3.3",
|
|
"react-addons-test-utils": "^15.5.1",
|
|
"react-hot-loader": "^1.3.0",
|
|
"react-transform-hmr": "^1.0.4",
|
|
"redux-devtools": "^3.3.2",
|
|
"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",
|
|
"sri-stats-webpack-plugin": "^0.7.3",
|
|
"style-loader": "^0.17.0",
|
|
"stylelint": "^7.10.1",
|
|
"stylelint-config-standard": "^16.0.0",
|
|
"supertest": "^3.0.0",
|
|
"supertest-as-promised": "^4.0.2",
|
|
"svg-url-loader": "^2.0.2",
|
|
"tosource": "^1.0.0",
|
|
"webpack": "^1.14.0",
|
|
"webpack-dev-middleware": "^1.10.2",
|
|
"webpack-dev-server": "^2.4.5",
|
|
"webpack-hot-middleware": "^2.18.0"
|
|
}
|
|
}
|