mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
4ceeebb257
Use src/index.js as the entry by default in tools building scratch-vm into a larger package. This saves file space by excluding extra webpack boilerplate and may allow for deeper optimizations. Depend on script dependencies for downstream webpack. For another package to build in scratch-vm's dependencies without them already being built into a consumed webpack build they need to be listed as dependencies. This can benefit large projects that reuse the same dependencies multiple times. Node will still use the main entry point and its webpack build leaves the dependencies as external references so it may reuse common modules in Node as well as in a build a browser environment.
78 lines
2.7 KiB
JSON
78 lines
2.7 KiB
JSON
{
|
|
"name": "scratch-vm",
|
|
"version": "0.1.0",
|
|
"description": "Virtual Machine for Scratch 3.0",
|
|
"author": "Massachusetts Institute of Technology",
|
|
"license": "BSD-3-Clause",
|
|
"homepage": "https://github.com/LLK/scratch-vm#readme",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+ssh://git@github.com/LLK/scratch-vm.git"
|
|
},
|
|
"main": "./dist/node/scratch-vm.js",
|
|
"browser": "./src/index.js",
|
|
"scripts": {
|
|
"build": "webpack --progress --colors --bail",
|
|
"coverage": "tap ./test/{unit,integration}/*.js --coverage --coverage-report=lcov",
|
|
"deploy": "touch playground/.nojekyll && gh-pages -t -d playground -m \"Build for $(git log --pretty=format:%H -n1)\"",
|
|
"extract:core": "mkdirp translations/core && format-message extract --out-file translations/core/en.json src/extensions/**/index.js",
|
|
"i18n:src": "npm run extract:core",
|
|
"lint": "eslint . && format-message lint src/**/*.js",
|
|
"prepublish": "in-publish && npm run build || not-in-publish",
|
|
"start": "webpack-dev-server",
|
|
"tap": "tap ./test/{unit,integration}/*.js",
|
|
"tap:unit": "tap ./test/unit/*.js",
|
|
"tap:integration": "tap ./test/integration/*.js",
|
|
"test": "npm run lint && npm run tap",
|
|
"watch": "webpack --progress --colors --watch",
|
|
"version": "json -f package.json -I -e \"this.repository.sha = '$(git log -n1 --pretty=format:%H)'\""
|
|
},
|
|
"dependencies": {
|
|
"arraybuffer-loader": "^1.0.3",
|
|
"decode-html": "2.0.0",
|
|
"diff-match-patch": "1.0.0",
|
|
"escape-html": "1.0.3",
|
|
"format-message": "5.2.1",
|
|
"htmlparser2": "3.9.2",
|
|
"immutable": "3.8.1",
|
|
"jszip": "^3.1.5",
|
|
"minilog": "3.1.0",
|
|
"nets": "3.2.0",
|
|
"scratch-parser": "4.1.1",
|
|
"socket.io-client": "2.0.4",
|
|
"text-encoding": "0.6.4",
|
|
"worker-loader": "^1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"adm-zip": "0.4.7",
|
|
"arraybuffer-loader": "^1.0.3",
|
|
"babel-core": "^6.24.1",
|
|
"babel-eslint": "^8.0.1",
|
|
"babel-loader": "^7.0.0",
|
|
"babel-preset-env": "^1.6.1",
|
|
"canvas-toBlob": "1.0.0",
|
|
"copy-webpack-plugin": "^4.5.1",
|
|
"eslint": "^4.5.0",
|
|
"eslint-config-scratch": "^5.0.0",
|
|
"expose-loader": "0.7.5",
|
|
"file-loader": "^1.1.6",
|
|
"format-message-cli": "5.2.1",
|
|
"gh-pages": "^1.1.0",
|
|
"in-publish": "^2.0.0",
|
|
"json": "^9.0.4",
|
|
"lodash.defaultsdeep": "4.6.0",
|
|
"pngjs": "^3.3.2",
|
|
"scratch-audio": "latest",
|
|
"scratch-blocks": "latest",
|
|
"scratch-render": "latest",
|
|
"scratch-storage": "^0.4.0",
|
|
"scratch-translate-extension-languages": "0.0.20180521154850",
|
|
"script-loader": "0.7.2",
|
|
"stats.js": "^0.17.0",
|
|
"tap": "^11.0.1",
|
|
"tiny-worker": "^2.1.1",
|
|
"webpack": "^4.8.0",
|
|
"webpack-cli": "^2.0.15",
|
|
"webpack-dev-server": "^3.1.3"
|
|
}
|
|
}
|