2015-09-02 15:08:58 -04:00
|
|
|
{
|
|
|
|
"name": "www",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"description": "Standalone WWW client for Scratch",
|
|
|
|
"scripts": {
|
2019-07-09 14:49:44 -04:00
|
|
|
"start": "node ./dev-server/index.js",
|
2019-07-18 16:18:27 -04:00
|
|
|
"test": "npm run test:lint && npm run build && npm run test:unit",
|
2019-07-15 10:10:52 -04:00
|
|
|
"test:lint": "eslint . --ext .js,.jsx,.json",
|
2021-02-02 11:40:11 -05:00
|
|
|
"test:lint:ci": "eslint . --ext .js,.jsx,.json --format junit -o ./test/results/lint-results.xml",
|
2021-12-03 09:15:04 -05:00
|
|
|
"test:integration": "jest ./test/integration/*.test.js --reporters=default --maxWorkers=5",
|
|
|
|
"test:integration:remote": "SMOKE_REMOTE=true jest ./test/integration/*.test.js --reporters=default --maxWorkers=5",
|
2019-07-17 15:33:01 -04:00
|
|
|
"test:unit": "npm run test:unit:jest && npm run test:unit:tap",
|
2021-03-02 11:34:27 -05:00
|
|
|
"test:unit:jest": "npm run test:unit:jest:unit && npm run test:unit:jest:localization",
|
2021-03-02 16:25:16 -05:00
|
|
|
"test:unit:jest:unit": "jest ./test/unit/ --reporters=default",
|
|
|
|
"test:unit:jest:localization": "jest ./test/localization/*.test.js --reporters=default",
|
2021-03-24 14:38:41 -04:00
|
|
|
"test:unit:tap": "tap ./test/{unit-legacy,localization-legacy}/ --no-coverage -R classic",
|
2021-02-02 11:15:26 -05:00
|
|
|
"test:unit:convertReportToXunit": "tap ./test/results/unit-raw.tap --no-coverage -R xunit > ./test/results/unit-tap-results.xml",
|
2021-03-24 14:38:41 -04:00
|
|
|
"test:coverage": "tap ./test/{unit-legacy,localization-legacy}/ --coverage --coverage-report=lcov",
|
2021-03-19 15:54:04 -04:00
|
|
|
"build": "npm run clean && npm run translate && NODE_OPTIONS=--max_old_space_size=8000 webpack --bail",
|
2022-02-07 11:04:54 -05:00
|
|
|
"build:analyze": "ANALYZE_BUNDLE=true npm run build",
|
2019-07-09 14:49:44 -04:00
|
|
|
"clean": "rm -rf ./build && rm -rf ./intl && mkdir -p build && mkdir -p intl",
|
2022-02-24 12:01:55 -05:00
|
|
|
"deploy": "npm run deploy:s3 && npm run deploy:fastly && npm run deploy:announce",
|
2019-07-15 09:24:47 -04:00
|
|
|
"deploy:fastly": "node ./bin/configure-fastly.js",
|
2021-07-09 11:09:51 -04:00
|
|
|
"deploy:s3": "npm run deploy:s3:all && npm run deploy:s3:svg && npm run deploy:s3:js && npm run deploy:s3:css",
|
2021-05-14 19:17:22 -04:00
|
|
|
"deploy:s3cmd": "s3cmd sync -P --delete-removed --add-header=Cache-Control:no-cache,public,max-age=3600 --add-header=x-amz-meta-surrogate-key:static-assets",
|
2021-07-09 11:09:51 -04:00
|
|
|
"deploy:s3:all": "npm run deploy:s3cmd -- --exclude '.DS_Store' --exclude '*.svg' --exclude '*.js' --exclude '*.css' ./build/ s3://$S3_BUCKET_NAME/",
|
2019-07-15 10:03:43 -04:00
|
|
|
"deploy:s3:svg": "npm run deploy:s3cmd -- --exclude '*' --include '*.svg' --mime-type 'image/svg+xml' ./build/ s3://$S3_BUCKET_NAME/",
|
|
|
|
"deploy:s3:js": "npm run deploy:s3cmd -- --exclude '*' --include '*.js' --mime-type 'application/javascript' ./build/ s3://$S3_BUCKET_NAME/",
|
2021-07-09 11:09:51 -04:00
|
|
|
"deploy:s3:css": "npm run deploy:s3cmd -- --exclude '*' --include '*.css' --mime-type 'text/css' ./build/ s3://$S3_BUCKET_NAME/",
|
2022-02-24 12:01:55 -05:00
|
|
|
"deploy:announce": "node ./bin/announce.js",
|
2020-01-28 11:43:39 -05:00
|
|
|
"i18n:push": "./bin/tx-push-www --execute",
|
2019-02-20 14:46:30 -05:00
|
|
|
"translate:urls": "node ./bin/get-localized-urls localized-urls.json",
|
|
|
|
"translate:files": "node ./bin/build-locales node_modules/scratch-l10n/www intl",
|
|
|
|
"translate": "npm run translate:urls && npm run translate:files"
|
2015-09-02 15:08:58 -04:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2023-05-11 18:26:41 -04:00
|
|
|
"url": "git+ssh://git@github.com/scratchfoundation/scratch-www.git"
|
2015-09-02 15:08:58 -04:00
|
|
|
},
|
2016-01-31 13:07:21 -05:00
|
|
|
"author": "Massachusetts Institute of Technology",
|
|
|
|
"license": "BSD-3-Clause",
|
2015-09-02 15:08:58 -04:00
|
|
|
"bugs": {
|
2023-05-11 18:26:41 -04:00
|
|
|
"url": "https://github.com/scratchfoundation/scratch-www/issues"
|
2015-09-02 15:08:58 -04:00
|
|
|
},
|
2023-05-11 18:26:41 -04:00
|
|
|
"homepage": "https://github.com/scratchfoundation/scratch-www#readme",
|
2015-09-04 01:26:56 -04:00
|
|
|
"dependencies": {
|
2022-02-14 10:40:09 -05:00
|
|
|
"bunyan": "1.8.15",
|
2018-11-21 13:12:09 -05:00
|
|
|
"clipboard-copy": "2.0.1",
|
2019-02-11 09:53:54 -05:00
|
|
|
"express": "4.16.1",
|
|
|
|
"express-http-proxy": "1.1.0",
|
|
|
|
"lodash.defaults": "4.0.1",
|
2021-04-02 12:33:18 -04:00
|
|
|
"lodash.get": "^4.4.2",
|
2021-12-14 12:31:26 -05:00
|
|
|
"react-confetti": "^6.0.1",
|
2018-12-12 11:04:25 -05:00
|
|
|
"react-helmet": "5.2.0",
|
2021-07-27 16:04:36 -04:00
|
|
|
"react-router-dom": "5.2.0",
|
2021-10-12 18:39:52 -04:00
|
|
|
"react-twitter-embed": "^3.0.3",
|
2022-02-23 16:38:28 -05:00
|
|
|
"react-use": "^17.3.1",
|
2022-12-13 15:35:54 -05:00
|
|
|
"scratch-parser": "5.1.1",
|
2023-03-31 12:47:28 -04:00
|
|
|
"scratch-storage": "2.2.1"
|
2015-09-04 01:26:56 -04:00
|
|
|
},
|
2015-09-02 15:08:58 -04:00
|
|
|
"devDependencies": {
|
2023-01-06 15:55:16 -05:00
|
|
|
"@formatjs/intl-datetimeformat": "6.4.3",
|
|
|
|
"@formatjs/intl-locale": "3.0.11",
|
|
|
|
"@formatjs/intl-numberformat": "8.3.3",
|
|
|
|
"@formatjs/intl-pluralrules": "5.1.8",
|
|
|
|
"@formatjs/intl-relativetimeformat": "11.1.8",
|
2022-04-26 17:10:33 -04:00
|
|
|
"async": "3.2.2",
|
2022-02-14 10:17:39 -05:00
|
|
|
"autoprefixer": "10.4.2",
|
2018-01-30 11:53:12 -05:00
|
|
|
"babel-cli": "6.26.0",
|
2022-04-26 17:04:57 -04:00
|
|
|
"babel-core": "6.26.3",
|
|
|
|
"babel-eslint": "10.1.0",
|
|
|
|
"babel-loader": "7.1.5",
|
2021-07-09 09:35:50 -04:00
|
|
|
"babel-plugin-syntax-dynamic-import": "^6.18.0",
|
2021-11-08 11:53:10 -05:00
|
|
|
"babel-plugin-transform-async-to-generator": "6.24.1",
|
2018-03-08 15:57:19 -05:00
|
|
|
"babel-plugin-transform-object-rest-spread": "6.26.0",
|
2019-08-02 09:57:08 -04:00
|
|
|
"babel-plugin-transform-require-context": "0.1.1",
|
2022-04-26 17:04:57 -04:00
|
|
|
"babel-preset-es2015": "6.24.1",
|
|
|
|
"babel-preset-react": "6.24.1",
|
2019-02-11 09:53:54 -05:00
|
|
|
"bowser": "1.9.4",
|
2022-03-02 10:55:33 -05:00
|
|
|
"canvas": "2.9.0",
|
2023-08-19 13:01:50 -04:00
|
|
|
"chromedriver": "116.0.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"classnames": "2.2.5",
|
2020-05-11 11:38:01 -04:00
|
|
|
"cookie": "0.4.1",
|
2022-02-02 16:58:48 -05:00
|
|
|
"copy-webpack-plugin": "6.4.1",
|
2022-03-02 10:55:33 -05:00
|
|
|
"css-loader": "5.2.7",
|
2019-08-06 20:22:58 -04:00
|
|
|
"email-validator": "2.0.4",
|
2019-07-31 17:35:57 -04:00
|
|
|
"enzyme": "3.10.0",
|
|
|
|
"enzyme-adapter-react-16": "1.14.0",
|
2019-07-21 21:08:55 -04:00
|
|
|
"eslint": "5.16.0",
|
2021-03-22 10:32:54 -04:00
|
|
|
"eslint-config-scratch": "7.0.0",
|
2019-10-22 23:03:55 -04:00
|
|
|
"eslint-plugin-json": "2.0.1",
|
2019-07-21 21:08:55 -04:00
|
|
|
"eslint-plugin-react": "7.14.2",
|
2021-07-27 16:02:24 -04:00
|
|
|
"eslint-plugin-react-hooks": "4.2.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"fastly": "1.2.1",
|
2019-06-24 13:35:01 -04:00
|
|
|
"formik": "1.5.4",
|
2019-02-11 09:53:54 -05:00
|
|
|
"formsy-react": "1.1.4",
|
2018-04-02 15:02:54 -04:00
|
|
|
"formsy-react-components": "1.0.0",
|
2016-04-28 15:40:50 -04:00
|
|
|
"git-bundle-sha": "0.0.2",
|
2019-02-11 09:53:54 -05:00
|
|
|
"glob": "5.0.15",
|
2021-03-02 19:05:05 -05:00
|
|
|
"google-libphonenumber": "3.2.18",
|
2021-07-27 15:26:18 -04:00
|
|
|
"html-webpack-plugin": "3.2.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"iso-3166-2": "0.4.0",
|
2021-07-27 16:03:30 -04:00
|
|
|
"jest": "23.6.0",
|
2022-03-02 10:55:33 -05:00
|
|
|
"jest-canvas-mock": "2.3.1",
|
2021-01-12 11:38:50 -05:00
|
|
|
"jest-junit": "12.0.0",
|
2016-03-18 11:51:22 -04:00
|
|
|
"keymirror": "0.1.1",
|
2018-01-30 11:53:12 -05:00
|
|
|
"lodash.bindall": "4.4.0",
|
2020-11-09 14:13:07 -05:00
|
|
|
"lodash.defaultsdeep": "4.6.1",
|
2020-10-17 03:07:23 -04:00
|
|
|
"lodash.merge": "4.6.2",
|
2020-11-09 14:10:07 -05:00
|
|
|
"lodash.mergewith": "4.6.2",
|
2019-02-11 09:53:54 -05:00
|
|
|
"lodash.omit": "3.1.0",
|
2019-01-10 13:49:07 -05:00
|
|
|
"lodash.uniqby": "4.7.0",
|
2022-03-02 10:55:33 -05:00
|
|
|
"mini-css-extract-plugin": "1.6.2",
|
2019-02-11 09:53:54 -05:00
|
|
|
"minilog": "2.0.8",
|
|
|
|
"pako": "0.2.8",
|
2020-08-06 12:03:15 -04:00
|
|
|
"plotly.js": "1.47.4",
|
2022-02-16 12:10:01 -05:00
|
|
|
"postcss": "8.4.6",
|
2022-01-26 15:50:40 -05:00
|
|
|
"postcss-loader": "4.2.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"prop-types": "15.6.0",
|
2021-07-27 15:26:18 -04:00
|
|
|
"query-string": "5.1.1",
|
2021-07-27 16:02:24 -04:00
|
|
|
"react": "16.14.0",
|
|
|
|
"react-dom": "16.14.0",
|
2023-01-06 15:55:16 -05:00
|
|
|
"react-intl": "5.25.1",
|
2019-10-25 20:05:04 -04:00
|
|
|
"react-modal": "3.11.1",
|
2018-01-30 11:53:12 -05:00
|
|
|
"react-onclickoutside": "6.7.1",
|
2020-08-06 12:03:15 -04:00
|
|
|
"react-plotly.js": "2.4.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"react-redux": "5.0.7",
|
|
|
|
"react-responsive": "3.0.0",
|
|
|
|
"react-slick": "0.16.0",
|
2018-04-24 11:00:47 -04:00
|
|
|
"react-string-replace": "0.4.1",
|
2019-02-11 09:53:54 -05:00
|
|
|
"react-telephone-input": "4.3.4",
|
2023-01-25 22:15:54 -05:00
|
|
|
"react-test-renderer": "16.14.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"redux": "3.5.2",
|
2021-07-27 15:26:18 -04:00
|
|
|
"redux-mock-store": "1.5.4",
|
2019-02-11 09:53:54 -05:00
|
|
|
"redux-thunk": "2.0.1",
|
2021-11-08 11:53:10 -05:00
|
|
|
"regenerator-runtime": "0.13.9",
|
2022-03-02 10:55:33 -05:00
|
|
|
"sass": "1.49.7",
|
2023-09-20 15:15:29 -04:00
|
|
|
"sass-loader": "10.4.1",
|
2023-09-21 03:47:49 -04:00
|
|
|
"scratch-gui": "2.3.67",
|
2023-09-20 06:03:59 -04:00
|
|
|
"scratch-l10n": "3.16.20230920032206",
|
2021-12-07 13:06:32 -05:00
|
|
|
"selenium-webdriver": "4.1.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"slick-carousel": "1.6.0",
|
|
|
|
"style-loader": "0.12.3",
|
2021-01-20 10:24:38 -05:00
|
|
|
"tap": "14.11.0",
|
2019-11-21 11:19:54 -05:00
|
|
|
"url-loader": "2.3.0",
|
2023-09-20 15:25:33 -04:00
|
|
|
"webpack": "4.47.0",
|
2023-09-20 17:11:38 -04:00
|
|
|
"webpack-bundle-analyzer": "4.9.1",
|
2021-07-27 15:26:18 -04:00
|
|
|
"webpack-cli": "3.3.12",
|
2022-02-16 11:51:10 -05:00
|
|
|
"webpack-dev-middleware": "5.3.1",
|
2019-02-11 09:53:54 -05:00
|
|
|
"xhr": "2.2.0"
|
2016-10-23 18:08:13 -04:00
|
|
|
},
|
2019-07-31 17:35:57 -04:00
|
|
|
"jest": {
|
|
|
|
"setupFiles": [
|
2022-02-23 16:38:28 -05:00
|
|
|
"<rootDir>/test/helpers/enzyme-setup.js",
|
|
|
|
"jest-canvas-mock"
|
2019-08-01 16:16:42 -04:00
|
|
|
],
|
|
|
|
"moduleNameMapper": {
|
|
|
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
|
|
|
|
"\\.(css|less|scss)$": "<rootDir>/test/__mocks__/styleMock.js"
|
2021-01-12 11:38:50 -05:00
|
|
|
},
|
|
|
|
"reporters": [
|
|
|
|
"default",
|
|
|
|
"jest-junit"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"jest-junit": {
|
2021-02-02 10:32:39 -05:00
|
|
|
"outputDirectory": "./test/results"
|
2019-07-31 17:35:57 -04:00
|
|
|
},
|
2016-10-23 18:08:13 -04:00
|
|
|
"nyc": {
|
|
|
|
"include": [
|
2017-02-13 08:29:10 -05:00
|
|
|
"bin/**/*.js",
|
|
|
|
"src/**/*.js"
|
2016-10-23 18:08:13 -04:00
|
|
|
],
|
|
|
|
"all": true
|
2022-02-14 10:17:39 -05:00
|
|
|
},
|
|
|
|
"browserslist": [
|
|
|
|
"last 3 versions",
|
|
|
|
"Safari >= 8",
|
|
|
|
"iOS >= 8"
|
|
|
|
]
|
2015-09-02 15:08:58 -04:00
|
|
|
}
|