Permalink
Browse files

Add browser support

  • Loading branch information...
vesln committed Oct 28, 2012
1 parent 7d91bbf commit 156b74870eb695aabdd68b098b135f230c244222
Showing with 430 additions and 9 deletions.
  1. +8 −1 Makefile
  2. +15 −3 Readme.md
  3. +5 −3 package.json
  4. +332 −0 range.js
  5. +1 −0 range.min.js
  6. +43 −0 support/compile.js
  7. +23 −0 test/browser/index.html
  8. +1 −0 test/browser/require.js
  9. +1 −1 test/range.test.js
  10. +1 −1 test/support/bootstrap.js
View
@@ -11,4 +11,11 @@ test:
--ui $(UI) \
$(TESTS)
-.PHONY: test
+browser: $(SRC)
+ @node support/compile $^
+
+clean:
+ @rm -f decorator.js
+ @rm -f decorator.min.js
+
+.PHONY: test browser clean
View
@@ -123,24 +123,36 @@ range().step(1).step();
## Installation
+Node.js:
+
```
$ npm install r...e
```
-## Requirements
+Browser:
+
+Download `range.min.js`, it's all you need.
-- Node.js >= 0.6.0
+```html
+<script src="range.min.js"></script>
+```
## Tests
+Node.js:
+
```
$ npm install
$ make test
```
+Browser:
+
+- Clone the repository
+- Open `test/browser/index.html` in your favourite browser
+
## TODO
-- Browser support
- Handle floats
## License
View
@@ -11,11 +11,13 @@
"type": "git",
"url": "https://github.com/vesln/r...e"
},
- "keywords": ["range"],
- "dependencies": {},
+ "keywords": [
+ "range"
+ ],
"devDependencies": {
"mocha": "*",
- "chai": "*"
+ "chai": "*",
+ "folio": "~0.3.4"
},
"author": "Veselin Todorov <hi@vesln.com>",
"license": "MIT",
Oops, something went wrong.

0 comments on commit 156b748

Please sign in to comment.