Skip to content

Commit

Permalink
upgrade progress
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Nov 6, 2016
1 parent 262485a commit efe25e5
Show file tree
Hide file tree
Showing 64 changed files with 472 additions and 944 deletions.
5 changes: 2 additions & 3 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
languages:
JavaScript: true
exclude_paths:
- "js/dist/*.js"
- "js/dist/**/*.js"
- "test/*.js"
- "doc/**/*.js"
- "test/**/*.js"
- "lib/**/*.js"
33 changes: 6 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,31 +1,10 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules
jspm_packages

# Users Environment Variables
.lock-wscript
# Coverage directory used by nyc
coverage
.nyc_output

# groc
doc
# Documentation
gh-pages
7 changes: 0 additions & 7 deletions .groc.json

This file was deleted.

28 changes: 20 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
env:
- CXX=g++-4.8

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8

language: node_js

node_js:
- "iojs"
- "0.12"
- "0.11"
- "0.10"
- node

install:
- npm -d install
- npm install

script:
- npm test
- npm run cover

after_success:
- ./node_modules/.bin/coveralls < coverage/lcov.info || true
- ./node_modules/.bin/codeclimate < coverage/lcov.info || true
- bash <(curl -s https://codecov.io/bash) || true
- coveralls < coverage/lcov.info || true
- codeclimate-test-reporter < coverage/lcov.info || true
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
[js-prime](http://aureooms.github.io/js-prime)
==

prime numbers code bricks for JavaScript
Prime numbers algorithms for JavaScript.

[![NPM license](http://img.shields.io/npm/l/aureooms-js-prime.svg?style=flat)](https://raw.githubusercontent.com/aureooms/js-prime/master/LICENSE)
[![NPM version](http://img.shields.io/npm/v/aureooms-js-prime.svg?style=flat)](https://www.npmjs.org/package/aureooms-js-prime)
[![Bower version](http://img.shields.io/bower/v/aureooms-js-prime.svg?style=flat)](http://bower.io/search/?q=aureooms-js-prime)
[![Build Status](http://img.shields.io/travis/aureooms/js-prime.svg?style=flat)](https://travis-ci.org/aureooms/js-prime)
[![Coverage Status](http://img.shields.io/coveralls/aureooms/js-prime.svg?style=flat)](https://coveralls.io/r/aureooms/js-prime)
[![Dependencies Status](http://img.shields.io/david/aureooms/js-prime.svg?style=flat)](https://david-dm.org/aureooms/js-prime#info=dependencies)
[![devDependencies Status](http://img.shields.io/david/dev/aureooms/js-prime.svg?style=flat)](https://david-dm.org/aureooms/js-prime#info=devDependencies)
[![Code Climate](http://img.shields.io/codeclimate/github/aureooms/js-prime.svg?style=flat)](https://codeclimate.com/github/aureooms/js-prime)
[![NPM downloads per month](http://img.shields.io/npm/dm/aureooms-js-prime.svg?style=flat)](https://www.npmjs.org/package/aureooms-js-prime)
[![GitHub issues](http://img.shields.io/github/issues/aureooms/js-prime.svg?style=flat)](https://github.com/aureooms/js-prime/issues)
[![Inline docs](http://inch-ci.org/github/aureooms/js-prime.svg?branch=master&style=shields)](http://inch-ci.org/github/aureooms/js-prime)
[![Documentation](https://aureooms.github.io/js-prime/badge.svg)](https://aureooms.github.io/js-prime/source.html)

reference:
## Reference

- http://cr.yp.to/primegen.html
- https://github.com/jbarham/primegen.go
21 changes: 0 additions & 21 deletions bower.json

This file was deleted.

11 changes: 0 additions & 11 deletions component.json

This file was deleted.

52 changes: 52 additions & 0 deletions doc/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
h1,
h2,
.navigation,
.layout-container > header,
footer
{
border: none;
}

.project-name {
color: #FC913A;
font-weight: bold;
}

.layout-container > header > a.repo-url-github {
font-size: inherit;
display: inline;
background: none;
vertical-align: inherit;
}

.search-box img {
display: none;
}

.search-box::before{
content: "search";
}

.search-input-edge {
height: 0px;
}

.search-result {
width: 300px;
margin-left: 42px;
box-shadow: 1px 1px 13px rgba(0,0,0,0.2);
}

.search-input {
visibility: visible;
}

.search-result li.search-separator {
text-transform: capitalize;
background-color: #ccc;
}

span[data-ice="signature"] > span {
/*font-weight: bold;*/
font-style: italic;
}
Empty file added doc/manual/example.md
Empty file.
13 changes: 13 additions & 0 deletions doc/manual/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Can be managed using
[jspm](http://jspm.io)
or [npm](https://github.com/npm/npm).

### jspm
```terminal
jspm install npm:aureooms-js-prime
```

### npm
```terminal
npm install aureooms-js-prime --save
```
Empty file added doc/manual/overview.md
Empty file.
14 changes: 14 additions & 0 deletions doc/manual/usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
The code needs a ES2015+ polyfill to work, for example
[babel-polyfill](https://babeljs.io/docs/usage/polyfill).
```js
require( 'babel-polyfill' ) ;
// or
import 'babel-polyfill' ;
```

Then
```js
const measure = require( 'aureooms-js-prime' ) ;
// or
import measure from 'aureooms-js-prime' ;
```
34 changes: 34 additions & 0 deletions doc/scripts/header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
var domReady = function(callback) {
var state = document.readyState ;
if ( state === 'interactive' || state === 'complete' ) {
callback() ;
}
else {
document.addEventListener('DOMContentLoaded', callback);
}
} ;


domReady(function(){

var projectname = document.createElement('a');
projectname.classList.add('project-name');
projectname.text = 'aureooms/js-prime';
projectname.href = './index.html' ;

var header = document.getElementsByTagName('header')[0] ;
header.insertBefore(projectname,header.firstChild);

var testlink = document.querySelector('header > a[data-ice="testLink"]') ;
testlink.href = 'https://coveralls.io/github/aureooms/js-prime' ;
testlink.target = '_BLANK' ;

var searchBox = document.querySelector('.search-box');
var input = document.querySelector('.search-input');

// active search box when focus on searchBox.
input.addEventListener('focus', function(){
searchBox.classList.add('active');
});

});
37 changes: 37 additions & 0 deletions esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"source": "./src",
"destination": "./gh-pages",
"access": [
"public",
"protected",
"private"
],
"debug": false,
"index": "./README.md",
"package": "./package.json",
"title": "aureooms/js-prime",
"test": {
"type": "ava",
"source": "./test/src"
},
"manual": {
"overview": [
"./doc/manual/overview.md"
],
"installation": [
"./doc/manual/installation.md"
],
"usage": [
"./doc/manual/usage.md"
],
"example": [
"./doc/manual/example.md"
]
},
"styles": [
"./doc/css/style.css"
],
"scripts": [
"./doc/scripts/header.js"
]
}
5 changes: 0 additions & 5 deletions inch.json

This file was deleted.

Loading

0 comments on commit efe25e5

Please sign in to comment.