From e7a6e2eaa416992368e9548dcc91cf1c7998fc35 Mon Sep 17 00:00:00 2001 From: connors Date: Wed, 11 Sep 2013 12:53:07 -0700 Subject: [PATCH] Setting up sass --- Gruntfile.js | 21 +++++++- lib/{css/bars.css => scss/bars.scss} | 0 lib/{css/base.css => scss/base.scss} | 0 lib/{css/buttons.css => scss/buttons.scss} | 0 lib/{css/chevrons.css => scss/chevrons.scss} | 0 lib/{css/counts.css => scss/counts.scss} | 0 lib/{css/forms.css => scss/forms.scss} | 0 lib/{css/lists.css => scss/lists.scss} | 0 lib/{css/modals.css => scss/modals.scss} | 0 lib/{css/popovers.css => scss/popovers.scss} | 0 lib/{css/push.css => scss/push.scss} | 0 .../segmented-controllers.scss} | 0 lib/{css/sliders.css => scss/sliders.scss} | 0 lib/{css/toggles.css => scss/toggles.scss} | 0 package.json | 53 +++++++++++-------- 15 files changed, 49 insertions(+), 25 deletions(-) rename lib/{css/bars.css => scss/bars.scss} (100%) rename lib/{css/base.css => scss/base.scss} (100%) rename lib/{css/buttons.css => scss/buttons.scss} (100%) rename lib/{css/chevrons.css => scss/chevrons.scss} (100%) rename lib/{css/counts.css => scss/counts.scss} (100%) rename lib/{css/forms.css => scss/forms.scss} (100%) rename lib/{css/lists.css => scss/lists.scss} (100%) rename lib/{css/modals.css => scss/modals.scss} (100%) rename lib/{css/popovers.css => scss/popovers.scss} (100%) rename lib/{css/push.css => scss/push.scss} (100%) rename lib/{css/segmented-controllers.css => scss/segmented-controllers.scss} (100%) rename lib/{css/sliders.css => scss/sliders.scss} (100%) rename lib/{css/toggles.css => scss/toggles.scss} (100%) diff --git a/Gruntfile.js b/Gruntfile.js index 5b9ea33..05d6037 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -19,13 +19,30 @@ module.exports = function(grunt) { dest: 'build/<%= pkg.name %>.min.js' } } + + sass: { + dist : { + files: [{ + expand: true, + cwd: 'ratchet', + src: ['lib/scss/*.scss'], + dest: 'dist', + ext: '.css' + }] + } + } + }); // Load the plugin that provides the "uglify" task. grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-sass'); - + // Default task(s). grunt.registerTask('default', ['uglify']); -}; \ No newline at end of file +}; + +grunt.loadNpmTasks('grunt-contrib-sass'); + +grunt.registerTask('default', ['sass']); \ No newline at end of file diff --git a/lib/css/bars.css b/lib/scss/bars.scss similarity index 100% rename from lib/css/bars.css rename to lib/scss/bars.scss diff --git a/lib/css/base.css b/lib/scss/base.scss similarity index 100% rename from lib/css/base.css rename to lib/scss/base.scss diff --git a/lib/css/buttons.css b/lib/scss/buttons.scss similarity index 100% rename from lib/css/buttons.css rename to lib/scss/buttons.scss diff --git a/lib/css/chevrons.css b/lib/scss/chevrons.scss similarity index 100% rename from lib/css/chevrons.css rename to lib/scss/chevrons.scss diff --git a/lib/css/counts.css b/lib/scss/counts.scss similarity index 100% rename from lib/css/counts.css rename to lib/scss/counts.scss diff --git a/lib/css/forms.css b/lib/scss/forms.scss similarity index 100% rename from lib/css/forms.css rename to lib/scss/forms.scss diff --git a/lib/css/lists.css b/lib/scss/lists.scss similarity index 100% rename from lib/css/lists.css rename to lib/scss/lists.scss diff --git a/lib/css/modals.css b/lib/scss/modals.scss similarity index 100% rename from lib/css/modals.css rename to lib/scss/modals.scss diff --git a/lib/css/popovers.css b/lib/scss/popovers.scss similarity index 100% rename from lib/css/popovers.css rename to lib/scss/popovers.scss diff --git a/lib/css/push.css b/lib/scss/push.scss similarity index 100% rename from lib/css/push.css rename to lib/scss/push.scss diff --git a/lib/css/segmented-controllers.css b/lib/scss/segmented-controllers.scss similarity index 100% rename from lib/css/segmented-controllers.css rename to lib/scss/segmented-controllers.scss diff --git a/lib/css/sliders.css b/lib/scss/sliders.scss similarity index 100% rename from lib/css/sliders.css rename to lib/scss/sliders.scss diff --git a/lib/css/toggles.css b/lib/scss/toggles.scss similarity index 100% rename from lib/css/toggles.css rename to lib/scss/toggles.scss diff --git a/package.json b/package.json index 52ab66d..9f41cb7 100644 --- a/package.json +++ b/package.json @@ -1,26 +1,33 @@ { - "name": "ratchet" - , "version": "2.0.0" - , "devDependencies": { - "grunt": "~0.4.1", - "grunt-contrib-jshint": "~0.6.3", - "grunt-contrib-nodeunit": "~0.2.0", - "grunt-contrib-uglify": "~0.2.2" - } - , "keywords": ["ratchet", "css", "ios", "prototype"] - , "homepage": "http://maker.github.com/ratchet/" - , "author": "Connor Sears, Dave Gamache, and Jacob Thornton" - , "repository": { - "type": "git" - , "url": "https://github.com/maker/ratchet.git" - } - , "bugs": { - "url": "https://github.com/maker/ratchet/issues" - } - , "licenses": [ + "name": "ratchet", + "version": "2.0.0", + "dependencies": {}, + "devDependencies": { + "grunt": "~0.4.1", + "grunt-contrib-jshint": "~0.6.3", + "grunt-contrib-nodeunit": "~0.2.0", + "grunt-contrib-uglify": "~0.2.2", + "grunt-contrib-sass": "~0.5.0" + }, + "keywords": [ + "ratchet", + "css", + "ios", + "prototype" + ], + "homepage": "http://maker.github.com/ratchet/", + "author": "Connor Sears, Dave Gamache, and Jacob Thornton", + "repository": { + "type": "git", + "url": "https://github.com/maker/ratchet.git" + }, + "bugs": { + "url": "https://github.com/maker/ratchet/issues" + }, + "licenses": [ { - "type": "MIT" - , "url": "http://www.opensource.org/licenses/MIT" + "type": "MIT", + "url": "http://www.opensource.org/licenses/MIT" } - ] -} \ No newline at end of file + ] +}