Registry / devops / node-tasky

node-tasky

JSON →
library1.4.1jsnpmunverified

A build tool for compiling and minifying JavaScript, LESS, SCSS, and CSS files, version 1.4.1. It provides simple `watchJS` and `watchCSS` functions for development workflows. Unlike Gulp or Webpack, it offers a minimal API for quick setup without configuration files. The project is in active development with planned features like Babel transpilation and TypeScript support.

npm install node-tasky
INSTALL
IMPORT
SIG · NODE-TASKY
N
node-tasky
devopsjavascriptv1.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
const tasky = require('node-tasky');
import tasky from 'node-tasky';
Package uses CommonJS, not ESM. Use require().
watchJS
tasky.watchJS('output.js', ['input1.js', 'input2.js']);
tasky.watchJS(['input1.js'], 'output.js');
First argument is output file, second is array of inputs.
watchCSS
tasky.watchCSS('output.css', ['input.scss', 'input.less']);
tasky.watchCSS('output.css', 'input.scss');
Input must be an array even for a single file.

Compiles and minifies JavaScript and SCSS files into single output files.

const tasky = require('node-tasky'); tasky.watchJS('dist/scripts.min.js', ['src/file1.js', 'src/file2.js']); tasky.watchCSS('dist/styles.min.css', ['src/style.scss']);
Debug
Known issues
gotchaInput files must be passed as an array even for a single file.
fix
Wrap single file in an array: ['file.js']
affects: >=1.0.0
gotchaOutput path is first argument, contrary to many build tools.
fix
Call watchJS('output.js', ['input.js']) not watchJS(['input.js'], 'output.js')
affects: >=1.0.0
breakingPackage renamed from 'tasky' to 'node-tasky' after v1.0.0.
fix
Install as npm i -D node-tasky instead of npm i -D tasky
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'node-tasky'
Package not installed or installed as dev dependency without -D
fix
Run: npm i -D node-tasky
TypeError: tasky.watchJS is not a function
Incorrect import (ESM import used instead of require)
fix
Use: const tasky = require('node-tasky');
Error: Input must be an array
Passed a string instead of array for input files
fix
Wrap input in array: ['file.js']
Upgrade
Version history
1.4.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
node-tasky — npm install node-tasky · libregistry