coffeekraken-compile-server
Provide a simple rest API for compiling js, coffee, sass, scss, etc... files through a node server
Last updated a year ago by coffeekraken .
MIT · Original npm · Tarball · package.json
$ cnpm install coffeekraken-compile-server 
SYNC missed versions from official npm registry.

Coffeekraken Compile Server

Provide a simple rest API for compiling js, coffee, sass, scss, etc... files through a node server

Table of content

  1. Install
  2. Get Started
  3. Documentatopm
  4. Contribute
  5. Who are Coffeekraken?
  6. Licence

Install

# using yarn
yarn add coffeekraken-compile-server --dev

# using npm
npm install coffeekraken-compile-server --save-dev

Get Started

Define a script inside your package.json to launch the compile server.

{
	"scripts": {
		"compile-server": "coffeekraken-compile-server [options]"
	}
}

Launch your compile server:

# using yarn
yarn run compile-server

# usin npm
npm run compile-server

Import the API into your javascript file like so:

import compileServer from 'coffeekraken-compile-server'

// make a js compilation
const myCoolJsCode = `
	console.log("hello world")
`
compileServer.compile(myCoolJsCode, 'js').then((compiledCode) => {
 	// do something here...
});

// make a scss compilation
const myCoolScssCode = `
	.hello {
		.world {
			background: red;
		}
	}
`
compileServer.compile(myCoolScssCode, 'scss').then((compiledCode) => {
 	// do something here...
});

Documentation

Here's the documentation list:

  • Setup : Setup the JS api
  • Compile : Send some code to the compile server
  • Settings : Available options

Contribute

This is an open source project and will ever be! You are more that welcomed to contribute to his development and make it more awesome every day. To do so, you have several possibilities:

  1. Share the love ❤️
  2. Declare issues
  3. Fix issues
  4. Add features
  5. Build web component

Who are Coffeekraken

We try to be some cool guys that build some cool tools to make our (and yours hopefully) every day life better.

More on who we are

License

The code is available under the MIT license. This mean that you can use, modify, or do whatever you want with it. This mean also that it is shipped to you for free, so don't be a hater and if you find some issues, etc... feel free to contribute instead of sharing your frustrations on social networks like an asshole...

Current Tags

  • 1.0.11                                ...           latest (a year ago)

12 Versions

  • 1.0.11                                ...           a year ago
  • 1.0.10                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (21)
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |