Browse Source

Renaming folders and setting up grunt for sass

pull/214/head
connors 11 years ago
parent
commit
fa26c0aebf
  1. 51
      Gruntfile.js
  2. 546
      dist/ratchet.css
  3. 0
      lib/sass/bars.scss
  4. 0
      lib/sass/base.scss
  5. 0
      lib/sass/buttons.scss
  6. 0
      lib/sass/chevrons.scss
  7. 0
      lib/sass/counts.scss
  8. 0
      lib/sass/forms.scss
  9. 0
      lib/sass/lists.scss
  10. 0
      lib/sass/modals.scss
  11. 0
      lib/sass/popovers.scss
  12. 0
      lib/sass/push.scss
  13. 14
      lib/sass/ratchet.scss
  14. 0
      lib/sass/segmented-controllers.scss
  15. 0
      lib/sass/sliders.scss
  16. 0
      lib/sass/toggles.scss
  17. 3
      package.json

51
Gruntfile.js

@ -3,6 +3,13 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Metadata.
meta: {
srcPath: 'lib/sass/',
distPath: 'dist/'
},
banner: '/*!\n' +
'* Ratchet v<%= pkg.version %> by @connors, @dhg, and @fat\n' +
'* Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
@ -10,39 +17,41 @@ module.exports = function(grunt) {
'*\n' +
'* Designed and built by @connors, @dhg, and @fat.\n' +
'*/\n',
uglify: {
sass: {
options: {
banner: ''
banner: '/**\n' +
'* ==================================\n' +
'* Ratchet v2.0.0\n' +
'* Licensed under The MIT License\n' +
'* http://opensource.org/licenses/MIT\n' +
'* ==================================\n' +
'*/\n',
},
gbuild: {
src: 'src/<%= pkg.name %>.js',
dest: 'build/<%= pkg.name %>.min.js'
dist: {
files: {
'<%= meta.distPath %>ratchet.css': '<%= meta.srcPath %>ratchet.scss'
}
}
},
sass: {
dist : {
files: [{
expand: true,
cwd: 'ratchet',
src: ['lib/scss/*.scss'],
dest: 'dist',
ext: '.css'
}]
watch: {
scripts: {
files: [
'<%= meta.srcPath %>/**/*.scss'
],
tasks: ['sass']
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
//grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task(s).
grunt.registerTask('default', ['uglify']);
//grunt.registerTask('default', ['uglify']);
grunt.registerTask('default', ['sass']);
};
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.registerTask('default', ['sass']);

546
dist/ratchet.css vendored

File diff suppressed because it is too large Load Diff

0
lib/scss/bars.scss → lib/sass/bars.scss

0
lib/scss/base.scss → lib/sass/base.scss

0
lib/scss/buttons.scss → lib/sass/buttons.scss

0
lib/scss/chevrons.scss → lib/sass/chevrons.scss

0
lib/scss/counts.scss → lib/sass/counts.scss

0
lib/scss/forms.scss → lib/sass/forms.scss

0
lib/scss/lists.scss → lib/sass/lists.scss

0
lib/scss/modals.scss → lib/sass/modals.scss

0
lib/scss/popovers.scss → lib/sass/popovers.scss

0
lib/scss/push.scss → lib/sass/push.scss

14
lib/sass/ratchet.scss

@ -0,0 +1,14 @@
@import "base.scss";
@import "bars.scss";
@import "lists.scss";
@import "forms.scss";
@import "buttons.scss";
@import "chevrons.scss";
@import "counts.scss";
@import "segmented-controllers.scss";
@import "popovers.scss";
@import "modals.scss";
@import "sliders.scss";
@import "toggles.scss";
@import "push.scss";

0
lib/scss/segmented-controllers.scss → lib/sass/segmented-controllers.scss

0
lib/scss/sliders.scss → lib/sass/sliders.scss

0
lib/scss/toggles.scss → lib/sass/toggles.scss

3
package.json

@ -7,7 +7,8 @@
"grunt-contrib-jshint": "~0.6.3",
"grunt-contrib-nodeunit": "~0.2.0",
"grunt-contrib-uglify": "~0.2.2",
"grunt-contrib-sass": "~0.5.0"
"grunt-contrib-sass": "~0.5.0",
"grunt-contrib-watch": "~0.5.3"
},
"keywords": [
"ratchet",

Loading…
Cancel
Save