Skip to content

Commit

Permalink
Fix Rakefile by deleting refs to removed install tasks
Browse files Browse the repository at this point in the history
Previously when replacing dependency installation with `npm` rather than
`rake`, there were still install task references found in `Rakefile`
which should have been removed as well.

```
$ npm version patch
v2.3.1

...

npm ERR! > minifying `mustache.js`...
npm ERR! rake aborted!
npm ERR! Don't know how to build task 'install_uglify'
```

Those `install_*` tasks does not exist anymore, as installing those
dependencies are done with npm now.

Refs #666
  • Loading branch information
phillipj committed Aug 7, 2018
1 parent e443ada commit 2659301
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ def minified_file
end

desc "Run all tests"
task :test => :install_mocha do
task :test do
sh "./node_modules/.bin/mocha test"
end

desc "Make a compressed build in #{minified_file}"
task :minify => :install_uglify do
task :minify do
sh "./node_modules/.bin/uglifyjs mustache.js > #{minified_file}"
end

desc "Run JSHint"
task :hint => :install_jshint do
task :hint do
sh "./node_modules/.bin/jshint mustache.js"
end

Expand Down

0 comments on commit 2659301

Please sign in to comment.