Skip to content

Commit

Permalink
Merge pull request msurguy#4 from heruan/master
Browse files Browse the repository at this point in the history
Grunt + Bower support
  • Loading branch information
msurguy committed Nov 18, 2013
2 parents 3ccf744 + b94dab9 commit dac4104
Show file tree
Hide file tree
Showing 18 changed files with 1,204 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.sass-cache/
node_modules/
55 changes: 55 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
module.exports = function(grunt) {
grunt.initConfig({
buildDir: 'dist',
sassDir: 'css',
jsDir: 'js',
sass: {
dist: {
files: {
'<%= buildDir %>/ladda-themeless.css': '<%= sassDir %>/ladda.scss',
'<%= buildDir %>/ladda.css': '<%= sassDir %>/ladda-theme.scss'
}
}
},
cssmin: {
combine: {
files: {
'<%= buildDir %>/ladda-themeless.min.css': [ '<%= buildDir %>/ladda-themeless.css' ],
'<%= buildDir %>/ladda.min.css': [ '<%= buildDir %>/ladda.css' ]
}
}
},
uglify: {
js: {
options: {
mangle: false,
beautify: true,
compress: false
},
files: {
'<%= buildDir %>/ladda.js': [ '<%= jsDir %>/ladda.js' ],
'<%= buildDir %>/spin.js': [ '<%= jsDir %>/spin.js' ]
}
},
jsmin: {
options: {
mangle: true,
compress: true
},
files: {
'<%= buildDir %>/ladda.min.js': [ '<%= jsDir %>/ladda.js' ],
'<%= buildDir %>/spin.min.js': [ '<%= jsDir %>/spin.js' ]
}
}
},
clean: {
dist: '<%= buildDir %>'
}
});
grunt.registerTask('default', 'build');
grunt.registerTask('build', ['sass', 'cssmin', 'uglify']);
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');
};
Empty file modified LICENSE
100755 → 100644
Empty file.
19 changes: 19 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "ladda-bootstrap",
"description": "Buttons with built-in loading indicators, effectively bridging the gap between action and feedback",
"version": "0.8.0",
"license": "MIT",
"main": [
"dist/ladda-themeless.css",
"dist/ladda.js"
],
"dependencies": {
"bootstrap": ">=3.0.0",
"spin.js": "~1.3.2"
},
"readme": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/msurguy/ladda-bootstrap.git"
}
}
3 changes: 2 additions & 1 deletion css/ladda-theme.scss
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** Contains the default Ladda button theme styles */
@import 'ladda.scss';


/*************************************
Expand Down Expand Up @@ -77,4 +78,4 @@ $mint: #16a085;
&[data-size=xl] .ladda-label {
font-size: 1.5em;
}
}
}
Empty file modified css/ladda.scss
100755 → 100644
Empty file.
Loading

0 comments on commit dac4104

Please sign in to comment.