2014-01-18 04:52:54 +04:00
|
|
|
{
|
|
|
|
"name": "bedrock",
|
|
|
|
"version": "0.1.0",
|
|
|
|
"description": "Making mozilla.org awesome, one pebble at a time",
|
|
|
|
"private": true,
|
|
|
|
"dependencies": {
|
2022-04-11 11:31:35 +03:00
|
|
|
"@babel/core": "^7.17.9",
|
|
|
|
"@babel/preset-env": "^7.16.11",
|
2021-11-10 22:53:38 +03:00
|
|
|
"@mozilla-protocol/core": "16.0.0",
|
2022-05-16 12:14:14 +03:00
|
|
|
"@mozilla/glean": "^1.0.0",
|
2022-06-17 11:28:12 +03:00
|
|
|
"@mozmeao/cookie-helper": "^1.1.0",
|
2022-06-15 21:22:36 +03:00
|
|
|
"@mozmeao/trafficcop": "^2.0.0",
|
2022-05-31 11:34:10 +03:00
|
|
|
"@sentry/browser": "^7.0.0",
|
2022-04-11 11:31:35 +03:00
|
|
|
"babel-loader": "^8.2.4",
|
|
|
|
"clean-webpack-plugin": "^4.0.0",
|
|
|
|
"copy-webpack-plugin": "^10.2.4",
|
|
|
|
"css-loader": "^6.7.1",
|
|
|
|
"css-minimizer-webpack-plugin": "^3.4.1",
|
|
|
|
"mini-css-extract-plugin": "^2.6.0",
|
|
|
|
"sass": "^1.50.0",
|
|
|
|
"sass-loader": "^12.6.0",
|
|
|
|
"style-loader": "^3.3.1",
|
|
|
|
"webpack": "^5.72.0",
|
|
|
|
"webpack-cli": "^4.9.2"
|
2014-01-18 04:52:54 +04:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/mozilla/bedrock.git"
|
|
|
|
},
|
|
|
|
"author": "Mozilla",
|
|
|
|
"license": "MPL",
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://bugzilla.mozilla.org/"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-05-17 18:52:49 +03:00
|
|
|
"browser-sync": "^2.27.10",
|
2020-06-01 15:56:19 +03:00
|
|
|
"browser-sync-webpack-plugin": "^2.2.2",
|
2022-04-11 11:31:35 +03:00
|
|
|
"concurrently": "^7.1.0",
|
2022-05-16 12:14:14 +03:00
|
|
|
"dotenv-webpack": "^7.1.0",
|
2022-03-21 16:51:09 +03:00
|
|
|
"eslint": "^8.11.0",
|
|
|
|
"eslint-config-prettier": "^8.5.0",
|
|
|
|
"eslint-plugin-json": "^3.1.0",
|
2022-03-30 12:15:56 +03:00
|
|
|
"jasmine-core": "^4.0.1",
|
2022-03-14 18:47:36 +03:00
|
|
|
"karma": "^6.3.17",
|
2022-03-30 12:15:56 +03:00
|
|
|
"karma-chrome-launcher": "^3.1.1",
|
|
|
|
"karma-firefox-launcher": "^2.1.2",
|
|
|
|
"karma-jasmine": "^4.0.2",
|
2020-06-01 15:56:19 +03:00
|
|
|
"karma-sourcemap-loader": "^0.3.8",
|
|
|
|
"karma-webpack": "^5.0.0",
|
2022-03-21 16:51:09 +03:00
|
|
|
"prettier": "^2.6.0",
|
2022-03-30 12:15:56 +03:00
|
|
|
"sinon": "^13.0.1",
|
2022-04-01 20:07:20 +03:00
|
|
|
"stylelint": "^14.6.1",
|
|
|
|
"stylelint-config-standard-scss": "^3.0.0",
|
2021-10-21 07:18:11 +03:00
|
|
|
"svgo": "^2.7.0",
|
2019-07-17 11:03:01 +03:00
|
|
|
"tinypng-cli": "^0.0.7"
|
2018-06-07 18:52:53 +03:00
|
|
|
},
|
|
|
|
"scripts": {
|
2022-05-16 12:14:14 +03:00
|
|
|
"prestart": "npm run glean",
|
2020-06-01 15:56:19 +03:00
|
|
|
"start": "concurrently --kill-others \"python manage.py runserver 0.0.0.0:8080\" \"npm run watch\"",
|
11426: Support separate Mozorg and Pocket modes for Bedrock (#11494)
* Refactor Pocket URLConf ahead of making it a first-class URLconf
For now, the pages are still available via /externalpages/pocket/ but
the URLconf is no longer opinionated about having to have the /externalpages/
namespace in there. This means we can plug it in at the root level when
in Pocket-only mode
* Add support to package.json for easy use of Pocket mode or Mozorg mode
npm run in-mozorg-mode
npm run in-pocket-mode
* Support running in Mozorg or Pocket modes in dev or prod via Docker, via Makefile commands
* Support Mozorg or Pocket mode via env var
Setting the SITE_MODE env var to Mozorg or Pocket will now switch the site
into serving only the URLs for that particular mode.
When in Pocket mode, its pages are served from the root path, not from
the 'externalpages' namespace/module name
The default behaviour, for now, remains as is: all URLs will be served, and
Pocket URLs are served as 'external/pocket/*`
* Minor comment shuffle
* Flatten externalpages/pocket to just pocket
* Make Mozorg the default mode, with Pocket enabled via SITE_MODE env var
* Update docs to outline how to invoke Pocket mode
* Amend link to infringement reporting to be hard-coded, because can no longer reverse() it
* Amend link to bug reporting to be hard-coded, because can no longer reverse() it
* Do not use the redirection middleware when in Pocket mode - it clashes with some Pocket URLs
* Hard-code a careers listing URL, because can not reverse Mozorg URLs in Pocket mode
* Drop redunant Default SITE_MODE from docker config
* Disable Pocket integration tests, temporarily
* Ensure Pocket mode does not use bedrock.redirects as an INSTALLED_APP
* Remove pocket reference from mozorg robots.txt
* Add in robots.txt for Pocket mode, based on current state of https://getpocket.com/robots.txt
* Revert "Add in robots.txt for Pocket mode, based on current state of https://getpocket.com/robots.txt"
This reverts commit 5934b4d613eb3e2b975b3d1c7550998eae19f94f.
* Remove straggling markup from diff resolution
2022-04-27 15:59:19 +03:00
|
|
|
"in-pocket-mode": "SITE_MODE=Pocket npm start",
|
2020-06-01 15:56:19 +03:00
|
|
|
"lint-js": "./node_modules/.bin/eslint \"media/js/**/*.js\" \"tests/unit/spec/**/*.js\" webpack.config.js webpack.static.config.js",
|
2020-05-22 19:29:36 +03:00
|
|
|
"lint-css": "./node_modules/.bin/stylelint \"media/css/**/*.{css,scss}\"",
|
2020-10-29 12:21:34 +03:00
|
|
|
"lint-json": "./node_modules/.bin/eslint \"bedrock/base/templates/includes/structured-data/**/*.json\"",
|
2021-10-06 15:18:46 +03:00
|
|
|
"lint": "npm run lint-js && npm run lint-css && npm run lint-json && npm run prettier-check",
|
2022-05-16 12:14:14 +03:00
|
|
|
"test": "npm run glean && npm run lint && npm run karma",
|
|
|
|
"karma": "./node_modules/.bin/karma start ./tests/unit/karma.conf.js",
|
2020-06-01 15:56:19 +03:00
|
|
|
"static": "webpack --config webpack.static.config.js --mode=production --bail",
|
2022-05-16 12:14:14 +03:00
|
|
|
"prebuild": "npm run glean && npm run static",
|
2020-06-01 15:56:19 +03:00
|
|
|
"build": "webpack --mode=production --bail",
|
|
|
|
"prewatch": "npm run static",
|
2021-10-06 15:18:46 +03:00
|
|
|
"watch": "webpack --mode=development --watch",
|
|
|
|
"prettier": "prettier --write .",
|
2021-11-10 13:13:22 +03:00
|
|
|
"prettier-check": "prettier --check .",
|
|
|
|
"stylelint-fix": "./node_modules/.bin/stylelint \"media/css/**/*.{css,scss}\" --fix",
|
2022-05-16 12:14:14 +03:00
|
|
|
"format": "npm run prettier && npm run stylelint-fix",
|
|
|
|
"glean-lint": "glean glinter glean/metrics.yaml glean/pings.yaml",
|
2022-05-20 14:23:45 +03:00
|
|
|
"glean": "npm run glean-lint && glean translate glean/metrics.yaml glean/pings.yaml -f javascript -o media/js/libs/glean/"
|
2020-06-01 15:56:19 +03:00
|
|
|
},
|
|
|
|
"browserslist": [
|
|
|
|
"defaults",
|
|
|
|
"IE 8"
|
|
|
|
]
|
2014-01-18 04:52:54 +04:00
|
|
|
}
|