coffee-script-source v2.0.0

Coffeescript source code for Crystal apps

CoffeeScript Source

This repository contains a basic Crystal shard that contains the raw javascript for the CoffeeScript compiler.

Most of this code was taken from Ruby's coffee-script-source's gem and Crystalized.

Installation

In your shard.yml:

dependencies:
  coffee-script-source:
    github: jessedoyle/coffee-script-source
    version: ~> 2.0

the execute shards install.

Usage

require "coffee-script-source"

CoffeeScript::Source.bundled_path    # => somewhere...
CoffeeScript::Source.bundled_version # => "X.X.X"

Notes

  • Currently, this shard supports the 1.X releases of CoffeeScript. PRs are welcome - please see the discussion here for context.

Maintenance

For future reference, when a new CoffeeScript version is released:

  1. Create a new branch on this repo, then checkout the created branch.
  2. From the repo's root directory execute: bin/build-coffee-script 1.x.x.
  3. Update the bundled_version static method in src/coffee_script_source.cr.
  4. Commit and merge as usual. Don't forget to add the correct release tags (eg. v1.10.0).

License

The MIT License. See LICENSE.md for details.

Repository

coffee-script-source

Owner
Statistic
  • 3
  • 3
  • 0
  • 1
  • 0
  • over 3 years ago
  • January 3, 2016
License

MIT License

Links
Synced at

Sun, 24 Nov 2024 20:15:36 GMT

Languages