bedrock/package.json

85 строки
3.1 KiB
JSON

{
"name": "bedrock",
"version": "0.1.0",
"description": "Making mozilla.org awesome, one pebble at a time",
"private": true,
"dependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@mozilla-protocol/core": "^17.0.1",
"@mozilla/glean": "^1.3.0",
"@mozmeao/cookie-helper": "^1.1.0",
"@mozmeao/dnt-helper": "^1.0.0",
"@mozmeao/trafficcop": "^2.0.1",
"@sentry/browser": "^7.31.0",
"babel-loader": "^9.1.2",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.3",
"css-minimizer-webpack-plugin": "^4.2.2",
"mini-css-extract-plugin": "^2.7.2",
"sass": "^1.57.1",
"sass-loader": "^13.2.0",
"style-loader": "^3.3.1",
"terser-webpack-plugin": "^5.3.6",
"webpack": "^5.76.0",
"webpack-cli": "^5.0.1"
},
"repository": {
"type": "git",
"url": "https://github.com/mozilla/bedrock.git"
},
"author": "Mozilla",
"license": "MPL",
"bugs": {
"url": "https://bugzilla.mozilla.org/"
},
"devDependencies": {
"concurrently": "^7.6.0",
"dotenv-webpack": "^8.0.0",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-json": "^3.1.0",
"jasmine-core": "^4.5.0",
"karma": "^6.4.1",
"karma-chrome-launcher": "^3.1.1",
"karma-firefox-launcher": "^2.1.2",
"karma-jasmine": "^5.1.0",
"karma-sourcemap-loader": "^0.3.8",
"karma-webpack": "^5.0.0",
"prettier": "^2.8.1",
"sinon": "^15.0.1",
"stylelint": "^15.6.0",
"stylelint-config-standard-scss": "^9.0.0",
"svgo": "^3.0.2",
"tinypng-cli": "^0.0.7",
"webpack-dev-server": "^4.11.1"
},
"scripts": {
"prestart": "npm run glean",
"start": "concurrently --kill-others \"python manage.py runserver 0.0.0.0:8080\" \"npm run watch\"",
"in-pocket-mode": "SITE_MODE=Pocket npm start",
"lint-js": "./node_modules/.bin/eslint \"media/js/**/*.js\" \"tests/unit/spec/**/*.js\" webpack.config.js webpack.static.config.js",
"lint-css": "./node_modules/.bin/stylelint \"media/css/**/*.{css,scss}\"",
"lint-json": "./node_modules/.bin/eslint \"bedrock/base/templates/includes/structured-data/**/*.json\"",
"lint": "npm run lint-js && npm run lint-css && npm run lint-json && npm run prettier-check",
"test": "npm run glean && npm run lint && npm run karma",
"karma": "./node_modules/.bin/karma start ./tests/unit/karma.conf.js",
"static": "webpack --config webpack.static.config.js --mode=production --bail",
"prebuild": "npm run glean && npm run static",
"build": "webpack --mode=production --bail",
"prewatch": "npm run static",
"watch": "webpack serve --mode=development",
"prettier": "prettier --write .",
"prettier-check": "prettier --check .",
"stylelint-fix": "./node_modules/.bin/stylelint \"media/css/**/*.{css,scss}\" --fix",
"format": "npm run prettier && npm run stylelint-fix",
"glean-lint": "glean glinter glean/metrics.yaml glean/pings.yaml",
"glean": "npm run glean-lint && glean translate glean/metrics.yaml glean/pings.yaml -f javascript -o media/js/libs/glean/"
},
"browserslist": [
"defaults",
"IE 8"
]
}