Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kano/code

Package Overview
Dependencies
Maintainers
14
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kano/code

## Usage

  • 3.0.0-rc.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
14
Created
Source

Kano Code

Usage

import { Editor } from '@kano/code/index.js';

const editor = new Editor({ sourceType: 'blockly' });

editor.inject(document.body);

Development

This project is going under a transition to TypeScript. The TypeScript compiler is setup to allow JavaScript files. If you are about to create a new file, create a TypeScript file instead of a JavaScript file. If you are about to make a lot of changes to a file, if possible, move it to TypeScript.

Setup

Install dependencies

yarn

watch

yarn tsc --watch

Serve

In a separate terminal

yarn serve

Browse the directories under examples to run the editor.

Test

While writing tests, run

yarn serve-test

And open the prompted URL to run your tests. You can click on a suite to only run that suite.

Documentation

Documentation is hosted at https://code-docs.kano.me. The website infrastructure is deployed using terraform. To update the infrastructure, change the files under terraform and run:

cd terraform
terraform init
terraform apply

The documentation is deployed by jenkins and scoped to the version in package.json

FAQs

Package last updated on 12 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc