@kano/kwc-blockly
Blockly based kano coding editor
Last updated a month ago by rpazdera .
Original npm · Tarball · package.json
$ cnpm install @kano/kwc-blockly 
SYNC missed versions from official npm registry.

<kwc-blockly>

[WIP] Reusable code editor based on Blockly that powers Kano Code

  • What is it called?
    • kwc-blockly
  • What is it made out of?
    • Polymer wrapper for a blockly instance. Uses a customized blockly and adds some features like the onibox
  • What variants are needed?
    • [TBD]
  • How does it scale?
    • Not targeted to small screens
  • What style variables are in use?
    • General colors (background, text colors)

Installation

Clone this repository. Run bower i

Usage

Blockly is installed under blockly_built, You will have to import the blockly library yourself as you can choose the compressed or uncompressed version and you can also choose the generators and language you want to use.

Create a HTML file to import the javascript from blockly_built, as it will deduplicate the import of these scripts:

<script src="/bower_components/kwc-blockly/blockly_built/blockly_compressed.js"></script>
<script src="/bower_components/kwc-blockly/blockly_built/blocks_compressed.js"></script>
<script src="/bower_components/kwc-blockly/blockly_built/msg/js/en.js"></script>
<script src="/bower_components/kwc-blockly/blockly_built/javascript_compressed.js"></script>
<link rel="import" href="/bower_components/kwc-blockly/kwc-blockly.html">

Then use this file to import <kwc-blockly> Wherever you want to use it

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your element locally.

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test --skip-plugin junit-reporter

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.

Building blockly

blockly and the closure-library from Google are submodules of this repository. This way, we keep a reference to the sources, and apply our changes on top of it.

To rebuild with patches applied, just run the build_blockly.sh script. It will copy the blockly sources, apply the patches from blockly_patches, rebuild blockly and export this into the blockly_built folder.

To update to a newer version of blockly, run git submodule update --remote to grab the latest changes from blockly and then rebuild with build_blockly.sh. This can and will most likely BREAK things as the patches rely on blockly's internal API to enhance it. Getting a newer version can lead to some work to adapt the changes.

Current Tags

  • 3.1.21                                ...           latest (a month ago)

60 Versions

  • 3.1.21                                ...           a month ago
  • 3.1.20                                ...           a month ago
  • 3.1.19                                ...           a month ago
  • 3.1.18                                ...           a month ago
  • 3.1.17                                ...           2 months ago
  • 3.1.17-beta.5                                ...           2 months ago
  • 3.1.17-beta.4                                ...           2 months ago
  • 3.1.17-beta.3                                ...           2 months ago
  • 3.1.17-beta.2                                ...           2 months ago
  • 3.1.17-beta                                ...           2 months ago
  • 3.1.16                                ...           2 months ago
  • 3.1.15                                ...           2 months ago
  • 3.1.14                                ...           2 months ago
  • 3.1.13                                ...           7 months ago
  • 3.1.12                                ...           8 months ago
  • 3.1.11                                ...           8 months ago
  • 3.1.10                                ...           8 months ago
  • 3.1.9                                ...           10 months ago
  • 3.1.8                                ...           a year ago
  • 3.1.7                                ...           a year ago
  • 3.1.6                                ...           a year ago
  • 3.1.5                                ...           a year ago
  • 3.1.4                                ...           a year ago
  • 3.1.3                                ...           a year ago
  • 3.1.2                                ...           a year ago
  • 3.1.1                                ...           a year ago
  • 3.1.0                                ...           2 years ago
  • 3.0.5                                ...           2 years ago
  • 3.0.4                                ...           2 years ago
  • 3.0.3                                ...           2 years ago
  • 3.0.2                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 3.0.0-beta.29                                ...           2 years ago
  • 3.0.0-beta.28                                ...           2 years ago
  • 3.0.0-beta.27                                ...           2 years ago
  • 3.0.0-beta.26                                ...           2 years ago
  • 3.0.0-beta.25                                ...           2 years ago
  • 3.0.0-beta.24                                ...           2 years ago
  • 3.0.0-beta.23                                ...           2 years ago
  • 3.0.0-beta.22                                ...           2 years ago
  • 3.0.0-beta.21                                ...           2 years ago
  • 3.0.0-beta.20                                ...           2 years ago
  • 3.0.0-beta.19                                ...           2 years ago
  • 3.0.0-beta.18                                ...           2 years ago
  • 3.0.0-beta.17                                ...           2 years ago
  • 3.0.0-beta.16                                ...           2 years ago
  • 3.0.0-beta.15                                ...           2 years ago
  • 3.0.0-beta.14                                ...           2 years ago
  • 3.0.0-beta.12                                ...           2 years ago
  • 3.0.0-beta.11                                ...           2 years ago
  • 3.0.0-beta.10                                ...           2 years ago
  • 3.0.0-beta.9                                ...           2 years ago
  • 3.0.0-beta.8                                ...           2 years ago
  • 3.0.0-beta.7                                ...           2 years ago
  • 3.0.0-beta.6                                ...           2 years ago
  • 3.0.0-beta.5                                ...           2 years ago
  • 3.0.0-beta.3                                ...           2 years ago
  • 3.0.0-beta.2                                ...           2 years ago
  • 3.0.0-beta.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 226
Dependencies (9)
Dev Dependencies (9)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |