diff --git a/lib/jquery.uls/.gitignore b/lib/jquery.uls/.gitignore new file mode 100644 index 00000000..07e6e472 --- /dev/null +++ b/lib/jquery.uls/.gitignore @@ -0,0 +1 @@ +/node_modules diff --git a/lib/jquery.uls/grunt.js b/lib/jquery.uls/grunt.js new file mode 100644 index 00000000..b200ae80 --- /dev/null +++ b/lib/jquery.uls/grunt.js @@ -0,0 +1,85 @@ +/*global module:false*/ +module.exports = function(grunt) { + grunt.loadNpmTasks('grunt-css'); + // Project configuration. + grunt + .initConfig({ + pkg : '', + meta : { + banner : '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + + '<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' + + '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + + ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */' + }, + concat : { + js : { + src: [ '','src/jquery.uls.data.js', + 'src/jquery.uls.data.utils.js', 'src/jquery.uls.lcd.js', + 'src/jquery.uls.languagefilter.js', 'src/jquery.uls.regionfilter.js', + 'src/jquery.uls.core.js'], + dest : 'dist/<%= pkg.name %>.js' + }, + css: { + src: [ 'css/jquery.uls.css', 'css/jquery.uls.grid.css', + 'css/jquery.uls.lcd.css' ], + dest : 'dist/<%= pkg.name %>.css' + } + }, + min : { + dist : { + src : [ '', + '' ], + dest : 'dist/<%= pkg.name %>.min.js' + } + }, + cssmin : { + dist: { + src : '', + dest : 'dist/<%= pkg.name %>.min.css' + } + }, + lint : { + files : [ 'src/**/*.js', 'test/**/*.js' ] + }, + csslint : { + file: [ 'css/**/*.css' ] + }, + watch : { + files : '', + tasks : 'lint' + }, + jshint : { + options : { + curly : true, + eqeqeq : true, + immed : true, + latedef : true, + newcap : true, + noarg : true, + sub : true, + undef : true, + boss : true, + eqnull : true, + browser : true, + smarttabs : true, + laxbreak : true, + multistr: true + }, + globals : { + jQuery : true, + QUnit : true, + pluralRuleParser : true, + _ : true, + module : true, + test : true + } + }, + uglify : { + src : [ '', '' ], + dest : 'dist/<%= pkg.name %>.min.js' + } + }); + // Default task. + grunt.registerTask('default', 'lint cssmin concat min csslint'); +}; diff --git a/lib/jquery.uls/package.json b/lib/jquery.uls/package.json new file mode 100644 index 00000000..baaed92c --- /dev/null +++ b/lib/jquery.uls/package.json @@ -0,0 +1,53 @@ +{ + "name": "jquery.uls", + "version": "0.1.0", + "description": "Universal Language Selector", + "homepage": "https://github.com/wikimedia/jquery.uls", + "keywords": [ + "internationalization", + "localization", + "uls", + "jquery", + "l10n" + ], + "author": { + "name": "Santhosh Thottingal", + "email": "santhosh.thottingal@gmail.com" + }, + "contributors": [ + "Alolita Sharma", + "Amir Aharoni", + "Arun Ganesh", + "Brandon Harris", + "Niklas Laxström", + "Pau Giner", + "Santhosh Thottingal", + "Siebrand Mazeland" + ], + "dependencies": {}, + "devDependencies": { + "grunt": "~0.3.9", + "grunt-compare-size": ">=0.1.4", + "grunt-css": ">0.0.0" + }, + "repository": { + "type": "git", + "url": "git://github.com/wikimedia/jquery.uls.git" + }, + "bugs": { + "url" : "http://github.com/wikimedia/jquery.uls/issues" + }, + "engine": { + "node": ">=0.6.x" + }, + "licenses": [ + { + "type": "GPL", + "url": "https://github.com/wikimedia/jquery.uls/blob/master/GPL-LICENSE" + }, + { + "type": "MIT", + "url": "https://github.com/wikimedia/jquery.uls/blob/master/MIT-LICENSE" + } + ] +}