jah-compiler
simple coffee-script-redux organizer to compilations tasks
Last updated 6 years ago by jahpd .
CC-BY-SA · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jah-compiler 
SYNC missed versions from official npm registry.

Compiler

With this you can create files on fly or compile coffee to javascript files.

First intended to my own projects, but it help me to generate fast coffee and yaml files from command line (see program module)

Install and build

first download, and install packages; then run tests

$ mkdir compiler && cd compiler
$ npm install jahpd/compiler
$ npm install
$ npm test

this will generate some files; feel free to modify Cakefile!

Usage

//create a general file
date = new Date()
opt = {dest: path.join(__dirname, 'test.log'), data: "A simple log file\n"+date}
compile(opt, function(err, data){
	// TODO middleware to data...
	return data += "\n###Bye, Bye!"
})

I like use this in Cakefiles to build my coffee sources:

fs = require 'fs'
path = require 'path'
compile = require 'compiler'
		
task 'build', 'rebuild the custom source file', (options) ->	
	compile
		src: path.join __dirname, 'lib', 'src', 'myfile.coffee'
		dest: path.join __dirname, 'index.js'

Current Tags

  • 0.0.6                                ...           latest (6 years ago)

6 Versions

  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           7 years ago
  • 0.0.4                                ...           7 years ago
  • 0.0.3                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 6
Dependencies (2)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |