Skip to content

curdeveryday/pxt-blockly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4,435 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockly (Microsoft MakeCode fork)

This is a fork of Blockly, an open source visual programming environment. The fork is maintained by the Microsoft MakeCode team, and is used to power the blocks environment in PXT.

Major additions and changes in this fork:

Prerequisites

  • node, npm
  • python

Development

git clone https://github.com/google/closure-library
cd closure-library
git checkout v20180805
cd ../
git clone https://github.com/Microsoft/pxt-blockly
cd pxt-blockly
npm install .

Building

  • gulp build to build blockly (install gulp if needed npm install -g gulp)

Update Blockly.d.ts

  • gulp generate-dts to regenerate blockly.d.ts

Integrating local changes in PXT

  • gulp publish from the develop branch.

Make sure you've checked out the correct closure-library (see above)

See more tips about pxt+pxt-blockly testing.

Updating pxt-blockly in PXT

  • gulp bump to bump blockly version, commit, and tag.

  • After the Travis has deployed the package to npm, update the pxt-blockly version in package.json in the pxt repo.

Playground

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

open tests/playground.html

License

The original Google/Blockly is licensed under Apache License (Version 2.0).

New code is licensed under MIT.

About

Blockly (Microsoft MakeCode fork)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.9%
  • HTML 1.9%
  • Other 1.2%