Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sebs committed Oct 3, 2016
0 parents commit dbda8d5
Show file tree
Hide file tree
Showing 12 changed files with 117 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
out
node_modules
20 changes: 20 additions & 0 deletions .jshintrc
@@ -0,0 +1,20 @@
{
"browserify": true,
"bitwise": false,
"camelcase": false,
"eqeqeq": false,
"freeze": true,
"funcscope": false,
"maxcomplexity": 12, /* our target is 3! */
"maxdepth": 3,
"maxerr": 50,
"nonew": true,
"unused": true,
"undef": true,
"node": true,
"mocha": true,
"esversion": 6,
"predef": [
"console"
]
}
13 changes: 13 additions & 0 deletions .travis.yml
@@ -0,0 +1,13 @@
language: node_js
node_js:
- "6.5.0"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
notifications:
email: false
3 changes: 3 additions & 0 deletions Readme.md
@@ -0,0 +1,3 @@
# Etherscan API

Promised API to access the therscan API
3 changes: 3 additions & 0 deletions docs/tutorial.md
@@ -0,0 +1,3 @@
# Tutorial

The tutorial
7 changes: 7 additions & 0 deletions index.js
@@ -0,0 +1,7 @@
'use strict';
const init = require('./lib/init');


module.exports = {
init
};
16 changes: 16 additions & 0 deletions jsdoc.json
@@ -0,0 +1,16 @@
{
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc","closure"]
},
"source": {
"include": [ "./index.js", "./lib/init.js" ],
"includePattern": ".+\\.js(doc)?$",
"excludePattern": "(^|\\/|\\\\)_"
},
"plugins": [],
"templates": {
"cleverLinks": false,
"monospaceLinks": false
}
}
3 changes: 3 additions & 0 deletions lib/init.js
@@ -0,0 +1,3 @@
module.exports = function () {
return true;
};
37 changes: 37 additions & 0 deletions package.json
@@ -0,0 +1,37 @@
{
"name": "etherscan-api",
"version": "0.0.1",
"description": "",
"main": "index.js",
"readme": "Readme.md",
"scripts": {
"test": "mocha",
"posttest": "npm run lint",
"prebundle": "npm test",
"lint": "jshint lib test",
"docs": "jsdoc -c ./jsdoc.json -R ./Readme.md -u ./docs",
"preversion": "npm run lint",
"postversion": "git push && git push --tags",
"build": "npm run test && npm run docs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Michikoid/module-template.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Michikoid/module-template/issues"
},
"homepage": "https://github.com/Michikoid/module-template#readme",
"devDependencies": {
"chai": "^3.5.0",
"mocha": "^3.0.2",
"watch": "^0.19.2",
"jsdoc": "^3.4.0",
"jshint": "^2.9.3"
},
"dependencies": {

}
}
1 change: 1 addition & 0 deletions test/fixtures/compile.manifest.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions test/fixtures/migrate.manifest.json
@@ -0,0 +1 @@
[{"contract":"DualIndex","abi":"[]\n","address":"0x737cae1bdce788dbbc6aa89039c990165652981a"}]
11 changes: 11 additions & 0 deletions test/index-test.js
@@ -0,0 +1,11 @@
'use strict';
const assert = require('chai').assert;
describe('index.js', function() {
it('can be required', function( ){
require('../.');
});
it('has init', function( ){
var res = require('../.');
assert.ok(res.init);
});
});

0 comments on commit dbda8d5

Please sign in to comment.