Skip to content

Commit 861ebdd

Browse files
$ codebricks new
1 parent 5e3ab02 commit 861ebdd

File tree

14 files changed

+252
-1
lines changed

14 files changed

+252
-1
lines changed

.codeclimate.yml

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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ build/Release
2525
# Dependency directory
2626
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
2727
node_modules
28+
29+
# groc
30+
doc

.groc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"glob": [
3+
"js/src/**/*.js",
4+
"README.md"
5+
],
6+
"github": true
7+
}

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: node_js
2+
3+
node_js:
4+
- "iojs"
5+
- "0.12"
6+
- "0.11"
7+
- "0.10"
8+
9+
install:
10+
- npm -d install
11+
12+
script:
13+
- npm test
14+
15+
after_success:
16+
- ./node_modules/.bin/coveralls < coverage/lcov.info || true
17+
- ./node_modules/.bin/codeclimate < coverage/lcov.info || true

README.md

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

bower.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"version": "0.0.0",
3+
"main": "js/dist/bucketsort.js",
4+
"homepage": "http://aureooms.github.io/js-bucketsort/",
5+
"name": "aureooms-js-bucketsort",
6+
"ignore": [
7+
"js/index.js",
8+
"js/src",
9+
"test",
10+
"pkg.json",
11+
"package.json",
12+
"inch.json",
13+
".groc.json",
14+
".travis.yml",
15+
".codeclimate.yml",
16+
".gitignore",
17+
"README.md"
18+
],
19+
"license": "AGPL-3.0",
20+
"description": "bucketsort code bricks for JavaScript"
21+
}

component.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.0.0",
3+
"main": "js/dist/bucketsort.js",
4+
"license": "AGPL-3.0",
5+
"repo": "aureooms/js-bucketsort",
6+
"name": "aureooms-js-bucketsort",
7+
"description": "bucketsort code bricks for JavaScript",
8+
"scripts": [
9+
"js/dist/bucketsort.js"
10+
]
11+
}

inch.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files" : {
3+
"included": [ "js/src/**/*.js" ]
4+
}
5+
}

js/index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
var pkg , fs , data , opt ;
2+
3+
pkg = require( "aureooms-node-package" ) ;
4+
5+
fs = require( "fs" ) ;
6+
data = fs.readFileSync( pkg.config, "utf8" ) ;
7+
opt = JSON.parse( data ) ;
8+
9+
opt = {
10+
name : opt.name ,
11+
src : __dirname + "/src/" ,
12+
exports : module.exports ,
13+
base : 0 ,
14+
debug : opt.debug
15+
} ;
16+
17+
pkg.include( opt ) ;

js/src/dummy.js

Whitespace-only changes.

package.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"dependencies": {},
3+
"name": "aureooms-js-bucketsort",
4+
"homepage": "http://aureooms.github.io/js-bucketsort/",
5+
"spm": {
6+
"main": "js/dist/bucketsort.js"
7+
},
8+
"scripts": {
9+
"build": "./node_modules/.bin/aureooms-node-package-build",
10+
"test": "./node_modules/.bin/aureooms-node-package-test",
11+
"doc": "./node_modules/.bin/groc"
12+
},
13+
"version": "0.0.0",
14+
"main": "js/dist/bucketsort.js",
15+
"repository": {
16+
"url": "https://github.com/aureooms/js-bucketsort.git",
17+
"type": "git"
18+
},
19+
"license": "AGPL-3.0",
20+
"author": "aureooms",
21+
"devDependencies": {
22+
"aureooms-node-package": "^4.2.3"
23+
},
24+
"description": "bucketsort code bricks for JavaScript",
25+
"keywords": [
26+
"bricks",
27+
"bucketsort",
28+
"ender",
29+
"javascript",
30+
"js",
31+
"sorting"
32+
],
33+
"bugs": {
34+
"url": "https://github.com/aureooms/js-bucketsort/issues"
35+
}
36+
}

pkg.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"code": {
3+
"test": [
4+
"test",
5+
"js"
6+
],
7+
"main": [
8+
"js",
9+
"dist",
10+
"bucketsort.js"
11+
]
12+
},
13+
"debug": false,
14+
"src": "js/src/",
15+
"out": "js/dist/",
16+
"name": "bucketsort"
17+
}

test/js/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var pkg , opt ;
2+
3+
pkg = require( "aureooms-node-package" ) ;
4+
5+
opt = {
6+
src : __dirname + "/src/" ,
7+
exports : module.exports ,
8+
base : 0
9+
} ;
10+
11+
pkg.include( opt ) ;

test/js/src/dummy.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
test( "dummy" , function ( ) {
3+
4+
ok( false , "tests implemented" ) ;
5+
6+
} ) ;

0 commit comments

Comments
 (0)