diff --git a/Gruntfile.js b/Gruntfile.js index 7f110f7..41aa4e7 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -24,6 +24,19 @@ module.exports = function(grunt) { } } }, + less: { + greeneyes: { + options: { + paths: ["<%= paths.src %>/less"], + // yuicompress: true, + // compress: true, + cleancss: true + }, + files: { + "<%= paths.build %>/css/greeneyes.css": "./src/less/greeneyes.less" + } + } + }, uglify: { options: { preserveComments: false @@ -44,6 +57,7 @@ module.exports = function(grunt) { }); grunt.registerTask('default', [ + 'less', 'requirejs', 'uglify' ]); diff --git a/bower.json b/bower.json index bcfc27a..cae5f78 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "greeneyes", - "version": "0.1.1", + "version": "0.1.2", "authors": [ { "name": "Jimmy Ha", diff --git a/build/css/greeneyes.css b/build/css/greeneyes.css new file mode 100644 index 0000000..58d59d6 --- /dev/null +++ b/build/css/greeneyes.css @@ -0,0 +1 @@ +[data-module=parallax_scroll]{background-attachment:fixed} \ No newline at end of file diff --git a/package.json b/package.json index 873d3ab..94ac3fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "greeneyes", - "version": "0.1.1", + "version": "0.1.2", "description": "AMD Javascript library of utility modules made for RequireJS", "main": "index.html", "scripts": { @@ -32,6 +32,7 @@ "homepage": "https://github.com/herereadthis/greeneyes", "devDependencies": { "grunt": "^0.4.5", + "grunt-contrib-less": "^0.11.1", "grunt-contrib-requirejs": "^0.4.4", "grunt-contrib-uglify": "^0.5.0", "grunt-contrib-watch": "^0.6.1", diff --git a/src/less/greeneyes.less b/src/less/greeneyes.less new file mode 100644 index 0000000..c846715 --- /dev/null +++ b/src/less/greeneyes.less @@ -0,0 +1 @@ +@import "parallax_scroll.less"; \ No newline at end of file diff --git a/src/less/parallax_scroll.less b/src/less/parallax_scroll.less new file mode 100644 index 0000000..a13eb6f --- /dev/null +++ b/src/less/parallax_scroll.less @@ -0,0 +1,4 @@ +// Parallax Scroll +[data-module="parallax_scroll"] { + background-attachment: fixed; +} \ No newline at end of file