Socket
Book a DemoInstallSign in
Socket

grunt-touch

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-touch

Touch files

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

grunt-touch

Touch files

A grunt wrapper for node-touch.

Install

npm install grunt-touch --save-dev

Usage

grunt.loadNpmTasks('grunt-touch');

grunt.initConfig({
  touch: ['file.js'],
});

Examples

Match existing files

grunt.loadNpmTasks('grunt-touch');

grunt.initConfig({
  touch: {
    options: {
      match: true,
    },
    target: ['match_*.js'],
  },
});

Custom date

grunt.loadNpmTasks('grunt-touch');

grunt.initConfig({
  touch: {
    options: {
      time: Date.now() + 5000, // Set time to 5 seconds in the future
    },
    target: ['file.js'],
  },
});

Options

See node-touch options.

Additionally the following option is supported:

match

Type: Boolean Default value: false

By default a list of file paths is expected - those files will be touched. If you want to match the files by using patterns instead, set match to true.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

License

Copyright (c) 2013 Paul Spencer. Copyright (c) 2016 Rafał Ruciński. Licensed under the MIT license.

Keywords

gruntplugin

FAQs

Package last updated on 27 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts