
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
grunt-update
Advanced tools
Run only those tasks whose source files are more recent than their destination targets.
This is like grunt-contrib-watch, but suitable for repeated invocation from the command line. It also doesn't get out of date if files changed while it wasn't running.
This plugin requires Grunt ~0.4.x
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-update --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-update');
In your project's Gruntfile, add a section named update to the data object passed into grunt.initConfig().
grunt.initConfig({
update: {
tasks: ['task1', 'task2', 'task3']
},
})
There are three formats you can use to configure this task.
update: { tasks: ['copy', 'jade', 'sass'] }
This configures an update task that acts as though defined by:
grunt.registerTask 'update', ['copy', 'jade', 'sass']
except that each of the copy, jade, and sass tasks will be executed only if their respective destination files
either do not exist, or are out of date with respect to their source files.
update: {
app: ['copy:app', 'jade:app', 'sass:app']
libs: ['copy:libs', 'jade:libs', 'sass:libs']
}
This configures update:app and update:lib tasks. (update runs them both.)
update: {
app:
tasks: ['copy:app', 'jade:app', 'sass:app']
libs:
tasks: ['copy:libs', 'jade:libs', 'sass:libs']
}
Like the Medium format, this configures update:app and update:lib tasks (and update runs them both.)
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.
FAQs
Run only those tasks whose source files have changed.
We found that grunt-update demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.