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",
|
2023-09-18 14:14:15 -04:00
|
|
|
"test:health": "jest ./test/health/*.test.js",
|
2021-12-03 09:15:04 -05:00
|
|
|
"test:integration": "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",
|
2024-02-26 18:35:58 -05:00
|
|
|
"test:unit:jest:unit": "jest ./test/unit/ --env=jsdom --reporters=default",
|
2021-03-02 16:25:16 -05:00
|
|
|
"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": {
|
2024-02-20 14:15:09 -05:00
|
|
|
"bunyan": "1.8.15",
|
|
|
|
"clipboard-copy": "2.0.1",
|
2024-11-08 13:58:03 -05:00
|
|
|
"driver.js": "1.3.1",
|
2024-10-11 17:05:34 -04:00
|
|
|
"express": "4.21.1",
|
2024-02-26 11:06:49 -05:00
|
|
|
"express-http-proxy": "1.6.3",
|
2024-02-26 10:43:55 -05:00
|
|
|
"lodash.defaults": "4.2.0",
|
2024-02-20 14:15:09 -05:00
|
|
|
"lodash.get": "4.4.2",
|
|
|
|
"react-confetti": "6.1.0",
|
2024-02-23 17:45:46 -05:00
|
|
|
"react-helmet": "5.2.1",
|
2024-02-21 17:32:56 -05:00
|
|
|
"react-onclickoutside": "6.13.0",
|
2024-02-26 11:07:03 -05:00
|
|
|
"react-router-dom": "5.3.4",
|
2024-02-20 14:15:09 -05:00
|
|
|
"react-twitter-embed": "3.0.3",
|
2024-07-23 11:28:48 -04:00
|
|
|
"react-use": "17.5.1",
|
2024-02-21 18:54:50 -05:00
|
|
|
"scratch-parser": "5.2.1",
|
2024-10-23 03:30:31 -04:00
|
|
|
"scratch-storage": "2.3.284"
|
2015-09-04 01:26:56 -04:00
|
|
|
},
|
2015-09-02 15:08:58 -04:00
|
|
|
"devDependencies": {
|
2024-10-25 12:05:28 -04:00
|
|
|
"@babel/cli": "7.25.9",
|
2024-10-28 10:42:01 -04:00
|
|
|
"@babel/core": "7.26.0",
|
2024-10-25 12:05:28 -04:00
|
|
|
"@babel/eslint-parser": "7.25.9",
|
2024-01-17 19:03:16 -05:00
|
|
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
2024-10-25 12:05:28 -04:00
|
|
|
"@babel/plugin-transform-async-to-generator": "7.25.9",
|
|
|
|
"@babel/plugin-transform-object-rest-spread": "7.25.9",
|
2024-10-28 10:42:01 -04:00
|
|
|
"@babel/preset-env": "7.26.0",
|
2024-10-25 12:05:28 -04:00
|
|
|
"@babel/preset-react": "7.25.9",
|
2024-11-08 01:44:40 -05:00
|
|
|
"@formatjs/intl-datetimeformat": "6.16.4",
|
2024-05-21 01:04:23 -04:00
|
|
|
"@formatjs/intl-locale": "3.4.6",
|
2024-11-08 01:44:40 -05:00
|
|
|
"@formatjs/intl-numberformat": "8.14.4",
|
|
|
|
"@formatjs/intl-pluralrules": "5.3.4",
|
|
|
|
"@formatjs/intl-relativetimeformat": "11.4.4",
|
2024-10-26 02:13:47 -04:00
|
|
|
"@types/jest": "29.5.14",
|
2024-08-22 20:36:18 -04:00
|
|
|
"async": "3.2.6",
|
2024-08-05 20:29:47 -04:00
|
|
|
"autoprefixer": "10.4.20",
|
2024-09-19 19:22:10 -04:00
|
|
|
"babel-loader": "8.4.1",
|
2019-08-02 09:57:08 -04:00
|
|
|
"babel-plugin-transform-require-context": "0.1.1",
|
2019-02-11 09:53:54 -05:00
|
|
|
"bowser": "1.9.4",
|
2024-02-26 23:21:30 -05:00
|
|
|
"buffer": "6.0.3",
|
2024-02-16 01:26:47 -05:00
|
|
|
"canvas": "2.11.2",
|
2024-09-04 18:03:24 -04:00
|
|
|
"cheerio": "1.0.0-rc.3",
|
2024-02-23 22:37:41 -05:00
|
|
|
"classnames": "2.5.1",
|
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",
|
2024-01-18 15:37:11 -05:00
|
|
|
"emit-file-webpack-plugin": "2.0.1",
|
2024-02-24 07:44:46 -05:00
|
|
|
"enzyme": "3.11.0",
|
2024-02-24 10:29:30 -05:00
|
|
|
"enzyme-adapter-react-16": "1.15.8",
|
2024-09-19 13:33:15 -04:00
|
|
|
"eslint": "8.57.1",
|
2024-09-10 23:58:38 -04:00
|
|
|
"eslint-config-scratch": "9.0.9",
|
2024-02-26 13:08:00 -05:00
|
|
|
"eslint-plugin-jest": "27.9.0",
|
2024-02-23 22:40:53 -05:00
|
|
|
"eslint-plugin-json": "2.1.2",
|
2024-10-25 21:54:04 -04:00
|
|
|
"eslint-plugin-react": "7.37.2",
|
2024-04-29 13:32:24 -04:00
|
|
|
"eslint-plugin-react-hooks": "4.6.2",
|
2019-02-11 09:53:54 -05:00
|
|
|
"fastly": "1.2.1",
|
2024-08-08 10:58:47 -04:00
|
|
|
"file-loader": "6.2.0",
|
2024-02-23 18:46:46 -05:00
|
|
|
"formik": "1.5.8",
|
2024-02-23 17:41:33 -05:00
|
|
|
"formsy-react": "1.1.6",
|
2024-02-24 14:05:45 -05:00
|
|
|
"formsy-react-components": "1.1.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",
|
2024-07-29 21:04:50 -04:00
|
|
|
"google-libphonenumber": "3.2.38",
|
2024-01-18 18:54:01 -05:00
|
|
|
"html-webpack-plugin": "5.6.0",
|
2024-01-03 10:07:20 -05:00
|
|
|
"iso-3166-2": "1.0.0",
|
2024-02-26 18:07:07 -05:00
|
|
|
"jest": "29.7.0",
|
2024-02-16 07:12:16 -05:00
|
|
|
"jest-canvas-mock": "2.5.2",
|
2024-02-26 18:35:58 -05:00
|
|
|
"jest-environment-jsdom": "29.7.0",
|
2024-02-24 16:34:33 -05:00
|
|
|
"jest-junit": "12.3.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",
|
2024-08-22 08:28:54 -04:00
|
|
|
"lodash.sample": "4.2.1",
|
2024-10-09 04:24:20 -04:00
|
|
|
"lodash.uniqby": "4.7.0",
|
2022-03-02 10:55:33 -05:00
|
|
|
"mini-css-extract-plugin": "1.6.2",
|
2024-02-24 19:54:33 -05:00
|
|
|
"minilog": "2.1.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"pako": "0.2.8",
|
2020-08-06 12:03:15 -04:00
|
|
|
"plotly.js": "1.47.4",
|
2024-09-26 18:24:01 -04:00
|
|
|
"postcss": "8.4.47",
|
2024-10-09 04:24:20 -04:00
|
|
|
"postcss-import": "12.0.1",
|
2024-02-16 10:58:48 -05:00
|
|
|
"postcss-loader": "4.3.0",
|
2024-08-08 10:58:47 -04:00
|
|
|
"postcss-simple-vars": "5.0.2",
|
2024-02-23 17:50:52 -05:00
|
|
|
"prop-types": "15.8.1",
|
2024-11-08 16:35:20 -05:00
|
|
|
"query-string": "9.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",
|
2024-02-24 22:14:57 -05:00
|
|
|
"react-modal": "3.16.1",
|
2024-02-25 02:18:59 -05:00
|
|
|
"react-plotly.js": "2.6.0",
|
2024-02-25 04:34:55 -05:00
|
|
|
"react-redux": "5.1.2",
|
2019-02-11 09:53:54 -05:00
|
|
|
"react-responsive": "3.0.0",
|
|
|
|
"react-slick": "0.16.0",
|
2018-04-24 11:00:47 -04:00
|
|
|
"react-string-replace": "0.4.1",
|
2024-02-25 07:45:40 -05:00
|
|
|
"react-telephone-input": "4.75.5",
|
2023-01-25 22:15:54 -05:00
|
|
|
"react-test-renderer": "16.14.0",
|
2024-02-25 10:05:06 -05:00
|
|
|
"redux": "3.7.2",
|
2024-10-24 10:33:46 -04:00
|
|
|
"redux-mock-store": "1.5.5",
|
2024-02-27 18:54:16 -05:00
|
|
|
"redux-thunk": "2.4.2",
|
2021-11-08 11:53:10 -05:00
|
|
|
"regenerator-runtime": "0.13.9",
|
2024-11-04 18:19:45 -05:00
|
|
|
"sass": "1.80.6",
|
2024-01-07 11:47:08 -05:00
|
|
|
"sass-loader": "10.5.2",
|
2024-11-09 08:30:24 -05:00
|
|
|
"scratch-gui": "4.1.1",
|
2024-11-09 23:42:14 -05:00
|
|
|
"scratch-l10n": "4.0.18",
|
2024-11-02 09:38:51 -04:00
|
|
|
"selenium-webdriver": "4.26.0",
|
2024-02-25 13:22:18 -05:00
|
|
|
"slick-carousel": "1.8.1",
|
2024-01-18 16:03:34 -05:00
|
|
|
"stream-browserify": "3.0.0",
|
2024-07-17 07:38:10 -04:00
|
|
|
"style-loader": "4.0.0",
|
2021-01-20 10:24:38 -05:00
|
|
|
"tap": "14.11.0",
|
2024-01-18 15:17:58 -05:00
|
|
|
"url-loader": "3.0.0",
|
2024-01-23 14:13:13 -05:00
|
|
|
"use-onclickoutside": "0.4.1",
|
2024-11-04 06:11:08 -05:00
|
|
|
"webpack": "5.96.1",
|
2024-04-14 10:38:56 -04:00
|
|
|
"webpack-bundle-analyzer": "4.10.2",
|
2024-01-18 16:03:34 -05:00
|
|
|
"webpack-cli": "5.1.4",
|
2024-03-22 03:58:43 -04:00
|
|
|
"webpack-dev-middleware": "5.3.4",
|
2024-02-25 17:20:45 -05:00
|
|
|
"xhr": "2.6.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": [
|
2024-01-22 13:43:07 -05:00
|
|
|
"Chrome >= 63",
|
|
|
|
"Firefox >= 57",
|
|
|
|
"Edge >= 15",
|
|
|
|
"Safari >= 11",
|
|
|
|
"ChromeAndroid >= 63",
|
|
|
|
"ios_saf >= 11"
|
2022-02-14 10:17:39 -05:00
|
|
|
]
|
2015-09-02 15:08:58 -04:00
|
|
|
}
|