Skip to content

Commit 678ebe6

Browse files
$ js new
1 parent bd4f0c5 commit 678ebe6

12 files changed

+227
-35
lines changed

.codeclimate.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
languages:
2+
JavaScript: true
3+
exclude_paths:
4+
- "doc/**"
5+
- "lib/**"
6+
- "test/**"

.gitignore

+6-33
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,10 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
6-
# Runtime data
7-
pids
8-
*.pid
9-
*.seed
10-
11-
# Directory for instrumented libs generated by jscoverage/JSCover
12-
lib-cov
13-
14-
# Coverage directory used by tools like istanbul
15-
coverage
16-
17-
# nyc test coverage
18-
.nyc_output
19-
20-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
21-
.grunt
22-
23-
# node-waf configuration
24-
.lock-wscript
25-
26-
# Compiled binary addons (http://nodejs.org/api/addons.html)
27-
build/Release
28-
29-
# Dependency directories
1+
# Dependency directory
302
node_modules
313
jspm_packages
324

33-
# Optional npm cache directory
34-
.npm
5+
# Coverage directory used by nyc
6+
coverage
7+
.nyc_output
358

36-
# Optional REPL history
37-
.node_repl_history
9+
# Documentation
10+
gh-pages

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: node_js
2+
3+
node_js:
4+
- node
5+
6+
install:
7+
- npm install
8+
9+
script:
10+
- npm run cover
11+
12+
after_success:
13+
- bash <(curl -s https://codecov.io/bash) || true
14+
- coveralls < coverage/lcov.info || true
15+
- codeclimate-test-reporter < coverage/lcov.info || true

README.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1-
# js-integer-sequences
2-
Integer sequences for JavaScript
1+
[@aureooms/js-integer-sequences](https://aureooms.github.io/js-integer-sequences)
2+
==
3+
4+
Integer sequences for JavaScript.
5+
See [docs](https://aureooms.github.io/js-integer-sequences/index.html).
6+
7+
[![License](https://img.shields.io/github/license/aureooms/js-integer-sequences.svg?style=flat)](https://raw.githubusercontent.com/aureooms/js-integer-sequences/master/LICENSE)
8+
[![NPM version](https://img.shields.io/npm/v/@aureooms/js-integer-sequences.svg?style=flat)](https://www.npmjs.org/package/@aureooms/js-integer-sequences)
9+
[![Build status](https://img.shields.io/travis/aureooms/js-integer-sequences.svg?style=flat)](https://travis-ci.org/aureooms/js-integer-sequences)
10+
[![Coverage status](https://img.shields.io/coveralls/aureooms/js-integer-sequences.svg?style=flat)](https://coveralls.io/r/aureooms/js-integer-sequences)
11+
[![Dependencies status](https://img.shields.io/david/aureooms/js-integer-sequences.svg?style=flat)](https://david-dm.org/aureooms/js-integer-sequences#info=dependencies)
12+
[![Dev dependencies status](https://img.shields.io/david/dev/aureooms/js-integer-sequences.svg?style=flat)](https://david-dm.org/aureooms/js-integer-sequences#info=devDependencies)
13+
[![Code Climate](https://img.shields.io/codeclimate/github/aureooms/js-integer-sequences.svg?style=flat)](https://codeclimate.com/github/aureooms/js-integer-sequences)
14+
[![NPM downloads per month](https://img.shields.io/npm/dm/@aureooms/js-integer-sequences.svg?style=flat)](https://www.npmjs.org/package/@aureooms/js-integer-sequences)
15+
[![GitHub issues](https://img.shields.io/github/issues/aureooms/js-integer-sequences.svg?style=flat)](https://github.com/aureooms/js-integer-sequences/issues)
16+
[![Documentation](https://aureooms.github.io/js-integer-sequences/badge.svg)](https://aureooms.github.io/js-integer-sequences/source.html)

doc/css/style.css

+52
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

Whitespace-only changes.

doc/manual/installation.md

+13
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-integer-sequences
8+
```
9+
10+
### npm
11+
```terminal
12+
npm install @aureooms/js-integer-sequences --save
13+
```

doc/manual/overview.md

Whitespace-only changes.

doc/manual/usage.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
The code needs a ES2015+ polyfill to work, for example
2+
[babel-polyfill](https://babeljs.io/docs/usage/polyfill).
3+
```js
4+
require( 'babel-polyfill' ) ;
5+
// or
6+
import 'babel-polyfill' ;
7+
```
8+
9+
Then
10+
```js
11+
const integersequences = require( '@aureooms/js-integer-sequences' ) ;
12+
// or
13+
import integersequences from '@aureooms/js-integer-sequences' ;
14+
```

doc/scripts/header.js

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
var domReady = function(callback) {
2+
var state = document.readyState ;
3+
if ( state === 'interactive' || state === 'complete' ) {
4+
callback() ;
5+
}
6+
else {
7+
document.addEventListener('DOMContentLoaded', callback);
8+
}
9+
} ;
10+
11+
12+
domReady(function(){
13+
14+
var projectname = document.createElement('a');
15+
projectname.classList.add('project-name');
16+
projectname.text = 'aureooms/js-integer-sequences';
17+
projectname.href = './index.html' ;
18+
19+
var header = document.getElementsByTagName('header')[0] ;
20+
header.insertBefore(projectname,header.firstChild);
21+
22+
var testlink = document.querySelector('header > a[data-ice="testLink"]') ;
23+
testlink.href = 'https://coveralls.io/github/aureooms/js-integer-sequences' ;
24+
testlink.target = '_BLANK' ;
25+
26+
var searchBox = document.querySelector('.search-box');
27+
var input = document.querySelector('.search-input');
28+
29+
// active search box when focus on searchBox.
30+
input.addEventListener('focus', function(){
31+
searchBox.classList.add('active');
32+
});
33+
34+
});

esdoc.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"source": "./src",
3+
"destination": "./gh-pages",
4+
"access": ["public", "protected", "private"],
5+
"debug": false,
6+
"index": "./README.md",
7+
"package": "./package.json",
8+
"title": "@aureooms/js-integer-sequences",
9+
"test": {
10+
"type": "ava",
11+
"source": "./test/src"
12+
},
13+
"manual": {
14+
"overview": ["./doc/manual/overview.md"],
15+
"installation": ["./doc/manual/installation.md"],
16+
"usage": ["./doc/manual/usage.md"],
17+
"example": ["./doc/manual/example.md"]
18+
},
19+
"styles": ["./doc/css/style.css"],
20+
"scripts": ["./doc/scripts/header.js"]
21+
}

package.json

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "@aureooms/js-integer-sequences",
3+
"description": "Integer sequences for JavaScript",
4+
"version": "0.0.0",
5+
"author": "aureooms",
6+
"ava": {
7+
"require": [
8+
"babel-polyfill",
9+
"babel-register"
10+
]
11+
},
12+
"babel": {
13+
"presets": [
14+
"latest"
15+
],
16+
"env": {
17+
"development": {
18+
"sourceMaps": "inline"
19+
}
20+
}
21+
},
22+
"bugs": {
23+
"url": "https://github.com/aureooms/js-integer-sequences/issues"
24+
},
25+
"dependencies": {},
26+
"devDependencies": {
27+
"ava": "^0.16.0",
28+
"babel-cli": "^6.18.0",
29+
"babel-polyfill": "^6.16.0",
30+
"babel-preset-latest": "^6.16.0",
31+
"codeclimate-test-reporter": "^0.4.0",
32+
"coveralls": "^2.11.14",
33+
"esdoc": "^0.4.8",
34+
"nyc": "^8.4.0"
35+
},
36+
"homepage": "https://aureooms.github.io/js-integer-sequences",
37+
"keywords": ["computer-science", "integer-sequences", "mathematics"],
38+
"license": "AGPL-3.0",
39+
"main": "lib/index.js",
40+
"repository": {
41+
"type": "git",
42+
"url": "https://github.com/aureooms/js-integer-sequences"
43+
},
44+
"scripts": {
45+
"build": "rm -rf lib && babel src -d lib",
46+
"cover": "nyc --reporter=lcov npm test",
47+
"prepublish": "npm run build",
48+
"test": "ava ./test/src"
49+
}
50+
}

0 commit comments

Comments
 (0)