npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@code-dot-org/blockly-core

v0.0.2

Published

Code.org fork of google/blockly for use within the Code Studio learning environment.

Downloads

9

Readme

Blockly Core (Code Studio fork)

This is a fork of Blockly, an open source visual programming environment.

Major additions and changes in this fork:

  • Modal editor for function blocks (function_editor.js)
  • Scrolling improvements:
  • New in-toolbox trashcan
  • Addition of "Functional blocks" and "Contract/Variable Editor" (contract_editor/) for use in the CS in Algebra curriculum
  • Support for "block limits" (block_limits.js), toolbox blocks which allow only a certain number of instances in the block space
  • Support for new block properties (block.js): invisible, un-deletable, immovable, specify-able via a context menu when Blockly.editBlocks is set
  • Structure: add folders in core/ to further categorize classes
  • New field types:
  • BlockSpace (Workspace) Refactoring:
    • moved many static properties and methods from blockly.js into a prototype class BlockSpaceEditor which can be instantiated multiple times on the same page
    • renamed Workspace to BlockSpace to disambiguate from higher-level BlockSpaceEditor
    • improved support for multiple blockspaces on a single page
  • Playground: add dependency cache and generation script (tests/update_test_dependencies.sh), to allow for testing changes without re-building
    • support for goog.ui.tweaks to configure playground page behavior
    • debug drawing helpers for block bumping
  • Support for a special UI for unattached blocks
  • Improvements to block arrangement on initialization
  • Testing: add phantomjs-based test runner test.sh. Tested in CI at root level of this repository.

Installation

cd blockly-core
npm install
./deploy.sh

Usage

Playground manual testing page

There is a playground manual testing page at tests/playground.html, which requires no build step or server running.

open tests/playground.html

Building with apps

This is the most typical use case for code-dot-org fork development.

Apps (aka Blockly apps) is a set of blockly apps built on top of blockly-core. Follow the building with core instructions in that repository to build blockly-core into apps.

Testing changes

There are a set of utility and integration tests included in tests/blockly_test.html, and a playground manual testing page at tests/playground.html.

After adding any new files, you will need to run ./update_test_dependencies.sh to update the test dependency map, which caches file dependencies so edits can be tested and played with without any re-build time.

There are three ways the test suites can be run:

  1. ./test.sh will run the tests in phantomjs
  2. To debug failures, you can open the test page in your browser, e.g. open tests/blockly_test.html
  3. ./deploy.sh will also run ./test.sh at the end of its full rebuild.
Other tests covering this package

Blockly apps contains many tests that target features of blockly-core in the context of the code.org curriculum apps.

Additionally, Dashboard's UI tests cover certain features of blockly-core through Cucumber / Selenium scenarios.