Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
authored and
root
committed
Jul 5, 2017
0 parents
commit 7dbf3a0
Showing
93 changed files
with
52,578 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# from https://github.com/github/gitignore/blob/master/Node.gitignore | ||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
*.swp | ||
tags | ||
pids | ||
logs | ||
results | ||
build | ||
|
||
node_modules | ||
|
||
# extras | ||
*.swp | ||
*.swo | ||
*~ | ||
.project | ||
.idea | ||
peerdb.json | ||
|
||
npm-debug.log | ||
.nodemonignore | ||
|
||
.DS_Store | ||
db/txs/* | ||
db/txs | ||
db/testnet/txs/* | ||
db/testnet/txs | ||
db/blocks/* | ||
db/blocks | ||
db/testnet/blocks/* | ||
db/testnet/blocks | ||
|
||
README.html | ||
public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment. | ||
"browser": true, // Standard browser globals e.g. `window`, `document`. | ||
"esnext": true, // Allow ES.next specific features such as `const` and `let`. | ||
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.). | ||
"camelcase": false, // Permit only camelcase for `var` and `object indexes`. | ||
"curly": false, // Require {} for every new block or scope. | ||
"eqeqeq": true, // Require triple equals i.e. `===`. | ||
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` | ||
"latedef": true, // Prohibit variable use before definition. | ||
"newcap": true, // Require capitalization of all constructor functions e.g. `new F()`. | ||
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`. | ||
"quotmark": "single", // Define quotes to string values. | ||
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions. | ||
"undef": true, // Require all non-global variables be declared before they are used. | ||
"unused": true, // Warn unused variables. | ||
"strict": true, // Require `use strict` pragma in every file. | ||
"trailing": true, // Prohibit trailing whitespaces. | ||
"smarttabs": false, // Suppresses warnings about mixed tabs and spaces | ||
"globals": { // Globals variables. | ||
"angular": true | ||
}, | ||
"predef": [ // Extra globals. | ||
"define", | ||
"require", | ||
"exports", | ||
"module", | ||
"describe", | ||
"before", | ||
"beforeEach", | ||
"after", | ||
"afterEach", | ||
"it", | ||
"inject", | ||
"$", | ||
"io", | ||
"app", | ||
"moment" | ||
], | ||
"indent": false, // Specify indentation spacing | ||
"devel": true, // Allow development statements e.g. `console.log();`. | ||
"noempty": true // Prohibit use of empty blocks. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
*.swp | ||
tags | ||
pids | ||
logs | ||
results | ||
build | ||
|
||
node_modules | ||
|
||
# extras | ||
*.swp | ||
*.swo | ||
*~ | ||
.project | ||
peerdb.json | ||
|
||
npm-debug.log | ||
.nodemonignore | ||
|
||
.DS_Store | ||
db/txs/* | ||
db/txs | ||
db/testnet/txs/* | ||
db/testnet/txs | ||
db/blocks/* | ||
db/blocks | ||
db/testnet/blocks/* | ||
db/testnet/blocks | ||
|
||
README.html | ||
k* | ||
public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
language: node_js | ||
node_js: | ||
- '0.10' | ||
install: npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
'use strict'; | ||
|
||
module.exports = function(grunt) { | ||
|
||
//Load NPM tasks | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-mocha-test'); | ||
grunt.loadNpmTasks('grunt-nodemon'); | ||
grunt.loadNpmTasks('grunt-concurrent'); | ||
grunt.loadNpmTasks('grunt-env'); | ||
grunt.loadNpmTasks('grunt-markdown'); | ||
|
||
// Project Configuration | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
watch: { | ||
readme: { | ||
files: ['README.md'], | ||
tasks: ['markdown'] | ||
}, | ||
js: { | ||
files: ['Gruntfile.js', 'insight.js', 'app/**/*.js'], | ||
options: { | ||
livereload: true, | ||
}, | ||
}, | ||
test: { | ||
files: ['test/**/*.js', 'test/*.js','app/**/*.js'], | ||
tasks: ['test'], | ||
} | ||
}, | ||
jshint: { | ||
all: { | ||
src: ['Gruntfile.js', 'insight.js', 'app/**/*.js', 'lib/*.js', 'config/*.js'], | ||
options: { | ||
jshintrc: true | ||
} | ||
} | ||
}, | ||
mochaTest: { | ||
options: { | ||
reporter: 'spec', | ||
}, | ||
src: ['test/**/*.js'], | ||
}, | ||
nodemon: { | ||
dev: { | ||
script: 'insight.js', | ||
options: { | ||
args: [], | ||
ignore: ['test/**/*', 'util/**/*', 'dev-util/**/*'], | ||
// nodeArgs: ['--debug'], | ||
delayTime: 1, | ||
env: { | ||
PORT: 3000 | ||
}, | ||
cwd: __dirname | ||
} | ||
} | ||
}, | ||
concurrent: { | ||
tasks: ['nodemon', 'watch'], | ||
options: { | ||
logConcurrentOutput: true | ||
} | ||
}, | ||
env: { | ||
test: { | ||
NODE_ENV: 'test' | ||
} | ||
}, | ||
markdown: { | ||
all: { | ||
files: [ | ||
{ | ||
expand: true, | ||
src: 'README.md', | ||
dest: '.', | ||
ext: '.html' | ||
} | ||
] | ||
} | ||
} | ||
}); | ||
|
||
//Making grunt default to force in order not to break the project. | ||
grunt.option('force', true); | ||
|
||
//Default task(s). | ||
grunt.registerTask('default', ['concurrent']); | ||
|
||
//Test task. | ||
grunt.registerTask('test', ['env:test', 'mochaTest']); | ||
}; |
Oops, something went wrong.