front-render

0.1.2 • Public • Published

Front-render

front end assets compiler

Installation

$ npm i -g front-render
# or 
$ git clone https://github.com/rascada/front-render
cd front-render
~/front-render$ npm run init
# no matter which one you choose 
# from now you have command 
$ front-render

rendering single file

# front-render [engine] [input] [output] 
$ front-render babel views/main.js public/main.js
_
| 10/12/2015, 2:09:03 AM |front-render| public/main.js rendered with 'babel'
 
$ front-render stylus main.styl main.css
_

Available engines:

toRender.json

Setting up file with predefined files to render

[
  [ "stylus", "views/main.styl", "public/main.css" ],
  [ "babel", "views/main.js", "public/main.js" ],
]
# when toRender is not provided 
$ front-render
| 12/21/2015, 3:05:30 AM |front-render| toRender.json created
# will create toRender with empty array 

and using it

# compile files listed in toRender.json 
$ front-render
| 10/12/2015, 2:04:20 AM |front-render| looking for toRender.json in working directory
# watch and recompile on change 
$ front-render watch
_

up-render

a.k.a front-render-cli

Work in progress

Dependents (1)

Package Sidebar

Install

npm i front-render

Weekly Downloads

1

Version

0.1.2

License

UNLICENSED

Last publish

Collaborators

  • rascada