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",
|
2019-07-17 15:33:01 -04:00
|
|
|
"test:integration": "npm run test:integration:jest && npm run test:smoke",
|
2019-07-17 15:27:13 -04:00
|
|
|
"test:integration:jest": "jest ./test/integration/*.test.js",
|
2019-08-13 15:14:52 -04:00
|
|
|
"test:integration:remote": "npm run test:integration:jest:remote && npm run test:smoke:sauce",
|
2019-08-05 13:37:50 -04:00
|
|
|
"test:integration:jest:remote": "SMOKE_REMOTE=true jest ./test/integration/*.test.js",
|
2019-07-17 14:56:48 -04:00
|
|
|
"test:smoke": "tap ./test/integration-legacy/smoke-testing/*.js --timeout=3600 --no-coverage -R classic",
|
|
|
|
"test:smoke:verbose": "tap ./test/integration-legacy/smoke-testing/*.js --timeout=3600 --no-coverage -R spec",
|
|
|
|
"test:smoke:sauce": "SMOKE_REMOTE=true tap ./test/integration-legacy/smoke-testing/*.js --timeout=60000 --no-coverage -R classic",
|
2019-07-17 15:33:01 -04:00
|
|
|
"test:unit": "npm run test:unit:jest && npm run test:unit:tap",
|
2019-07-22 14:54:25 -04:00
|
|
|
"test:unit:jest": "jest ./test/unit/ && jest ./test/localization/*.test.js",
|
2019-07-17 14:56:48 -04:00
|
|
|
"test:unit:tap": "tap ./test/{unit-legacy,localization-legacy}/*.js --no-coverage -R classic",
|
|
|
|
"test:coverage": "tap ./test/{unit-legacy,localization-legacy}/*.js --coverage --coverage-report=lcov",
|
2019-08-12 15:12:08 -04:00
|
|
|
"build": "npm run clean && npm run translate && NODE_OPTIONS=--max_old_space_size=8000 webpack --bail",
|
2019-07-09 14:49:44 -04:00
|
|
|
"clean": "rm -rf ./build && rm -rf ./intl && mkdir -p build && mkdir -p intl",
|
2019-07-15 09:24:47 -04:00
|
|
|
"deploy": "npm run deploy:s3 && npm run deploy:fastly",
|
|
|
|
"deploy:fastly": "node ./bin/configure-fastly.js",
|
|
|
|
"deploy:s3": "npm run deploy:s3:all && npm run deploy:s3:svg && npm run deploy:s3:js",
|
|
|
|
"deploy:s3cmd": "s3cmd sync -P --delete-removed --add-header=Cache-Control:no-cache,public,max-age=3600",
|
2019-07-15 10:03:43 -04:00
|
|
|
"deploy:s3:all": "npm run deploy:s3cmd -- --exclude '.DS_Store' --exclude '*.svg' --exclude '*.js' ./build/ s3://$S3_BUCKET_NAME/",
|
|
|
|
"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/",
|
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",
|
|
|
|
"url": "git+ssh://git@github.com/llk/scratch-www.git"
|
|
|
|
},
|
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": {
|
|
|
|
"url": "https://github.com/llk/scratch-www/issues"
|
|
|
|
},
|
|
|
|
"homepage": "https://github.com/llk/scratch-www#readme",
|
2015-09-04 01:26:56 -04:00
|
|
|
"dependencies": {
|
2019-02-11 09:53:54 -05:00
|
|
|
"@sentry/browser": "4.4.2",
|
|
|
|
"bunyan": "1.7.1",
|
2018-11-21 13:12:09 -05:00
|
|
|
"clipboard-copy": "2.0.1",
|
2019-02-11 09:53:54 -05:00
|
|
|
"compression": "1.6.1",
|
|
|
|
"express": "4.16.1",
|
|
|
|
"express-http-proxy": "1.1.0",
|
|
|
|
"lodash.defaults": "4.0.1",
|
|
|
|
"newrelic": "1.25.4",
|
2018-12-12 11:04:25 -05:00
|
|
|
"react-helmet": "5.2.0",
|
2019-03-18 17:06:36 -04:00
|
|
|
"scratch-parser": "^5.0.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"scratch-storage": "^0.5.1"
|
2015-09-04 01:26:56 -04:00
|
|
|
},
|
2015-09-02 15:08:58 -04:00
|
|
|
"devDependencies": {
|
2019-02-11 09:53:54 -05:00
|
|
|
"ajv": "6.4.0",
|
2019-07-12 11:56:34 -04:00
|
|
|
"async": "3.1.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"autoprefixer": "6.3.6",
|
2018-01-30 11:53:12 -05:00
|
|
|
"babel-cli": "6.26.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"babel-core": "6.23.1",
|
2019-08-25 17:39:58 -04:00
|
|
|
"babel-eslint": "10.0.3",
|
2019-02-11 09:53:54 -05:00
|
|
|
"babel-loader": "7.1.0",
|
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",
|
2019-02-11 09:53:54 -05:00
|
|
|
"babel-preset-es2015": "6.22.0",
|
|
|
|
"babel-preset-react": "6.22.0",
|
|
|
|
"bowser": "1.9.4",
|
2018-01-09 12:55:36 -05:00
|
|
|
"cheerio": "1.0.0-rc.2",
|
2019-08-05 13:34:30 -04:00
|
|
|
"chromedriver": "76.0.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"classnames": "2.2.5",
|
|
|
|
"cookie": "0.2.2",
|
|
|
|
"copy-webpack-plugin": "0.2.0",
|
|
|
|
"create-react-class": "15.6.2",
|
|
|
|
"css-loader": "0.23.1",
|
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",
|
2018-01-30 11:53:12 -05:00
|
|
|
"eslint-config-scratch": "5.0.0",
|
2018-03-22 15:01:51 -04:00
|
|
|
"eslint-plugin-cypress": "^2.0.1",
|
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",
|
2019-02-11 09:53:54 -05:00
|
|
|
"exenv": "1.2.0",
|
|
|
|
"fastly": "1.2.1",
|
2019-06-05 09:04:30 -04:00
|
|
|
"file-loader": "4.0.0",
|
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",
|
2019-10-18 20:17:12 -04:00
|
|
|
"google-libphonenumber": "3.2.6",
|
2019-02-11 09:53:54 -05:00
|
|
|
"html-webpack-plugin": "2.22.0",
|
|
|
|
"iso-3166-2": "0.4.0",
|
2019-07-17 15:27:13 -04:00
|
|
|
"jest": "^23.6.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"json-loader": "0.5.2",
|
2015-10-15 23:01:58 -04:00
|
|
|
"json2po-stream": "1.0.3",
|
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",
|
2019-02-11 09:53:54 -05:00
|
|
|
"lodash.clone": "3.0.3",
|
|
|
|
"lodash.defaultsdeep": "3.10.0",
|
|
|
|
"lodash.isarray": "3.0.4",
|
|
|
|
"lodash.merge": "3.3.2",
|
2019-01-10 10:46:01 -05:00
|
|
|
"lodash.mergewith": "4.6.1",
|
2019-02-11 09:53:54 -05:00
|
|
|
"lodash.omit": "3.1.0",
|
2019-04-20 12:39:11 -04:00
|
|
|
"lodash.range": "3.2.0",
|
2019-01-10 13:49:07 -05:00
|
|
|
"lodash.uniqby": "4.7.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"minilog": "2.0.8",
|
|
|
|
"node-dir": "0.1.16",
|
|
|
|
"node-sass": "4.6.1",
|
|
|
|
"pako": "0.2.8",
|
2016-05-13 15:15:51 -04:00
|
|
|
"po2icu": "0.0.2",
|
2019-02-11 09:53:54 -05:00
|
|
|
"postcss-loader": "2.0.10",
|
|
|
|
"prop-types": "15.6.0",
|
2019-11-22 12:15:44 -05:00
|
|
|
"query-string": "^5.1.1",
|
2019-02-11 09:53:54 -05:00
|
|
|
"react": "16.2.0",
|
|
|
|
"react-dom": "16.2.0",
|
2019-04-17 11:43:35 -04:00
|
|
|
"react-intl": "2.8.0",
|
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",
|
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",
|
|
|
|
"redux": "3.5.2",
|
2019-09-04 22:54:49 -04:00
|
|
|
"redux-mock-store": "^1.2.3",
|
2019-02-11 09:53:54 -05:00
|
|
|
"redux-thunk": "2.0.1",
|
|
|
|
"sass-loader": "6.0.6",
|
2020-03-31 08:15:11 -04:00
|
|
|
"scratch-gui": "0.1.0-prerelease.20200325184934",
|
|
|
|
"scratch-l10n": "latest",
|
2019-07-17 14:56:48 -04:00
|
|
|
"selenium-webdriver": "3.6.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"slick-carousel": "1.6.0",
|
|
|
|
"source-map-support": "0.3.2",
|
|
|
|
"style-loader": "0.12.3",
|
2019-06-03 16:21:42 -04:00
|
|
|
"tap": "14.2.0",
|
2019-11-21 11:19:54 -05:00
|
|
|
"url-loader": "2.3.0",
|
2019-02-11 09:53:54 -05:00
|
|
|
"watch": "0.16.0",
|
|
|
|
"webpack": "2.7.0",
|
|
|
|
"webpack-dev-middleware": "2.0.4",
|
|
|
|
"xhr": "2.2.0"
|
2016-10-23 18:08:13 -04:00
|
|
|
},
|
2019-07-31 17:35:57 -04:00
|
|
|
"jest": {
|
|
|
|
"setupFiles": [
|
|
|
|
"<rootDir>/test/helpers/enzyme-setup.js"
|
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"
|
|
|
|
}
|
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
|
2015-09-02 15:08:58 -04:00
|
|
|
}
|
|
|
|
}
|