{"_id":"@blockdia/scratch-blocks","name":"@blockdia/scratch-blocks","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@blockdia/scratch-blocks","version":"0.1.0","description":"Blockdia distribution of TurboWarp Scratch Blocks","author":{"name":"Massachusetts Institute of Technology"},"license":"GPL-3.0","homepage":"https://github.com/blockdia/scratch-blocks#readme","repository":{"type":"git","url":"git+https://github.com/blockdia/scratch-blocks.git"},"bugs":{"url":"https://github.com/blockdia/scratch-blocks/issues"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"./dist/vertical.js","browser":"./shim/vertical.js","scripts":{"deploy":"rimraf gh-pages/closure-library/scripts/ci/CloseAdobeDialog.exe && gh-pages -t -d gh-pages -m \"Build for $(git log --pretty=format:%H -n1) [skip ci]\"","build":"node universal-python.js build.py && webpack","prepack":"npm run build","test:unit":"node tests/jsunit/test_runner.js","test:lint":"eslint .","test:messages":"npm run translate && node i18n/test_scratch_msgs.js","test":"npm run test:messages && npm run test:unit","version":"json -f package.json -I -e \"this.repository.sha = '$(git log -n1 --pretty=format:%H)'\"","translate":"node i18n/js_to_json.js && node i18n/json_to_js.js","translate:sync:src":"tx-push-src scratch-editor blocks msg/json/en.json","translate:sync:translations":"node i18n/sync_tx_translations.js","translate:update":"npm run translate:sync:src && npm run translate:sync:translations"},"dependencies":{"exports-loader":"0.7.0","imports-loader":"0.8.0"},"devDependencies":{"async":"2.6.4","chromedriver":"^118.0.1","copy-webpack-plugin":"4.6.0","eslint":"4.19.1","event-stream":"3.3.5","gh-pages":"0.12.0","glob":"7.2.3","google-closure-compiler":"20180402.0.0","google-closure-library":"20190301.0.0","graceful-fs":"4.2.11","json":"9.0.6","rimraf":"2.7.1","scratch-l10n":"3.16.20231013034330","selenium-webdriver":"4.14.0","transifex":"1.6.6","uglifyjs-webpack-plugin":"1.3.0","webpack":"4.47.0","webpack-cli":"3.3.12","which":"^4.0.0"},"gitHead":"7c58de666658df1bb447d010132aa3914c10f41e","_id":"@blockdia/scratch-blocks@0.1.0","_nodeVersion":"24.18.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-v9bUcWWOGIRkgGxWKkLEuCAnqXGmmTTQjw6mUpFOm0OwB/PTL0++Hnjj63TaA8HDNzNQ4612TPDmomD5FOrBdg==","shasum":"515ad5981d9514b3549a877a588930261671ff33","tarball":"https://registry.npmjs.org/@blockdia/scratch-blocks/-/scratch-blocks-0.1.0.tgz","fileCount":243,"unpackedSize":15412162,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDXweOOxYMeWN28xmpbgARSkxk8uwtOIYfG/9bRTdN9bAiAZZibaHyE5VOYiNIpNZ6Q/mUtVadZsszyzSgHa9Nq91A=="}]},"_npmUser":{"name":"luyifei2011","email":"luyifei13@outlook.com"},"directories":{},"maintainers":[{"name":"luyifei2011","email":"luyifei13@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/scratch-blocks_0.1.0_1787797949513_0.14432526148041824"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-27T02:32:29.368Z","0.1.0":"2026-08-27T02:32:29.777Z","modified":"2026-08-27T02:32:30.050Z"},"maintainers":[{"name":"luyifei2011","email":"luyifei13@outlook.com"}],"description":"Blockdia distribution of TurboWarp Scratch Blocks","homepage":"https://github.com/blockdia/scratch-blocks#readme","repository":{"type":"git","url":"git+https://github.com/blockdia/scratch-blocks.git"},"author":{"name":"Massachusetts Institute of Technology"},"bugs":{"url":"https://github.com/blockdia/scratch-blocks/issues"},"license":"GPL-3.0","readme":"# @blockdia/scratch-blocks\n\nBlockdia's Scratch Blocks package, based on the TurboWarp fork. npm releases include generated build artifacts, so consumers do not need the former `develop-builds` branch.\n\nThe initial Blockdia `0.1.0` release is based on TurboWarp commit `7c58de666658df1bb447d010132aa3914c10f41e`.\n\n## Playgrounds\n\n - **Vertical blocks**: https://turbowarp.github.io/scratch-blocks/tests/vertical_playground_compressed.html\n\n## Local development\n\nRequires Node.js (16 or later), Python (2 or 3), and Java. It is known to work in these environments but should work in many others:\n\n - Windows 10, Python 3.12.1 (Microsoft Store), Node.js 20.10.0 (nodejs.org installer), Java 11 (Temurin-11.0.21+9)\n - macOS 14.2.1, Python 3.11.6 (Apple), Node.js 20.10.0 (installed manually), Java 21 (Temurin-21.0.1+12)\n - Ubuntu 22.04, Python 3.10.12 (python3 package), Node.js 20.10.0 (installed manually), Java 11 (openjdk-11-jre package)\n\nInstall dependencies:\n\n```sh\nnpm ci\n```\n\nOpen tests/vertical_playground.html in a browser for development. You don't need to rebuild compressed versions for most changes. Open tests/vertical_playground_compressed.html instead to test if the compressed versions built properly.\n\nTo re-build compressed versions, run:\n\n```sh\nnpm run prepublish\n```\n\nscratch-gui development server must be restarted to update linked scratch-blocks.\n\n<!--\n#### Scratch Blocks is a library for building creative computing interfaces.\n[![CircleCI](https://dl.circleci.com/status-badge/img/gh/LLK/scratch-blocks/tree/develop.svg?style=shield)](https://dl.circleci.com/status-badge/redirect/gh/LLK/scratch-blocks/tree/develop)\n\n![](https://cloud.githubusercontent.com/assets/747641/15227351/c37c09da-1854-11e6-8dc7-9a298f2b1f01.jpg)\n\n<!--\n## Introduction\nScratch Blocks is a fork of Google's [Blockly](https://github.com/google/blockly) project that provides a design specification and codebase for building creative computing interfaces. Together with the [Scratch Virtual Machine (VM)](https://github.com/LLK/scratch-vm) this codebase allows for the rapid design and development of visual programming interfaces. Unlike [Blockly](https://github.com/google/blockly), Scratch Blocks does not use [code generators](https://developers.google.com/blockly/guides/configure/web/code-generators), but rather leverages the [Scratch Virtual Machine](https://github.com/LLK/scratch-vm) to create highly dynamic, interactive programming environments.\n\n*This project is in active development and should be considered a \"developer preview\" at this time.*\n\n## Two Types of Blocks\n![](https://cloud.githubusercontent.com/assets/747641/15255731/dad4d028-190b-11e6-9c16-8df7445adc96.png)\n\nScratch Blocks brings together two different programming \"grammars\" that the Scratch Team has designed and continued to refine over the past decade. The standard [Scratch](https://scratch.mit.edu) grammar uses blocks that snap together vertically, much like LEGO bricks. For our [ScratchJr](https://scratchjr.org) software, intended for younger children, we developed blocks that are labelled with icons rather than words, and snap together horizontally rather than vertically. We have found that the horizontal grammar is not only friendlier for beginning programmers but also better suited for devices with small screens.\n\n## Documentation\nThe \"getting started\" guide including [FAQ](https://scratch.mit.edu/developers#faq) and [design documentation](https://github.com/LLK/scratch-blocks/wiki/Design) can be found in the [wiki](https://github.com/LLK/scratch-blocks/wiki).\n\n## Donate\nWe provide [Scratch](https://scratch.mit.edu) free of charge, and want to keep it that way! Please consider making a [donation](https://secure.donationpay.org/scratchfoundation/) to support our continued engineering, design, community, and resource development efforts. Donations of any size are appreciated. Thank you!\n-->\n","readmeFilename":"README.md","_rev":"1-e280c6b1a929a14970760cb9a0e5714a"}