Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
91 lines (90 sloc) 4.37 KB
{
"repository": "https://github.com/mozilla/foundation.mozilla.org",
"issues": "https://github.com/mozilla/foundation.mozilla.org/issues",
"description": "Mozilla Foundation site",
"scripts": {
"autoprefix": "postcss --use autoprefixer -o network-api/networkapi/frontend/_css/main.compiled.css network-api/networkapi/frontend/_css/main.compiled.css",
"build:common": "shx rm -rf network-api/networkapi/frontend && shx mkdir -p network-api/networkapi/frontend/_js && run-p build:images build:sass && npm run build:contribute",
"build:contribute": "shx cp contribute.json network-api/networkapi/frontend/",
"build:images": "shx rm -rf network-api/networkapi/frontend/_images && shx cp -r source/images network-api/networkapi/frontend/_images",
"build:js-uncompressed": "webpack",
"build:js": "webpack -p",
"build:sass": "shx mkdir -p network-api/networkapi/frontend/_css && node-sass source/sass/main.scss network-api/networkapi/frontend/_css/main.compiled.css && node-sass source/sass/buyers-guide/bg-main.scss network-api/networkapi/frontend/_css/buyers-guide.compiled.css && npm run autoprefix",
"build": "npm run build:common && npm run build:js",
"build-uncompressed": "npm run build:common && npm run build:js-uncompressed",
"cypress": "run-p --race server cypress:test",
"cypress:install": "npm install --no-save cypress@^3.1.5 @percy/cypress@^1.0.2",
"cypress:test": "wait-on tcp:8000 && cypress run",
"heroku-postbuild": "npm run build",
"migrate": "pipenv run python network-api/manage.py migrate",
"optimize:svg": "find source/images -type f -name '*.svg' -print0 | xargs -0 -n 1 -P 6 svgo --multipass --pretty --enable=removeTitle",
"optimize:jpg": "find source/images -type f -name '*.jpg' -print0 | xargs -0 -n 1 -P 6 -I '{}' guetzli --quality 93 '{}' '{}'",
"optimize:png": "find source/images -type f -name '*.png' -print0 | xargs -0 -n 1 -P 6 optipng",
"optimize": "run-p optimize:**",
"percy": "percy exec -t 800 -- npm run cypress",
"server": "pipenv run python network-api/manage.py runserver",
"start": "run-p build-uncompressed server watch:**",
"test:procfile": "node test/test-procfile.js",
"test:eslint": "eslint --config ./.eslintrc.json \"cypress/integration/*.js\" \"network-api/networkapi/{,!(frontend)/**/}*.js\" \"source/js/**/*.js\" \"source/js/**/*.jsx\" webpack.config.js",
"test:scss": "stylelint \"source/sass/**/*.scss\" \"source/js/**/*.scss\" --syntax scss",
"test:scss:styleguide:color": "stylelint \"source/sass/**/*.scss\" \"source/js/**/*.scss\" \"!source/sass/**/_colors.scss\" --syntax scss --config .stylelintrc-colors.js",
"test:css": "stylelint \"network-api/networkapi/{,!(frontend)/**/}*.css\" --syntax scss",
"test": "run-s test:** build",
"watch": "npm run build && run-p watch:**",
"watch:images": "chokidar \"source/images/**/*\" -c \"npm run build:images\"",
"watch:js": "chokidar \"source/js/**/*.js\" \"source/js/**/*.jsx\" -c \"npm run build:js-uncompressed\"",
"watch:sass": "chokidar \"source/**/*.scss\" -c \"npm run build:sass\""
},
"browserslist": [
"> 1%",
"last 2 versions"
],
"author": "Mozilla",
"license": "MPL-2.0",
"dependencies": {
"@babel/core": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"@babel/preset-react": "^7.0.0",
"autoprefixer": "^9.6.1",
"babel-core": "^6.26.3",
"babel-loader": "^8.0.6",
"classnames": "2.2.6",
"event-stream": "3.3.4",
"html-entities": "^1.2.1",
"js-cookie": "2.2.1",
"mofo-bootstrap": "4.1.0",
"moment": "^2.24.0",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.3",
"postcss": "^7.0.18",
"postcss-cli": "^6.1.3",
"prop-types": "^15.7.2",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react-ga": "2.6.0",
"shx": "^0.3.2",
"webpack": "^4.39.2",
"webpack-cli": "^3.3.8",
"whatwg-fetch": "^3.0.0"
},
"engines": {
"node": "^8.9.0"
},
"devDependencies": {
"browserslist": "^4.6.6",
"chokidar-cli": "^2.0.0",
"dotenv": "^8.1.0",
"eslint": "^6.2.2",
"eslint-config-prettier": "^6.1.0",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.14.3",
"optipng-bin": "^6.0.0",
"prettier": "^1.17.1",
"wait-on": "^3.2.0",
"shelljs": "^0.8.3",
"stylelint": "^10.1.0",
"stylelint-config-standard": "^18.3.0",
"stylelint-prettier": "^1.1.1",
"svgo": "^1.3.0"
}
}
You can’t perform that action at this time.