grunt-yakjs
v1.0.0
Published
A grunt task to upload files to YAKjs.
Downloads
1
Readme
![Built with Grunt](https://img.shields.io/badge/built with-grunt-yellow.svg?style=flat-square)
grunt-yakjs
Installation via npm
npm install grunt-yakjs --save-dev
Configure grunt for example
grunt.initConfig({
yakjs: {
all: {
files: {
src: ['./stores/*.txt']
}
}
}
});
// Load all npm tasks.
grunt.loadTasks('./node_modules/grunt-yakjs');
// TASK: default
grunt.registerTask('default', 'yakjs');
Options
grunt.initConfig({
yakjs: {
options: {
host: 'localhost',
port: 8790,
startInstances: [
'instanceId
],
canClearModuleCache: true
},
all: {
files: {
src: ['./stores/*.txt']
}
}
}
});
host (default: localhost)
The hostname or IP of YAKjs. Per default YAKjs only allows local connections. So use localhost/127.0.0.1 or [::1]
port (default: 8790)
The API port of the YAKjs. The API port is the same port as the YAKjs user interface.
startInstances (default: [])
After uploading all files to YAKjs start this instances.
canClearModuleCache (default: true)
Clears the node plugin module cache before starting instances with startInstances