Permalink
Browse files

Added grunt, fixed jshint and formatting.

  • Loading branch information...
1 parent b43c093 commit 16425347e811c7a45196d791c9b47881258c309e @istvan-ujjmeszaros committed Apr 20, 2014
View
@@ -0,0 +1,15 @@
+# This file is for unifying the coding style for different editors and IDEs
+# editorconfig.org
+
+root = true
+
+[*]
+indent_style = space
+indent_size = 2
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[*.md]
+trim_trailing_whitespace = false
View
@@ -3,6 +3,7 @@
.hgignore
.hgtags
nbproject
+node_modules
index_demo_site.html
_gradients
View
@@ -0,0 +1,23 @@
+{
+ "boss": true,
+ "curly": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "expr": true,
+ "immed": true,
+ "noarg": true,
+ "onevar": false,
+ "quotmark": "single",
+ "smarttabs": true,
+ "trailing": true,
+ "unused": true,
+ "node": true,
+ "globals": {
+ "document": true,
+ "window": true,
+ "localStorage": true,
+ "$": true,
+ "jQuery": true
+ },
+ "exported": ["CSSGradientEditor"]
+}
View
@@ -0,0 +1,10 @@
+# Contributing
+
+Before sending a pull request remember to follow [jQuery Core Style Guide](http://contribute.jquery.org/style-guide/js/).
+
+1. Fork it!
+2. Create your feature branch: `git checkout -b my-new-feature`
+3. Make your changes on the `src` folder, never on the `dist` folder.
+4. Commit your changes: `git commit -m 'Add some feature'`
+5. Push to the branch: `git push origin my-new-feature`
+6. Submit a pull request :D
View
@@ -0,0 +1,83 @@
+module.exports = function (grunt) {
+
+ grunt.initConfig({
+
+ // Import package manifest
+ pkg: grunt.file.readJSON("css-gradient-generator.jquery.json"),
+
+ // Banner definitions
+ meta: {
+ banner: "/*\n" +
+ " * <%= pkg.title || pkg.name %>\n" +
+ " * v<%= pkg.version %>\n" +
+ " * <%= pkg.description %>\n" +
+ " * <%= pkg.homepage %>\n" +
+ " *\n" +
+ " * Made by Virtuosoft:\n" +
+ " * István Ujj-Mészáros - https://github.com/istvan-ujjmeszaros\n" +
+ " * Ferenc Fapál - http://twitter.com/fwoodpaul\n" +
+ " *\n" +
+ " * Thanks for the following persons:\n" +
+ " * Tibor Szász - https://github.com/kowdermeister\n" +
+ " * László Sotus - https://github.com/Lacisan\n" +
+ " *\n" +
+ " * Under <%= pkg.licenses[0].type %> License\n" +
+ " * To view a copy of this license, visit\n" +
+ " * http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en_US.\n" +
+ " */\n"
+ },
+
+ // Concat definitions
+ concat: {
+ js: {
+ src: ["src/css-gradient-generator.js"],
+ dest: "dist/css-gradient-generator.js"
+ },
+ css: {
+ src: ["src/css-gradient-generator.css"],
+ dest: "dist/css-gradient-generator.css"
+ },
+ options: {
+ banner: "<%= meta.banner %>"
+ }
+ },
+
+ // Lint definitions
+ jshint: {
+ files: ["src/css-gradient-generator.js"],
+ options: {
+ jshintrc: ".jshintrc"
+ }
+ },
+
+ // Minify definitions
+ uglify: {
+ js: {
+ src: ["dist/css-gradient-generator.js"],
+ dest: "dist/css-gradient-generator.min.js"
+ },
+ options: {
+ banner: "<%= meta.banner %>"
+ }
+ },
+
+ cssmin: {
+ css: {
+ src: ["dist/css-gradient-generator.css"],
+ dest: "dist/css-gradient-generator.min.css"
+ },
+ options: {
+ banner: "<%= meta.banner %>"
+ }
+ }
+ });
+
+ grunt.loadNpmTasks("grunt-contrib-concat");
+ grunt.loadNpmTasks("grunt-contrib-jshint");
+ grunt.loadNpmTasks("grunt-contrib-uglify");
+ grunt.loadNpmTasks("grunt-contrib-cssmin");
+
+ grunt.registerTask("default", ["jshint", "concat", "uglify", "cssmin"]);
+ grunt.registerTask("travis", ["jshint"]);
+
+};
View
@@ -0,0 +1,10 @@
+CSS Gradient Generator
+
+CSS gradient generator with the best browser support. Three different layouts to meet Your requirement (from simple linear to complex radial gradients).
+
+- https://github.com/Virtuosoft/css-gradient-generator
+- http://www.virtuosoft.eu/tools/css-gradient-generator/
+
+Copyright 2014 Virtuosoft
+
+This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en_US.
@@ -1,30 +1,30 @@
{
- "name": "css-gradient-generator",
- "title": "CSS Gradient Generator",
- "description": "CSS gradient generator with the best browser support. Three different layouts to meet Your requirement (from simple linear to complex radial gradients).",
- "keywords": [
- "generator",
- "css",
- "bootstrap",
- "responsive",
- "widget"
- ],
- "version": "2.0.9",
- "author": {
- "name": "Virtuosoft",
- "url": "https://github.com/Virtuosoft"
- },
- "licenses": [
- {
- "type": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0",
- "url": "http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en_US."
- }
- ],
- "homepage": "http://www.virtuosoft.eu/tools/css-gradient-generator/",
- "demo": "http://www.virtuosoft.eu/tools/css-gradient-generator/",
- "docs": "http://www.virtuosoft.eu/tools/css-gradient-generator/",
- "download": "https://github.com/Virtuosoft/css-gradient-generator/archive/master.zip",
- "dependencies": {
- "jquery": ">=1.7"
+ "name": "css-gradient-generator",
+ "title": "CSS Gradient Generator",
+ "description": "CSS gradient generator with the best browser support. Three different layouts to meet Your requirement (from simple linear to complex radial gradients).",
+ "keywords": [
+ "generator",
+ "css",
+ "bootstrap",
+ "responsive",
+ "widget"
+ ],
+ "version": "2.0.10",
+ "author": {
+ "name": "Virtuosoft",
+ "url": "https://github.com/Virtuosoft"
+ },
+ "licenses": [
+ {
+ "type": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0",
+ "url": "http://creativecommons.org/licenses/by-nc-sa/4.0/deed.en_US."
}
+ ],
+ "homepage": "http://www.virtuosoft.eu/tools/css-gradient-generator/",
+ "demo": "http://www.virtuosoft.eu/tools/css-gradient-generator/",
+ "docs": "http://www.virtuosoft.eu/tools/css-gradient-generator/",
+ "download": "https://github.com/Virtuosoft/css-gradient-generator/archive/master.zip",
+ "dependencies": {
+ "jquery": ">=1.7"
+ }
}
Oops, something went wrong.

0 comments on commit 1642534

Please sign in to comment.