Skip to content

Commit 71af623

Browse files
rebase
1 parent a0b01e5 commit 71af623

38 files changed

+383
-651
lines changed

.codeclimate.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
languages:
22
JavaScript: true
33
exclude_paths:
4-
- "js/dist/*.js"
5-
- "js/dist/**/*.js"
6-
- "test/*.js"
4+
- "doc/**/*.js"
75
- "test/**/*.js"
6+
- "lib/**/*.js"

.gitignore

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,10 @@
1-
# Logs
2-
logs
3-
*.log
4-
5-
# Runtime data
6-
pids
7-
*.pid
8-
*.seed
9-
10-
# Directory for instrumented libs generated by jscoverage/JSCover
11-
lib-cov
12-
13-
# Coverage directory used by tools like istanbul
14-
coverage
15-
16-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17-
.grunt
18-
19-
# Compiled binary addons (http://nodejs.org/api/addons.html)
20-
build/Release
21-
221
# Dependency directory
23-
# Commenting this out is preferred by some people, see
24-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
252
node_modules
3+
jspm_packages
264

27-
# Users Environment Variables
28-
.lock-wscript
5+
# Coverage directory used by nyc
6+
coverage
7+
.nyc_output
298

30-
# groc
31-
doc
9+
# Documentation
10+
gh-pages

.groc.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

.jshintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1+
env:
2+
- CXX=g++-4.8
3+
4+
addons:
5+
apt:
6+
sources:
7+
- ubuntu-toolchain-r-test
8+
packages:
9+
- g++-4.8
10+
111
language: node_js
12+
213
node_js:
3-
- "iojs"
4-
- "0.12"
5-
- "0.11"
6-
- "0.10"
14+
- node
15+
716
install:
8-
- npm -d install
17+
- npm install
18+
919
script:
10-
- npm test
20+
- npm run cover
21+
1122
after_success:
12-
- ./node_modules/.bin/coveralls < coverage/lcov.info || true
13-
- ./node_modules/.bin/codeclimate < coverage/lcov.info || true
23+
- bash <(curl -s https://codecov.io/bash) || true
24+
- coveralls < coverage/lcov.info || true
25+
- codeclimate-test-reporter < coverage/lcov.info || true

README.md

Lines changed: 13 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[js-sort](http://aureooms.github.io/js-sort)
22
==
33

4-
Sorting code bricks for JavaScript. Parent is
4+
Sorting algorithms for JavaScript. Parent is
55
[aureooms/js-algo](https://github.com/aureooms/js-algo).
66

77
```js
@@ -10,145 +10,31 @@ let fordjohnson = sort._fordjohnson( search.binarysearch ) ;
1010

1111
[![NPM license](http://img.shields.io/npm/l/aureooms-js-sort.svg?style=flat)](https://raw.githubusercontent.com/aureooms/js-sort/master/LICENSE)
1212
[![NPM version](http://img.shields.io/npm/v/aureooms-js-sort.svg?style=flat)](https://www.npmjs.org/package/aureooms-js-sort)
13-
[![Bower version](http://img.shields.io/bower/v/aureooms-js-sort.svg?style=flat)](http://bower.io/search/?q=aureooms-js-sort)
1413
[![Build Status](http://img.shields.io/travis/aureooms/js-sort.svg?style=flat)](https://travis-ci.org/aureooms/js-sort)
1514
[![Coverage Status](http://img.shields.io/coveralls/aureooms/js-sort.svg?style=flat)](https://coveralls.io/r/aureooms/js-sort)
1615
[![Dependencies Status](http://img.shields.io/david/aureooms/js-sort.svg?style=flat)](https://david-dm.org/aureooms/js-sort#info=dependencies)
1716
[![devDependencies Status](http://img.shields.io/david/dev/aureooms/js-sort.svg?style=flat)](https://david-dm.org/aureooms/js-sort#info=devDependencies)
1817
[![Code Climate](http://img.shields.io/codeclimate/github/aureooms/js-sort.svg?style=flat)](https://codeclimate.com/github/aureooms/js-sort)
1918
[![NPM downloads per month](http://img.shields.io/npm/dm/aureooms-js-sort.svg?style=flat)](https://www.npmjs.org/package/aureooms-js-sort)
2019
[![GitHub issues](http://img.shields.io/github/issues/aureooms/js-sort.svg?style=flat)](https://github.com/aureooms/js-sort/issues)
21-
[![Inline docs](http://inch-ci.org/github/aureooms/js-sort.svg?branch=master&style=shields)](http://inch-ci.org/github/aureooms/js-sort)
22-
23-
24-
Can be managed through [jspm](https://github.com/jspm/jspm-cli),
25-
[duo](https://github.com/duojs/duo),
26-
[component](https://github.com/componentjs/component),
27-
[bower](https://github.com/bower/bower),
28-
[ender](https://github.com/ender-js/Ender),
29-
[jam](https://github.com/caolan/jam),
30-
[spm](https://github.com/spmjs/spm),
31-
and [npm](https://github.com/npm/npm).
32-
33-
## Install
34-
35-
### jspm
36-
```terminal
37-
jspm install github:aureooms/js-sort
38-
# or
39-
jspm install npm:aureooms-js-sort
40-
```
41-
### duo
42-
No install step needed for duo!
43-
44-
### component
45-
```terminal
46-
component install aureooms/js-sort
47-
```
48-
49-
### bower
50-
```terminal
51-
bower install aureooms-js-sort
52-
```
53-
54-
### ender
55-
```terminal
56-
ender add aureooms-js-sort
57-
```
58-
59-
### jam
60-
```terminal
61-
jam install aureooms-js-sort
62-
```
63-
64-
### spm
65-
```terminal
66-
spm install aureooms-js-sort --save
67-
```
68-
69-
### npm
70-
```terminal
71-
npm install aureooms-js-sort --save
72-
```
73-
74-
## Require
75-
### jspm
76-
```js
77-
let sort = require( "github:aureooms/js-sort" ) ;
78-
// or
79-
import sort from 'aureooms-js-sort' ;
80-
```
81-
### duo
82-
```js
83-
let sort = require( "aureooms/js-sort" ) ;
84-
```
85-
86-
### component, ender, spm, npm
87-
```js
88-
let sort = require( "aureooms-js-sort" ) ;
89-
```
90-
91-
### bower
92-
The script tag exposes the global variable `sort`.
93-
```html
94-
<script src="bower_components/aureooms-js-sort/js/dist/sort.min.js"></script>
95-
```
96-
Alternatively, you can use any tool mentioned [here](http://bower.io/docs/tools/).
97-
98-
### jam
99-
```js
100-
require( [ "aureooms-js-sort" ] , function ( sort ) { ... } ) ;
101-
```
20+
[![Documentation](https://aureooms.github.io/js-sort/badge.svg)](https://aureooms.github.io/js-sort/source.html)
10221

10322
## Children
10423

10524
This package has several children:
10625

107-
- [aureooms/js-bucketsort](https://github.com/aureooms/js-bucketsort): bucketsort code bricks for JavaScript
108-
- [aureooms/js-countingsort](https://github.com/aureooms/js-countingsort): countingsort code bricks for JavaScript
109-
- [aureooms/js-in-situ-sort-spec](https://github.com/aureooms/js-in-situ-sort-spec): in place sorting code bricks for JavaScript
110-
- [aureooms/js-heapsort](https://github.com/aureooms/js-heapsort): heapsort code bricks for JavaScript
111-
- [aureooms/js-quicksort](https://github.com/aureooms/js-quicksort): quicksort code bricks for JavaScript
112-
- [aureooms/js-mergesort](https://github.com/aureooms/js-mergesort): mergesort code bricks for JavaScript
113-
- [aureooms/js-merging](https://github.com/aureooms/js-merging): merging code bricks for JavaScript
114-
- [aureooms/js-partition](https://github.com/aureooms/js-partition): partition code bricks for JavaScript
115-
- [aureooms/js-radixsort](https://github.com/aureooms/js-radixsort): radixsort code bricks for JavaScript
116-
- [aureooms/js-selection](https://github.com/aureooms/js-selection): selection code bricks for JavaScript
117-
- [aureooms/js-odd-even-mergesort](https://github.com/aureooms/js-odd-even-mergesort): Batcher's odd-even mergesort code bricks for JavaScript
118-
119-
120-
## Use
121-
122-
```js
123-
let array = require( "aureooms-js-array" ) ;
124-
let search = require( "aureooms-js-search" ) ;
125-
let compare = require( "aureooms-js-compare" ) ;
126-
127-
let fordjohnson = function ( compare , a , i , j ) {
128-
129-
sort._fordjohnson( search.binarysearch )( compare , array.swap , a , i , j ) ;
130-
131-
} ;
132-
133-
let a = [ 1 , 6 , 5 , 3 , 2 , 4 ] ;
134-
135-
fordjohnson( compare.increasing , a , 0 , a.length ) ;
26+
- [aureooms/js-bucketsort](https://github.com/aureooms/js-bucketsort): bucketsort for JavaScript
27+
- [aureooms/js-countingsort](https://github.com/aureooms/js-countingsort): countingsort for JavaScript
28+
- [aureooms/js-in-situ-sort-spec](https://github.com/aureooms/js-in-situ-sort-spec): in place sorting for JavaScript
29+
- [aureooms/js-heapsort](https://github.com/aureooms/js-heapsort): heapsort for JavaScript
30+
- [aureooms/js-quicksort](https://github.com/aureooms/js-quicksort): quicksort for JavaScript
31+
- [aureooms/js-mergesort](https://github.com/aureooms/js-mergesort): mergesort for JavaScript
32+
- [aureooms/js-merging](https://github.com/aureooms/js-merging): merging for JavaScript
33+
- [aureooms/js-partition](https://github.com/aureooms/js-partition): partition for JavaScript
34+
- [aureooms/js-radixsort](https://github.com/aureooms/js-radixsort): radixsort for JavaScript
35+
- [aureooms/js-selection](https://github.com/aureooms/js-selection): selection for JavaScript
36+
- [aureooms/js-odd-even-mergesort](https://github.com/aureooms/js-odd-even-mergesort): Batcher's odd-even mergesort for JavaScript
13637

137-
a ; // [ 1 , 2 , 3 , 4 , 5 , 6 ]
138-
139-
fordjohnson( compare.decreasing , a , 0 , a.length ) ;
140-
141-
a ; // [ 6 , 5 , 4 , 3 , 2 , 1 ]
142-
143-
// but also
144-
145-
/** insertionsort */
146-
let insertionsort = sort.insertionsort ;
147-
/** selectionsort */
148-
let selectionsort = sort.selectionsort ;
149-
/** bubblesort */
150-
let bubblesort = sort.bubblesort ;
151-
```
15238

15339
## Reference
15440

bower.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

component.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

doc/css/style.css

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
h1,
2+
h2,
3+
.navigation,
4+
.layout-container > header,
5+
footer
6+
{
7+
border: none;
8+
}
9+
10+
.project-name {
11+
color: #FC913A;
12+
font-weight: bold;
13+
}
14+
15+
.layout-container > header > a.repo-url-github {
16+
font-size: inherit;
17+
display: inline;
18+
background: none;
19+
vertical-align: inherit;
20+
}
21+
22+
.search-box img {
23+
display: none;
24+
}
25+
26+
.search-box::before{
27+
content: "search";
28+
}
29+
30+
.search-input-edge {
31+
height: 0px;
32+
}
33+
34+
.search-result {
35+
width: 300px;
36+
margin-left: 42px;
37+
box-shadow: 1px 1px 13px rgba(0,0,0,0.2);
38+
}
39+
40+
.search-input {
41+
visibility: visible;
42+
}
43+
44+
.search-result li.search-separator {
45+
text-transform: capitalize;
46+
background-color: #ccc;
47+
}
48+
49+
span[data-ice="signature"] > span {
50+
/*font-weight: bold;*/
51+
font-style: italic;
52+
}

doc/manual/example.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
```js
2+
import array from "aureooms-js-array" ;
3+
import search from "aureooms-js-search" ;
4+
import compare from "aureooms-js-compare" ;
5+
6+
let fordjohnson = function ( compare , a , i , j ) {
7+
8+
sort._fordjohnson( search.binarysearch )( compare , array.swap , a , i , j ) ;
9+
10+
} ;
11+
12+
let a = [ 1 , 6 , 5 , 3 , 2 , 4 ] ;
13+
14+
fordjohnson( compare.increasing , a , 0 , a.length ) ;
15+
16+
a ; // [ 1 , 2 , 3 , 4 , 5 , 6 ]
17+
18+
fordjohnson( compare.decreasing , a , 0 , a.length ) ;
19+
20+
a ; // [ 6 , 5 , 4 , 3 , 2 , 1 ]
21+
22+
// but also
23+
24+
/** insertionsort */
25+
let insertionsort = sort.insertionsort ;
26+
/** selectionsort */
27+
let selectionsort = sort.selectionsort ;
28+
/** bubblesort */
29+
let bubblesort = sort.bubblesort ;
30+
```

doc/manual/installation.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Can be managed using
2+
[jspm](http://jspm.io)
3+
or [npm](https://github.com/npm/npm).
4+
5+
### jspm
6+
```terminal
7+
jspm install npm:aureooms-js-sort
8+
```
9+
10+
### npm
11+
```terminal
12+
npm install aureooms-js-sort --save
13+
```

doc/manual/overview.md

Whitespace-only changes.

0 commit comments

Comments
 (0)