mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
f51cf9877e
* localize the block and menu strings in the pen extension * adds .tx/config to be able to push translations to transifex * includes format-message to localize strings and extracting them. * add setLocale function to VM to allow GUI to pass in locale data. * refresh block definitions when the locale changes. ### Still to be decided For now just extracting messages from the pen extension into their own file. We’ll need to decide if each category gets its own file, or group all the strings into one resource.
67 lines
2.4 KiB
JSON
67 lines
2.4 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": "./dist/web/scratch-vm.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:pen": "mkdirp translations/pen && format-message extract --out-file translations/pen/en.json src/extensions/scratch3_pen/index.js",
|
|
"i18n:src": "npm run extract:pen",
|
|
"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)'\""
|
|
},
|
|
"devDependencies": {
|
|
"adm-zip": "0.4.7",
|
|
"babel-core": "^6.24.1",
|
|
"babel-eslint": "^7.1.1",
|
|
"babel-loader": "^7.0.0",
|
|
"babel-preset-es2015": "^6.24.1",
|
|
"copy-webpack-plugin": "4.2.1",
|
|
"decode-html": "2.0.0",
|
|
"escape-html": "1.0.3",
|
|
"eslint": "^4.5.0",
|
|
"eslint-config-scratch": "^5.0.0",
|
|
"expose-loader": "0.7.4",
|
|
"format-message": "5.2.1",
|
|
"format-message-cli": "5.2.1",
|
|
"gh-pages": "^1.1.0",
|
|
"highlightjs": "^9.8.0",
|
|
"htmlparser2": "3.9.2",
|
|
"immutable": "3.8.1",
|
|
"in-publish": "^2.0.0",
|
|
"json": "^9.0.4",
|
|
"lodash.defaultsdeep": "4.6.0",
|
|
"minilog": "3.1.0",
|
|
"nets": "3.2.0",
|
|
"promise": "8.0.1",
|
|
"scratch-audio": "latest",
|
|
"scratch-blocks": "latest",
|
|
"scratch-render": "latest",
|
|
"scratch-storage": "^0.3.0",
|
|
"script-loader": "0.7.2",
|
|
"socket.io-client": "2.0.4",
|
|
"stats.js": "^0.17.0",
|
|
"tap": "^10.2.0",
|
|
"tiny-worker": "^2.1.1",
|
|
"webpack": "^2.4.1",
|
|
"webpack-dev-server": "^2.4.1",
|
|
"worker-loader": "1.1.0"
|
|
}
|
|
}
|