From ca1b86f47d8ed6420443f5f79480ded9489acd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jano=20Gonz=C3=A1lez?= Date: Thu, 7 May 2020 18:28:49 +0200 Subject: [PATCH] Remove component and browser publishing support --- .gitignore | 6 ++---- History.md | 5 +++++ Makefile | 11 ----------- Readme.md | 23 ++--------------------- component.json | 19 ------------------- package.json | 3 +-- test/bootstrap.js | 2 -- test/priorityqueue.js | 3 +++ test/test.html | 22 ---------------------- 9 files changed, 13 insertions(+), 81 deletions(-) delete mode 100644 Makefile delete mode 100644 component.json delete mode 100644 test/bootstrap.js delete mode 100644 test/test.html diff --git a/.gitignore b/.gitignore index b644788..924963d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -# Component -components -build -# NPM +# NPM node_modules +package-lock.json diff --git a/History.md b/History.md index 56fd597..d38e1a8 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,8 @@ +2.0.0 / TBD +================== + + * Stop supporting component and browser builds. + 1.0.0 / 2015-02-23 ================== diff --git a/Makefile b/Makefile deleted file mode 100644 index 0f14dac..0000000 --- a/Makefile +++ /dev/null @@ -1,11 +0,0 @@ - -build: components index.js - @component build --dev - -components: component.json - @component install --dev - -clean: - rm -fr build components template.js - -.PHONY: clean diff --git a/Readme.md b/Readme.md index a26231d..ab469b8 100644 --- a/Readme.md +++ b/Readme.md @@ -1,24 +1,13 @@ # priorityqueue.js -A simple priority queue data structure for Node.js and the browser. +A simple priority queue data structure for Node.js. ## Installation -As component for the browser: - -``` -$ component install janogonzalez/priorityqueuejs -``` - -As npm for Node.js: - ``` $ npm install priorityqueuejs ``` -If you just want a pre-built file for using in the web, check the [releases]( -https://github.com/janogonzalez/priorityqueuejs/releases) section. - ## Example ```js @@ -85,16 +74,8 @@ Returns the size of the priority queue. ## Testing -As component in the browser, open test/test.html in your browser: - -``` -$ make -$ open test/test.html -``` - -As npm package: - ``` +$ npm install $ npm test ``` diff --git a/component.json b/component.json deleted file mode 100644 index 3fb3b7a..0000000 --- a/component.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "priorityqueuejs", - "repo": "janogonzalez/priorityqueuejs", - "description": "a simple priority queue data structure", - "version": "0.2.0", - "keywords": [ - "heap", - "priority", - "queue", - "priority queue", - "data structure" - ], - "dependencies": {}, - "development": {}, - "license": "MIT", - "scripts": [ - "index.js" - ] -} diff --git a/package.json b/package.json index f3fb824..830a29b 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,7 @@ }, "readmeFilename": "README.md", "main": "index.js", - "dependencies": { - }, + "dependencies": {}, "scripts": { "test": "mocha" }, diff --git a/test/bootstrap.js b/test/bootstrap.js deleted file mode 100644 index 2c1286b..0000000 --- a/test/bootstrap.js +++ /dev/null @@ -1,2 +0,0 @@ -global.expect = require('expect.js'); -global.PriorityQueue = require('..'); diff --git a/test/priorityqueue.js b/test/priorityqueue.js index 8dee65f..efb7cf6 100644 --- a/test/priorityqueue.js +++ b/test/priorityqueue.js @@ -1,3 +1,6 @@ +var expect = require('expect.js'); +var PriorityQueue = require('..') + describe('PriorityQueue()', function() { it('returns an new PriorityQueue', function() { expect(new PriorityQueue()).to.be.a(PriorityQueue); diff --git a/test/test.html b/test/test.html deleted file mode 100644 index 6f25284..0000000 --- a/test/test.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - queuejs test suite - - - - - - - - -
- - -