bestikk-opal-compiler

A simple tool to compile Ruby code to JavaScript using Opal

MIT 24 个版本
安装
npm install bestikk-opal-compiler
yarn add bestikk-opal-compiler
pnpm add bestikk-opal-compiler
bun add bestikk-opal-compiler
README

Bestikk Opal Compiler

ifdef::env-github[] image:http://img.shields.io/travis/bestikk/bestikk-opal-compiler.svg[Travis build status, link=https://travis-ci.org/bestikk/bestikk-opal-compiler] image:http://img.shields.io/npm/v/bestikk-opal-compiler.svg[npm version, link=https://www.npmjs.org/package/bestikk-opal-compiler] endif::[]

A simple tool to compile Ruby code to JavaScript using Opal.

Install

$ npm i --save-dev bestikk-opal-compiler

Usage

var opalCompiler = require('bestikk-opal-compiler');

var compiler = opalCompiler({
  dynamicRequireLevel: 'ignore',
  defaultPaths: ['special/directory']
});
compiler.compile('hello.rb', 'hello.js'); // <1>
compiler.compile('module/hello', 'module.js', ['extra/directory']); // <2>

<1> Compile Ruby script hello.rb to hello.js <2> Compile Ruby module module/hello to module.js using an extra directory

版本列表
0.5.0 2017-11-06
0.4.0 2017-10-15
0.3.1-integration7 2018-03-08
0.3.0-integration8 2017-09-23
0.3.0-integration7 2017-06-22
0.3.0-integration6 2017-05-31
0.3.0-integration5 2017-03-13
0.3.0-integration4 2017-03-12
0.3.0-integration3 2017-03-06
0.3.0-integration2 2017-02-25
0.3.0-integration1 2017-01-16
0.2.3 2016-10-30
0.2.2 2016-10-30
0.2.2-integration1 2016-10-30
0.2.1 2016-10-30
0.2.0 2016-10-09
0.2.0-integration1 2016-10-09
0.1.5 2016-10-09
0.1.5-integration1 2016-10-09
0.1.4 2016-10-09
0.1.3 2016-10-09
0.1.2 2016-10-09
0.1.1 2016-10-09
0.1.0 2016-10-08