Skip to content

Commit a46d39b

Browse files
$ codebricks new
1 parent 3c57066 commit a46d39b

File tree

9 files changed

+128
-2
lines changed

9 files changed

+128
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ node_modules
2626

2727
# Users Environment Variables
2828
.lock-wscript
29+
30+
# groc
31+
doc

.groc.json

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

.travis.yml

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

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
js-random
2-
=========
1+
[js-random](http://aureooms.github.io/js-random)
2+
==
33

44
randomness code bricks for JavaScript
5+
6+
[![Build Status](https://travis-ci.org/aureooms/js-random.svg)](https://travis-ci.org/aureooms/js-random)
7+
[![Coverage Status](https://coveralls.io/repos/aureooms/js-random/badge.png)](https://coveralls.io/r/aureooms/js-random)
8+
[![Dependencies Status](https://david-dm.org/aureooms/js-random.png)](https://david-dm.org/aureooms/js-random#info=dependencies)
9+
[![devDependencies Status](https://david-dm.org/aureooms/js-random/dev-status.png)](https://david-dm.org/aureooms/js-random#info=devDependencies)
10+
[![Code Climate](https://codeclimate.com/github/aureooms/js-random.png)](https://codeclimate.com/github/aureooms/js-random)

bower.json

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

js/index.js

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

package.json

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

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+
"random.js"
11+
]
12+
},
13+
"out": "js/dist/",
14+
"ns": "random",
15+
"debug": false,
16+
"src": "js/src/"
17+
}

test/js/index.js

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

0 commit comments

Comments
 (0)