| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- module.exports = (grunt) ->
- grunt.initConfig
- pkg: grunt.file.readJSON "packages/lungo/component.json"
- meta:
- file: 'lungo'
- # BETA
- endpoint: "example/components",
- version: ".brownie",
- # RELEASE
- # endpoint: "packages",
- # version: "",
- banner: '/* <%= pkg.name %> v<%= pkg.version %> - <%= grunt.template.today("yyyy/m/d") %>\n' +
- ' <%= pkg.homepage %>\n' +
- ' Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>' +
- ' - Licensed <%= _.pluck(pkg.license, "type").join(", ") %> */\n'
- resources:
- core: ['src/Lungo.coffee']
- modules: [
- 'src/modules/Lungo.Attributes.coffee',
- 'src/modules/Lungo.Cache.coffee',
- 'src/modules/Lungo.Constants.coffee',
- 'src/modules/Lungo.Core.coffee',
- 'src/modules/Lungo.Dom.coffee',
- 'src/modules/Lungo.Events.coffee',
- 'src/modules/Lungo.Fallback.coffee',
- 'src/modules/Lungo.Init.coffee',
- 'src/modules/Lungo.Notification.coffee',
- 'src/modules/Lungo.Resource.coffee',
- 'src/modules/Lungo.Scroll.coffee',
- 'src/modules/Lungo.Service.coffee',
- 'src/modules/Lungo.Router.coffee',
- 'src/modules/Lungo.Aside.coffee',
- 'src/modules/Lungo.Section.coffee',
- 'src/modules/Lungo.Article.coffee',
- 'src/boot/*.coffee',
- 'src/element/*.coffee']
- javascripts: [
- 'build/*.js']
- stylesheets: [
- 'src/stylesheets/lungo.base.styl',
- 'src/stylesheets/lungo.layout.styl',
- 'src/stylesheets/lungo.layout.*.styl',
- 'src/stylesheets/lungo.widget.styl',
- 'src/stylesheets/lungo.widget.*.styl',
- 'src/stylesheets/lungo.media.*.styl']
- theme: [
- 'src/stylesheets/theme/*.styl']
- icons: [
- 'src/stylesheets/lungo.icon**.styl']
- coffee:
- compile:
- files:
- 'build/<%= meta.file %>.core.js': ['<%= resources.core %>']
- 'build/<%= meta.file %>.modules.js': ['<%= resources.modules %>']
- uglify:
- options:
- compress: false
- # beautify: true
- banner: '<%= meta.banner %>'
- endpoint:
- files: '<%=meta.endpoint%>/<%=meta.file%><%=meta.version%>/<%=meta.file%>.js': '<%=resources.javascripts %>'
- stylus:
- stylesheets:
- files: '<%=meta.endpoint%>/<%=meta.file%><%=meta.version%>/<%=meta.file%>.css': '<%=resources.stylesheets%>'
- theme:
- files: '<%=meta.endpoint%>/<%=meta.file%><%=meta.version%>/<%=meta.file%>.theme.css': '<%=resources.theme%>'
- icons:
- options: compress: false
- files: '<%=meta.endpoint%>/<%=meta.file%>.icon/<%=meta.file%>.icon.css': '<%=resources.icons%>'
- copy:
- theme:
- expand: true, flatten: true, src: '<%=resources.theme%>', dest: '<%=meta.endpoint%>/<%=meta.file%>.theme/'
- watch:
- files: ['<%= resources.core %>', '<%= resources.modules %>', '<%= resources.stylesheets %>', '<%= resources.theme %>']
- # tasks: ["coffee", "uglify", "stylus:stylesheets", "stylus:theme"]
- tasks: ["coffee", "uglify"]
- # tasks: ["stylus:stylesheets", "stylus:theme"]
- grunt.loadNpmTasks "grunt-contrib-coffee"
- grunt.loadNpmTasks "grunt-contrib-uglify"
- grunt.loadNpmTasks "grunt-contrib-stylus"
- grunt.loadNpmTasks "grunt-contrib-copy"
- grunt.loadNpmTasks "grunt-contrib-watch"
- grunt.registerTask "default", ["coffee", "uglify", "stylus", "copy"]
|