Skip to content

Instantly share code, notes, and snippets.

@watilde
Created June 5, 2014 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save watilde/9b8611f13f252931488c to your computer and use it in GitHub Desktop.
Save watilde/9b8611f13f252931488c to your computer and use it in GitHub Desktop.
$ node -v
v0.10.12

$ ls -lh
total 2047472
-rw-r--r--  1 watilde  staff   130B Jun  5 11:11 Gruntfile.js
-rw-r--r--  1 watilde  staff   1000 Jun  5 11:30 foo.txt

$ du -h
1000M	.

$ cat Gruntfile.js
module.exports = function(grunt) {
  grunt.registerTask('default', function (){
    grunt.file.copy('foo.txt','bar.txt')
  });
};

$ grunt --verbose
Initializing
Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.
Loading "Gruntfile.js" tasks...OK
+ default

No tasks specified, running default tasks.
Running tasks: default

Running "default" task
Reading foo.txt...OK
Writing bar.txt...OK

Done, without errors.

$ ls -lh
total 4094936
-rw-r--r--  1 watilde  staff   130B Jun  5 11:11 Gruntfile.js
-rw-r--r--  1 watilde  staff   1000 Jun  5 11:33 bar.txt
-rw-r--r--  1 watilde  staff   1000 Jun  5 11:30 foo.txt

$ du -h
2.0G	.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment