Skip to content

Commit e2f59fb

Browse files
committed
RequireJS+Grunt -> Browserify+Gulp
No more need for priority-queue.no-require.js. priority-queue.js does both RequireJS and non-RequireJS.
1 parent c350b87 commit e2f59fb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+814
-2431
lines changed

Gruntfile.coffee

-71
This file was deleted.

README.md

+7-14
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,13 @@ Installing
2424
Download `priority-queue.js`. Alternatively, install through Bower:
2525
`bower install js-priority-queue`
2626

27-
Include it through [RequireJS](http://requirejs.org/).
27+
Include it through [RequireJS](http://requirejs.org/) or
28+
[Browserify](http://browserify.org). Or, to pollute your global scope, insert
29+
this in your HTML:
2830

29-
Then write code like this:
30-
31-
require([ 'vendor/priority-queue' ], function(PriorityQueue) {
32-
var queue = new PriorityQueue({ comparator: function(a, b) { return b - a; }});
33-
queue.queue(5);
34-
queue.queue(3);
35-
queue.queue(2);
36-
var lowest = queue.dequeue(); // returns 5
37-
});
31+
<script src="priority-queue.js"></script>
3832

39-
If you don't like RequireJS, you can download the standalone version,
40-
`priority-queue.no-require.js`, and write:
33+
Then write code like this:
4134

4235
var queue = new PriorityQueue({ comparator: function(a, b) { return b - a; }});
4336
queue.queue(5);
@@ -104,8 +97,8 @@ Contributing
10497
1. Fork this repository
10598
2. Run `npm install`
10699
3. Write the behavior you expect in `spec-coffee/`
107-
4. Edit files in `coffee/` until `grunt test` says you're done
108-
5. Run `grunt` to update `priority-queue.js` and `priority-queue.min.js`
100+
4. Edit files in `coffee/` until `gulp test` says you're done
101+
5. Run `gulp` to update `priority-queue.js` and `priority-queue.min.js`
109102
6. Submit a pull request
110103

111104
License

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-priority-queue",
3-
"version": "0.0.6",
3+
"version": "0.1.0",
44
"main": "priority-queue.js",
55
"ignore": [
66
"**/.*",

coffee/PriorityQueue.coffee

-24
This file was deleted.

coffee/PriorityQueue/AbstractPriorityQueue.coffee

-22
This file was deleted.

coffee/PriorityQueue/ArrayStrategy.coffee

-34
This file was deleted.

coffee/PriorityQueue/BHeapStrategy.coffee

-123
This file was deleted.

coffee/PriorityQueue/BinaryHeapStrategy.coffee

-59
This file was deleted.

0 commit comments

Comments
 (0)