From 3da77b5da53049fce6ccba7c5aa0c67fd6b67818 Mon Sep 17 00:00:00 2001 From: Andrey Shmelev Date: Sun, 3 Aug 2014 16:46:16 +0400 Subject: [PATCH 1/2] Support being loaded as Requirejs module. --- cssbeautify.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cssbeautify.js b/cssbeautify.js index b4ae096..11c6b1c 100644 --- a/cssbeautify.js +++ b/cssbeautify.js @@ -461,6 +461,9 @@ if (typeof exports !== 'undefined') { // Node.js module. module.exports = exports = cssbeautify; + } else if (typeof define === 'function' && define.amd) { + // Requirejs module. + define(function () { return cssbeautify; }); } else if (typeof window === 'object') { // Browser loading. window.cssbeautify = cssbeautify; From a4fb1f0ca8f5157cf0182a66f0ef833d2966daa8 Mon Sep 17 00:00:00 2001 From: Andrey Shmelev Date: Sun, 3 Aug 2014 16:50:48 +0400 Subject: [PATCH 2/2] add bower.json --- bower.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 bower.json diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..c669716 --- /dev/null +++ b/bower.json @@ -0,0 +1,23 @@ +{ + "name": "cssbeautify", + "main": "cssbeautify.js", + "version": "0.3.0", + "homepage": "http://cssbeautify.com", + "authors": [ + "Ariya Hidayat " + ], + "description": "Reindent and reformat CSS.", + "keywords": [ + "cssbeautify", + "css", + "formatter" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "assets", + "bin", + "images", + "test" + ] +}