Skip to content

Instantly share code, notes, and snippets.

@xasima
Last active December 30, 2015 11:49
Show Gist options
  • Select an option

  • Save xasima/7825313 to your computer and use it in GitHub Desktop.

Select an option

Save xasima/7825313 to your computer and use it in GitHub Desktop.
The log of testing the `grunt server` command when using yoman's generator-closure
weblab@devbox:~/projects$ grunt --version
grunt-cli v0.1.11
weblab@devbox:~/projects$ yo --version
1.0.4
weblab@devbox:~/projects/closure-test$ node --version
v0.8.26
weblab@devbox:~/projects/closure-test$ npm --version
1.3.0
weblab@devbox:~/projects/closure-test$ bower --version
1.2.8
weblab@devbox:~/projects$ npm ls -g | grep generator-
├─┬ generator-angular@0.6.0-rc.2
├─┬ generator-closure@0.1.12
├─┬ generator-karma@0.6.0
weblab@devbox:~/projects$ mkdir closure-test && cd $_
weblab@devbox:~/projects/closure-test$ yo closure
...
weblab@devbox:~/projects/closure-test$ bower install closure-library
git init && git add . && git commit -am "Initial commit"
vi Gruntfiles.js
weblab@devbox:~/projects/closure-test$ git diff
diff --git a/Gruntfile.js b/Gruntfile.js
index 3e95cc6..26552dc 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -26,7 +26,7 @@ module.exports = function (grunt) {
entryPoint: 'app',
// The path to the closure library
- closureLibrary: process.env.CLOSURE_PATH || 'app/closure-library',
+ closureLibrary: process.env.CLOSURE_PATH || 'app/components/closure-library
// The path to the closure linter.
closureLinter: 'app/closure-linter/closure_linter',
weblab@devbox:~/projects/closure-test$ sudo npm install && bower install
weblab@devbox:~/projects/closure-test$ grunt clean
Running "clean:dist" (clean) task
Running "clean:server" (clean) task
Done, without errors.
weblab@devbox:~/projects/closure-test$
grunt server --stack -v --debug
Initializing
Command-line options: --stack, --verbose, --debug=1
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Registering "grunt-contrib-watch" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-contrib-watch/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-contrib-watch/package.json...OK
Loading "watch.js" tasks...OK
+ watch
Registering "grunt-closure-tools" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-closure-tools/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-closure-tools/package.json...OK
Loading "closureBuilder.js" tasks...OK
+ closureBuilder
Loading "closureCompiler.js" tasks...OK
+ closureCompiler
Loading "closureDepsWriter.js" tasks...OK
+ closureDepsWriter
Loading "closureTools.js" tasks...OK
+ closureBuilder, closureCompiler, closureDepsWriter
Registering "grunt-contrib-clean" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-contrib-clean/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-contrib-clean/package.json...OK
Loading "clean.js" tasks...OK
+ clean
Registering "grunt-contrib-concat" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-contrib-concat/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-contrib-concat/package.json...OK
Loading "concat.js" tasks...OK
+ concat
Registering "grunt-contrib-copy" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-contrib-copy/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-contrib-copy/package.json...OK
Loading "copy.js" tasks...OK
+ copy
Registering "grunt-open" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-open/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-open/package.json...OK
Loading "open.js" tasks...OK
+ open
Registering "grunt-contrib-htmlmin" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-contrib-htmlmin/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-contrib-htmlmin/package.json...OK
Loading "htmlmin.js" tasks...OK
+ htmlmin
Registering "grunt-contrib-uglify" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-contrib-uglify/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-contrib-uglify/package.json...OK
Loading "uglify.js" tasks...OK
+ uglify
Registering "grunt-contrib-cssmin" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-contrib-cssmin/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-contrib-cssmin/package.json...OK
Loading "cssmin.js" tasks...OK
+ cssmin
Registering "grunt-contrib-connect" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-contrib-connect/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-contrib-connect/package.json...OK
Loading "connect.js" tasks...OK
+ connect
Registering "grunt-contrib-imagemin" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-contrib-imagemin/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-contrib-imagemin/package.json...OK
Loading "imagemin.js" tasks...OK
+ imagemin
Registering "grunt-closure-linter" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-closure-linter/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-closure-linter/package.json...OK
Loading "closure_fixstyle.js" tasks...OK
+ closureFixStyle
Loading "closure_lint.js" tasks...OK
+ closureLint
Registering "grunt-mocha" local Npm module tasks.
Reading /home/weblab/projects/closure-test/node_modules/grunt-mocha/package.json...OK
Parsing /home/weblab/projects/closure-test/node_modules/grunt-mocha/package.json...OK
Growl not found, 'npm install growl' for Growl supportLoading "mocha.js" tasks...OK
+ mocha
Initializing config...OK
Loading "Gruntfile.js" tasks...OK
+ build, default, deps, fixstyle, lint, server, test
Running tasks: server
Running "server" task
[D] Task source: /home/weblab/projects/closure-test/Gruntfile.js
Running "clean:server" (clean) task
[D] Task source: /home/weblab/projects/closure-test/node_modules/grunt-contrib-clean/tasks/clean.js
Verifying property clean.server exists in config...OK
Files: [no src] -> server
Options: force=false, no-write=false
Options: force=false, no-write=false
Running "connect:app" (connect) task
[D] Task source: /home/weblab/projects/closure-test/node_modules/grunt-contrib-connect/tasks/connect.js
Verifying property connect.app exists in config...OK
File: [no files]
Options: protocol="http", port=9000, hostname="localhost", base=".", directory=null, keepalive=false, debug=false, livereload=false, open=false, middleware=undefined
Started connect web server on 127.0.0.1:9000.
Running "open:server" (open) task
[D] Task source: /home/weblab/projects/closure-test/node_modules/grunt-open/tasks/open.js
Verifying property open.server exists in config...OK
File: [no files]
Running "watch:livereload" (watch) task
[D] Task source: /home/weblab/projects/closure-test/node_modules/grunt-contrib-watch/tasks/watch.js
Waiting...Verifying property watch exists in config...OK
Verifying property watch.livereload.files exists in config...OK
Live reload server started on port: 35729
Watching app/js/app/showcase-debug.js for changes.
Watching app/js/app/ui-events.js for changes.
Watching app/js/core/core.js for changes.
Watching app/js/core/exports.js for changes.
Watching app/js/core/response.core.js for changes.
Watching app/js/deps.js for changes.
Watching app/js/libs for changes.
Watching app/js/app for changes.
Watching app/js/structs for changes.
Watching app/js/core for changes.
Watching app/js/network for changes.
Watching app/js/vendor for changes.
Watching app/js/main.js for changes.
Watching app/js/libs/invocator.js for changes.
Watching app/js/libs/module.js for changes.
Watching app/js/libs/vendor.loader.js for changes.
Watching app/js/network/ajax.js for changes.
Watching app/js/network/response.sync.js for changes.
Watching app/js/network/sync.js for changes.
Watching app/js/vendor/when.js for changes.
[D] server GET / 200 1752 - 2 ms
[D] server GET /closure-library/closure/goog/base.js 404 - - 3 ms
[D] server GET /js/deps.js 200 1830 - 4 ms
[D] server GET /js/main.js 200 202 - 3 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment