Skip to content

Commit

Permalink
compile less
Browse files Browse the repository at this point in the history
  • Loading branch information
purge committed Oct 25, 2013
1 parent 2e6650c commit 4da1321
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ cd example-widget
../node_modules/grunt-init/bin/grunt-init ../grunt-scaffold --yes
npm install
bower install
grunt requirejs-i18n
grunt build
1 change: 1 addition & 0 deletions grunt-scaffold/root/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
app/nls
app/lib
app/compiled
12 changes: 6 additions & 6 deletions grunt-scaffold/root/Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
module.exports = (grunt) ->

#grunt.loadNpmTasks 'grunt-contrib-clean'
#grunt.loadNpmTasks 'grunt-contrib-watch'
#grunt.loadNpmTasks 'grunt-contrib-connect'
#grunt.loadNpmTasks 'grunt-contrib-requirejs'
grunt.loadNpmTasks 'grunt-contrib-less'
grunt.loadTasks 'tasks'


grunt.initConfig

jshint:
Expand Down Expand Up @@ -44,6 +40,10 @@ module.exports = (grunt) ->
options:
src: 'app/i18n.yml'
dest: 'app/nls/'
less:
widget:
files:
"app/compiled/css/main.css": "app/less/main.less"

grunt.registerTask 'default', ['build', 'connect', 'watch']
grunt.registerTask 'build', ['requirejs']
grunt.registerTask 'build', ['less:widget', 'requirejs-i18n:widget']
2 changes: 1 addition & 1 deletion grunt-scaffold/root/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ define([
'Ractive',
'i18n!./nls/strings',
'./plugin/rv!./templates/index.html',
//'less!../less/main',
'css!./compiled/css/main',
], function(Ractive, strings, template ) {

var module = { views: {} };
Expand Down
3 changes: 2 additions & 1 deletion grunt-scaffold/root/package.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "{%= name %}",
"version": "{%= version %}",
"dependencies": {
"underscore": "~1.5.2"
"underscore": "~1.5.2",
"grunt-contrib-less": "~0.8.1"
}
}

0 comments on commit 4da1321

Please sign in to comment.