Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

task

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

task - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

.travis.yml

65

package.json
{
"name": "task",
"description": "The canonical node-task generator.",
"version": "0.1.0",
"author": "Tyler Kellen",
"homepage": "http://tkellen.com/",
"repository": {
"type": "git",
"url": "git://github.com/node-task/task.git"
"version": "1.0.0",
"main": "src/index.js",
"bin": {
"task": "bin/cmd.js"
},
"bugs": {
"url": "http://github.com/node-task/task/issues"
},
"licenses": [
{
"type": "MIT",
"url": "http://github.com/node-task/task/blob/master/LICENSE"
}
],
"scripts": {
"test": "grunt test"
"test": "node test | tap-difflet",
"version-commit": "npm --no-git-tag-version version $(node -pe \"require('./package.json').version.split('-')[0]\")-$(git log -n 1 --pretty=format:'%H')",
"publish-branch": "npm run version-commit && npm publish --tag $(git rev-parse --abbrev-ref HEAD | sed 's/\\//-/g')",
"dev": "nodemon test/index.js --ignore files/ | tap-difflet"
},
"main": "lib/task",
"keywords": [
"node-task"
],
"dependencies": {
"stamp": "^4.0.0",
"builder-boy": "latest",
"chalk": "^1.1.3",
"chokidar": "^1.6.1",
"detect-import-require": "^2.0.0",
"hub.js": "latest",
"is-builtin-module": "^1.0.0",
"node-fetch": "^2.0.0-alpha.3",
"promise-polyfill": "^6.0.2",
"read-pkg-up": "^2.0.0",
"resolve": "^1.2.0",
"rollup": "^0.41.4",
"rollup-plugin-buble": "^0.15.0",
"rollup-plugin-commonjs": "^7.0.0",
"rollup-plugin-node-resolve": "^2.0.0",
"rollup-plugin-sourcemaps": "^0.4.1",
"whatwg-fetch": "^2.0.2"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-watch": "~0.4.4",
"grunt-contrib-jshint": "~0.4.1",
"grunt-contrib-nodeunit": "~0.1.2",
"recordio-file": "~0.1.0"
},
"dependencies": {
"when": "~2.0.0",
"ensure-array": "0.0.5",
"lodash": "~1.1.1",
"eventemitter2": "~0.4.11",
"extruder": "~0.1.0"
"nodemon": "^1.11.0",
"pre-commit": "^1.2.2",
"standard": "^8.6.0",
"tap-difflet": "^0.7.0",
"tape": "4.6.3"
}
}
# task
> The canonical node-task generator.
Run tasks.
Docs to follow when [node-task](http://github.com/node-task/spec) spec is complete.
Usage
```js
var Task = require('task');
var config = {
option: true,
flat: false
};
var input = [
{ src: ['input1', 'input1', 'input3'] }
];
var LogInputs = Task.extend({
name: 'loginputs',
description: 'log each source to console',
map: function (config, source) {
console.log(source);
return source;
task.set({
tasks: {
inject: [
require('task/packages/task-build-js')
],
'build-my-file': {
type: 'build-js',
options: {
entry: 'my-file/index.js',
dest: 'my-file/build.js'
},
watch: true
}
}
});
var loginputs = new LogInputs();
loginputs.run(config, input);
var ConcatInputs = Task.extend({
name: 'concatinputs',
description: 'concat all sources',
reduce: function(config, sources, dest) {
return sources.join("+");
}
});
var concatinputs = new ConcatInputs();
concatinputs.run(config, input).then(function(result) {
console.log(result);
});
```
})
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc