Initial Trial
hupili opened this issue · 4 comments
From, jekyll/jekyll#894
The place I get stuck.
$grunt
Running "livereload-start" task
... Starting Livereload server on 8080 ...
Running "connect:livereload" (connect) task
Starting connect web server on localhost:9000.
Running "jshint:all" (jshint) task
>> 1 file lint free.
Running "compass:dist" (compass) task
Warning: You need to have Ruby and Compass installed and in your system PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass Use --force to continue.
Aborted due to warnings.
There are so many stuffs I haven't seriously used before, node, grunt, sass, etc. I've already run npm with your provided pakcages.json
and also tried to get compass manually. It looks like the path problem on my MAC.
A quick note here. I'll come back when I have more time.
Incremental building will be a good feature!
I installed compass gem. The above problem is solved.
The position I can come so far:
$grunt
Running "livereload-start" task
... Starting Livereload server on 8080 ...
Running "connect:livereload" (connect) task
Starting connect web server on localhost:9000.
Running "jshint:all" (jshint) task
>> 1 file lint free.
Running "compass:dist" (compass) task
identical _site/assets/stylesheets/style.css
Running "uglify:dist" (uglify) task
Warning: Uglification failed. Use --force to continue.
If I use the --force
option, grunt runs and watches the changes. When I edit the index.md
under this project, it triggers some operations. However, I can not see built result in _site
or through the 8080
port (prompt by grunt from the shell).
Looks like it's hard for me to go further without studying how everything is put together.
p.s.1
The CLI output I get with --force
option
Running "uglify:dist" (uglify) task
Warning: Uglification failed. Used --force, continuing.
Warning: Cannot read property 'min' of undefined Used --force, continuing.
p.s.2 (for non-ruby player)
Run the following to install ruby dependencies. (I originally thought it only depends on nodejs modules and packages.json
has included everything)
gem install compass
gem install bootstrap-sass
@hupili did you check out the new readme ? I just finished yesterday. You just have to adjust the paths to your js files in gruntfile.js . I will change the js paths to be more generic today.
Uglify is trying to find your js files which it can't see. Please post your js files here and I will help you configure the gruntfile.js for uglify
@hupili bootstrap-sass is not needed I just left it there by accident I will update the repo today. Please try with the updated files once I have pushed the changes.
Hi, @jwebcat I just come back for this test.
The new repos works using grunt
. i.e. I issue grunt
and it watches the repo; I change index.md
and the changes are reflected in build/index.html
.
However, the Rakefile
does not work. Following is the trace output:
$rake list --trace
(in /Users/hupili/Desktop/project/rake-jekyll-grunt)
rake aborted!
wrong number of arguments (2 for 1)
/Users/hupili/Desktop/project/rake-jekyll-grunt/Rakefile:127:in `multitask'
/Users/hupili/Desktop/project/rake-jekyll-grunt/Rakefile:127
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2383:in `load'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2383:in `raw_load_rakefile'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2017:in `load_rakefile'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2016:in `load_rakefile'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2000:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:1998:in `run'
/usr/bin/rake:31
BTW, I'm not integrating this repo with my blog site. I'm at the preliminary stage of making it work on its own :).
ps. another dependency
gem install stringex