0.8.24 • Published 9 years ago

cola-script v0.8.24

Weekly downloads
110
License
-
Repository
github
Last release
9 years ago

logo

ColaScript is the language that compiles into JavaScript. This language is similar to Dart, CoffeeScript, Python, Go and PHP, with some original ideas. Compiler based on UglifyJS2. You can try ColaScript here (stable) or here (dev). Learn more about ColaScript.

Installation

Firstly, make sure you have installed the latest version of node.js (You may need to restart your computer after this step).

From NPM for use as a command line app:

$ npm install cola-script -g

From NPM for programmatic use:

$ npm install cola-script

From Bower for using in browser:

$ bower install cola-script

From Git:

$ git clone git://github.com/TrigenSoftware/ColaScript.git
$ cd ColaScript
$ npm link .

Usage

Use it same as in UglifyJS2, except:

-j, --js, --javascript        Work with JavaScript (by default Cola will
                              expect ColaScript).                    [boolean]
-n, --node                    Enable compilation for node.           [boolean]
-P, --packages                Path to packages.json (packages.json by
                              default).                               [string]
-i, --ignore-main-wrapping    Ignore `main` wrapping.                [boolean]
--browser-cola                Build itself (Cola) for running Cola in browser.
                                                                     [boolean]

Simple example of usage:

$ cola main.cola -o main.min.js -m -c

In browser

During developing is more comfortable to compile the code directly in your browser, for that add browser-cola.js to your.html code:

<script src="path/to/browser-cola.js"></script>

Now you can run your Cola-Code:

<script type="text/colascript" src="path/to/your.cola"></script>

If your.cola depends on other scripts in your.html, it's better to notice browser-cola about it:

<script type="text/colascript" src="angular.min.js"></script>
<script type="text/colascript" src="path/to/your.cola"></script>
0.8.25

9 years ago

0.8.24

9 years ago

0.8.23

9 years ago

0.8.22

9 years ago

0.8.21

9 years ago

0.8.20

9 years ago

0.8.19

9 years ago

0.8.18

9 years ago

0.8.17

9 years ago

0.8.16

9 years ago

0.8.15

9 years ago

0.8.14

9 years ago

0.8.13

9 years ago

0.8.12

9 years ago

0.8.11

9 years ago

0.8.10

9 years ago

0.8.9

9 years ago

0.8.8

9 years ago

0.8.7

9 years ago

0.8.6

9 years ago

0.8.5

9 years ago

0.8.4

9 years ago

0.8.3

9 years ago

0.8.2

9 years ago

0.8.1

9 years ago

0.5.83

10 years ago

0.5.82

10 years ago

0.5.81

10 years ago

0.5.8

10 years ago

0.5.7

10 years ago

0.5.6

10 years ago

0.5.5

10 years ago

0.5.4

10 years ago

0.5.3

10 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago