Skip to content

Commit bbacbd2

Browse files
author
Micah Riggan
committed
Add 'packages/bitcore-build/' from commit '1023e8a99cd42b9241ccafe8e34c52f308c10284'
git-subtree-dir: packages/bitcore-build git-subtree-mainline: 5c24fd9 git-subtree-split: 1023e8a
2 parents 5c24fd9 + 1023e8a commit bbacbd2

File tree

7 files changed

+6676
-0
lines changed

7 files changed

+6676
-0
lines changed

packages/bitcore-build/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
node_modules/

packages/bitcore-build/.jshintrc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
3+
"browser": true, // Standard browser globals e.g. `window`, `document`.
4+
"camelcase": false, // Permit only camelcase for `var` and `object indexes`.
5+
"curly": true, // Require {} for every new block or scope.
6+
"devel": false, // Allow development statements e.g. `console.log();`.
7+
"eqeqeq": true, // Require triple equals i.e. `===`.
8+
"esnext": true, // Allow ES.next specific features such as `const` and `let`.
9+
"freeze": true, // Forbid overwriting prototypes of native objects such as Array, Date and so on.
10+
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
11+
"indent": 2, // Specify indentation spacing
12+
"latedef": true, // Prohibit variable use before definition.
13+
"newcap": false, // Require capitalization of all constructor functions e.g. `new F()`.
14+
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
15+
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
16+
"noempty": true, // Prohibit use of empty blocks.
17+
"nonew": true, // Prohibits the use of constructor functions for side-effects
18+
"quotmark": "single", // Define quotes to string values.
19+
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions.
20+
"smarttabs": false, // Supress warnings about mixed tabs and spaces
21+
"strict": true, // Require `use strict` pragma in every file.
22+
"trailing": true, // Prohibit trailing whitespaces.
23+
"undef": true, // Require all non-global variables be declared before they are used.
24+
"unused": true, // Warn unused variables.
25+
26+
"maxparams": 4, // Maximum number of parameters for a function
27+
"maxstatements": 15, // Maximum number of statements in a function
28+
"maxcomplexity": 6, // Cyclomatic complexity (http://en.wikipedia.org/wiki/Cyclomatic_complexity)
29+
"maxdepth": 4, // Maximum depth of nested control structures
30+
"maxlen": 120, // Maximum number of cols in a line
31+
"multistr": true, // Allow use of multiline EOL escaping
32+
33+
"predef": [ // Extra globals.
34+
"after",
35+
"afterEach",
36+
"before",
37+
"beforeEach",
38+
"define",
39+
"describe",
40+
"exports",
41+
"it",
42+
"module",
43+
"require"
44+
]
45+
}

packages/bitcore-build/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# bitcore-build
2+
3+
A helper to add tasks to gulp.
4+
5+
## Getting started
6+
7+
Install with:
8+
9+
```sh
10+
npm install bitcore-build
11+
```
12+
13+
and use and require in your gulp file:
14+
15+
```javascript
16+
var gulp = require('gulp');
17+
var bitcoreTasks = require('bitcore-build');
18+
19+
bitcoreTasks('submodule');
20+
gulp.task('default', ['lint', 'test', 'browser', 'coverage']);
21+
```
22+
23+
### Notes
24+
25+
* There's no default task to allow for each submodule to set up their own configuration
26+
* If the module is node-only, avoid adding the browser tasks with:
27+
```javascript
28+
var bitcoreTasks = require('bitcore-build');
29+
bitcoreTasks('submodule', {skipBrowsers: true});
30+
```
31+
32+
## Contributing
33+
34+
See [CONTRIBUTING.md](https://github.com/bitpay/bitcore) on the main bitcore repo for information about how to contribute.
35+
36+
## License
37+
38+
Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).
39+
40+
Copyright 2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.
41+

0 commit comments

Comments
 (0)