Giter VIP home page Giter VIP logo

pxt-blockly's Introduction

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

  • npm run build:core --closure-library to build blockly (install gulp if needed npm install -g gulp)

Update Blockly.d.ts

  • gulp typings to regenerate blockly.d.ts

Testing local changes in PXT

  • gulp publish --closure-library from the develop branch to generate the blockly-compressed, blocks-compressed, and typings files, and copy them to pxt-blockly
  • run gulp in pxt to rebuild the pxt blockly files
  • run pxt clean && pxt serve in the target directory (eg pxt-arcade, or pxt-minecraft)

This can be combined into one command (starting from the target directory):

cd ../pxt && gulp && cd ../pxt-arcade && pxt clean && pxt serve --rebundle

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 --closure-library 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.

License

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

New code is licensed under MIT.

pxt-blockly's People

Contributors

alschmiedt avatar anmatanm avatar beksomega avatar carlosperate avatar corydcode avatar daarond avatar drigz avatar duzc2 avatar edauterman avatar ericrosenbaum avatar espertus avatar guillaumejenkins avatar marisaleung avatar microsoftsam avatar neilfraser avatar nikerabbit avatar paulkaplan avatar picklesrus avatar quachtina96 avatar rachel-fenichel avatar riknoll avatar roboerikg avatar rschamp avatar samelhusseini avatar seanlip avatar shakao avatar siebrand avatar thisandagain avatar tmickel avatar translatewiki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.