From 48677372a8e797ba76afcccea6a57b4323d74033 Mon Sep 17 00:00:00 2001 From: David da Silva Date: Thu, 2 Oct 2014 21:27:47 +0200 Subject: [PATCH 1/3] completed package.json. It required a 'main' property in order to work with Browserify. --- package.json | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f808786..75ad8b8 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,30 @@ { "name": "jss", "version": "0.6.0", + "description": "A simple JavaScript library for retrieving and setting CSS stylesheet rules.", + "main": "jss.js", + "repository": { + "type": "git", + "url": "https://github.com/Box9/jss" + }, + "keywords": [ + "css", + "jss", + "style", + "sheet", + "stylesheet", + "rules" + ], + "author": { + "name": "David Tang", + "web": "https://github.com/Box9" + }, + "bugs": { + "url": "https://github.com/Box9/jss/issues" + }, "devDependencies": { "gulp": "~3.5.6", "gulp-uglify": "~0.2.1", "gulp-rename": "~1.2.0" } -} +} \ No newline at end of file From 3be79895e080b53870f9c4528fe44b3d5bf6d899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20da=20Silva=20Cont=C3=ADn?= Date: Thu, 2 Oct 2014 21:46:11 +0200 Subject: [PATCH 2/3] updated README with Browserify instructions --- README.markdown | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index b87719e..7c0e0bd 100644 --- a/README.markdown +++ b/README.markdown @@ -20,9 +20,13 @@ Download and include `jss.js` (or the minified file) in your HTML: -If your project uses Bower for package management you can run the following command instead: +If your project uses Bower for package management you can run the following command: bower install jss + +If your project uses Browserify for package management you can run the following command: + + npm install jss-browserify **jss.set(selector, properties)** to add a new rule or extend an existing rule: @@ -63,4 +67,4 @@ If your project uses Bower for package management you can run the following comm **jss.remove([selector])** to remove rules added via JSS: jss.remove('.demo'); // removes all JSS styles matching the selector - jss.remove(); // removes all JSS styles \ No newline at end of file + jss.remove(); // removes all JSS styles From bdf535a607b95e6054283dfdfca188a7635997f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20da=20Silva=20Cont=C3=ADn?= Date: Fri, 3 Oct 2014 12:10:31 +0200 Subject: [PATCH 3/3] standardised README extension --- README.markdown => README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename README.markdown => README.md (100%) diff --git a/README.markdown b/README.md similarity index 100% rename from README.markdown rename to README.md