Code Monkey home page Code Monkey logo

blockly's Introduction

Blockly

Google's Blockly is a web-based, visual programming editor. Users can drag blocks together to build programs. All code is free and open source.

The project page is https://developers.google.com/blockly/

You use this git repo to build the msg directory and the blockly-compressed.js for the Open-Roberta lab.

Build the Resources for the Open-Roberta Lab

On linux systems one possibility is

  • you have the closure-library next to this project (you need version 20200719.0.0)
  • you have installed the closure compiler via npm:
    • e.g. npm install --save google-closure-compiler
    • check the version: npx google-closure-compiler --version => v20200719
  • you have installed python 2.7 (:-<)
  • run the build.py script

A better solution on both linux and windows systems is

  • you have installed docker
  • docker run --mount type=bind,source=:your-blockly-git:,destination=/opt/blockly/blockly openroberta/blocklybuilder:1.0.0
  • in this case no python 2 installation, no closure compiler installation, no closure compiler resources

Workflow

  • you have cloned the blockly git https://github.com/OpenRoberta/blockly.git into :your-blockly-git:
  • you have a feature branch git checkout -b feature/myChanges
  • you edit a file in the blocks folder to add or change a blockly block and edit the file robMsg/robMessages.js to add or change a message and then re-build the resources. Use one of the possibilities described above. Never change a file in the msg folder, because these changes would be overwritten by the next build.
  • check your changes in the blockly playground found in the directory tests. One of the many playgrounds will fit your need. You may copy one and modify it. If you are satisfies with your results, continue.
  • try your results in the Open-Roberta lab: copy the msg directory and the blockly-compressed.js into :your-openroberta-lab-git:/OpenrobertaServer/staticResources/blockly. If you are satisfies with your results, continue.
  • rebase on master: git fetch;git rebase master
  • merge to master: git checkout master;git merge feature/myChanges;git push
  • later delete your feature branch git branch -d feature/myChanges
  • your changes to blockly are now persisted in the blockly repo and in your :your-openroberta-lab-git:. In the feature you'll commit these changes in the feature branch and eventually you'll merge your changes to develop.

Note, that the blockly repo only provides a master branch. There is no high traffix with this repo and thus it ok to simplify the repo structure.

blockly's People

Contributors

neilfraser avatar bjost2s avatar rachel-fenichel avatar boonto avatar cvejoski avatar elhele avatar espertus avatar janism91 avatar siebrand avatar daarond avatar nikerabbit avatar carlosperate avatar vinart avatar immortalin avatar picklesrus avatar bagridag avatar kaworru avatar drigz avatar trodi avatar miguel76 avatar dlaliberte avatar allisonshaw avatar pkendall64 avatar rbudde avatar carloslfu avatar timof1308 avatar techturtle11 avatar ranisputnik avatar pjkui avatar philippmaurer 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.