Skip to content

Commit f046647

Browse files
$ js new
1 parent b45113b commit f046647

File tree

13 files changed

+271
-57
lines changed

13 files changed

+271
-57
lines changed

.codacy.yml

Lines changed: 6 additions & 0 deletions
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/**"

.codeclimate.yml

Lines changed: 6 additions & 0 deletions
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

Lines changed: 6 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,10 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
1+
# Dependency directory
2+
node_modules
3+
jspm_packages
74

8-
# Runtime data
9-
pids
10-
*.pid
11-
*.seed
12-
*.pid.lock
13-
14-
# Directory for instrumented libs generated by jscoverage/JSCover
15-
lib-cov
16-
17-
# Coverage directory used by tools like istanbul
5+
# Coverage directory used by nyc
186
coverage
19-
20-
# nyc test coverage
217
.nyc_output
228

23-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24-
.grunt
25-
26-
# Bower dependency directory (https://bower.io/)
27-
bower_components
28-
29-
# node-waf configuration
30-
.lock-wscript
31-
32-
# Compiled binary addons (http://nodejs.org/api/addons.html)
33-
build/Release
34-
35-
# Dependency directories
36-
node_modules/
37-
jspm_packages/
38-
39-
# Typescript v1 declaration files
40-
typings/
41-
42-
# Optional npm cache directory
43-
.npm
44-
45-
# Optional eslint cache
46-
.eslintcache
47-
48-
# Optional REPL history
49-
.node_repl_history
50-
51-
# Output of 'npm pack'
52-
*.tgz
53-
54-
# Yarn Integrity file
55-
.yarn-integrity
56-
57-
# dotenv environment variables file
58-
.env
59-
9+
# Documentation
10+
gh-pages

.travis.yml

Lines changed: 15 additions & 0 deletions
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

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

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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Example

doc/manual/installation.md

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

doc/manual/overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Overview

doc/manual/usage.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Usage
2+
3+
The code needs a ES2015+ polyfill to work, for example
4+
[babel-polyfill](https://babeljs.io/docs/usage/polyfill).
5+
```js
6+
require( 'babel-polyfill' ) ;
7+
// or
8+
import 'babel-polyfill' ;
9+
```
10+
11+
Then
12+
```js
13+
const mincut = require( '@aureooms/js-mincut' ) ;
14+
// or
15+
import * as mincut from '@aureooms/js-mincut' ;
16+
```

0 commit comments

Comments
 (0)