2bff2a22e0
refs https://github.com/TryGhost/Toolbox/issues/426 - we're going to need to support more complex combinations of dev commands soon, with other packages optionally running and env variables being altered - this command pulls out a lot of the dev env scripting into a single scripts - also cleans up the use of grunt-shell so we can remove the dependency
24 lines
727 B
JavaScript
24 lines
727 B
JavaScript
module.exports = function (grunt) {
|
|
// --- Configuration
|
|
grunt.initConfig({
|
|
// grunt-contrib-symlink
|
|
// Create symlink for git hooks
|
|
symlink: {
|
|
githooks: {
|
|
// Enable overwrite to delete symlinks before recreating them
|
|
overwrite: false,
|
|
// Enable force to overwrite symlinks outside the current working directory
|
|
force: false,
|
|
// Expand to all files in /hooks
|
|
expand: true,
|
|
cwd: '.github/hooks',
|
|
src: ['*'],
|
|
dest: '.git/hooks'
|
|
}
|
|
}
|
|
});
|
|
|
|
// Load all grunt tasks
|
|
grunt.loadNpmTasks('grunt-contrib-symlink');
|
|
};
|