Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
/ node-tasky Public archive

A simple JS and SCSS/CSS compiler and minifier.

License

Notifications You must be signed in to change notification settings

ticdenis/node-tasky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tasky

A simple JS and LESS/SCSS/CSS compiler and minifier.

Installation

npm i -D node-tasky

Documentation

  • Compile and minify JS.

    watchJS(output: string, input?: string[], options?: Object): void;

  • Compile and minify LESS/SCSS/CSS.

    watchCSS(output: string, input?: string[], options?: Object): void;

Usage

const tasky = require('node-tasky');

tasky.watchJS('dist/scripts.min.js', [
  'assets/js/file1.js',
  'assets/js/file2.js',
  'assets/js/file3.js'
]);

tasky.watchCSS('dist/styles.min.css', [
  'assets/less/file1.less',
  'assets/scss/file1.scss',
  'assets/scss/file2.scss',
  'assets/css/file1.css',
  'assets/css/file2.css'
]);

In progress

  • Minify HTML.

  • JS ES6/ES7 to ES5 with Babel.

  • TS to ES5 with TypeScript.

  • Support for multiples outputs, inputs and options.

License

MIT