Skip to content

Commit

Permalink
Recompile and minify distributed files
Browse files Browse the repository at this point in the history
  • Loading branch information
teijo committed Apr 3, 2013
1 parent 6bdd392 commit 5c57bc2
Show file tree
Hide file tree
Showing 9 changed files with 160 additions and 1,312 deletions.
60 changes: 60 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"bitwise" : true,
"curly" : true,
"eqeqeq" : true,
"forin" : true,
"immed" : true,
"latedef" : true,
"newcap" : true,
"noarg" : true,
"noempty" : true,
"nonew" : true,
"plusplus" : true,
"regexp" : true,
"undef" : true,
"strict" : true,
"trailing" : true,
"asi" : false,
"boss" : false,
"debug" : false,
"eqnull" : false,
"es5" : false,
"esnext" : false,
"evil" : false,
"expr" : false,
"funcscope" : false,
"globalstrict" : false,
"iterator" : false,
"lastsemic" : false,
"laxbreak" : false,
"laxcomma" : false,
"loopfunc" : false,
"multistr" : false,
"onecase" : false,
"proto" : false,
"regexdash" : false,
"scripturl" : false,
"smarttabs" : false,
"shadow" : false,
"sub" : false,
"supernew" : false,
"validthis" : false,
"browser" : true,
"couch" : false,
"devel" : false,
"dojo" : false,
"jquery" : false,
"mootools" : false,
"node" : false,
"nonstandard" : false,
"prototypejs" : false,
"rhino" : false,
"wsh" : false,
"nomen" : false,
"onevar" : false,
"passfail" : false,
"white" : false,
"maxerr" : 100,
"predef" : [],
"indent" : 2
}
57 changes: 57 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
scripts: {
files: ['src/jquery.bracket.sass', 'src/jquery.bracket.js'],
tasks: ['default']
}
},
shell: {
compass: {
command: 'compass compile'
}
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
with_overrides: {
options: {
asi: true,
curly: false,
strict: false,
predef : ['$', 'console'],
},
files: {
src: ['src/jquery.bracket.js']
}
}
},
cssmin: {
dist: {
files: {
'dist/<%= pkg.name %>.min.css': 'dist/<%= pkg.name %>.css'
}
}
},
uglify: {
options: {
compress: true,
},
dist: {
files: {
'dist/<%= pkg.name %>.min.js': ['src/<%= pkg.name %>.js']
}
}
},
});

grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-css');

grunt.registerTask('default', ['shell', 'uglify', 'cssmin']);
};
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Examples can be found from the project site at http://www.aropupu.fi/bracket/
Changes
-------

* 2013-04-03: "skipConsolationRound" option, minified distribution files
* 2013-03-14: Reversing the bracket flow with dir property
* 2012-07-10 (release 5): IE 8 support and remove "disabled" attributes as
it messed IE8+ colors.
Expand Down
23 changes: 23 additions & 0 deletions config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Require any additional compass plugins here.

# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "/dist"
sass_dir = "/src"
javascripts_dir = "/src"

# You can select your preferred output style here (can be overridden via the command line):
# output_style = :compressed

# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true

# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = true


# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
Loading

0 comments on commit 5c57bc2

Please sign in to comment.