Skip to content

Commit

Permalink
Add 'packages/bitcore-build/' from commit '1023e8a99cd42b9241ccafe8e3…
Browse files Browse the repository at this point in the history
…4c52f308c10284'

git-subtree-dir: packages/bitcore-build
git-subtree-mainline: 5c24fd9
git-subtree-split: 1023e8a
  • Loading branch information
Micah Riggan committed Dec 28, 2018
2 parents 5c24fd9 + 1023e8a commit bbacbd2
Show file tree
Hide file tree
Showing 7 changed files with 6,676 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/bitcore-build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

node_modules/
45 changes: 45 additions & 0 deletions packages/bitcore-build/.jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
"browser": true, // Standard browser globals e.g. `window`, `document`.
"camelcase": false, // Permit only camelcase for `var` and `object indexes`.
"curly": true, // Require {} for every new block or scope.
"devel": false, // Allow development statements e.g. `console.log();`.
"eqeqeq": true, // Require triple equals i.e. `===`.
"esnext": true, // Allow ES.next specific features such as `const` and `let`.
"freeze": true, // Forbid overwriting prototypes of native objects such as Array, Date and so on.
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
"indent": 2, // Specify indentation spacing
"latedef": true, // Prohibit variable use before definition.
"newcap": false, // Require capitalization of all constructor functions e.g. `new F()`.
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
"noempty": true, // Prohibit use of empty blocks.
"nonew": true, // Prohibits the use of constructor functions for side-effects
"quotmark": "single", // Define quotes to string values.
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions.
"smarttabs": false, // Supress warnings about mixed tabs and spaces
"strict": true, // Require `use strict` pragma in every file.
"trailing": true, // Prohibit trailing whitespaces.
"undef": true, // Require all non-global variables be declared before they are used.
"unused": true, // Warn unused variables.

"maxparams": 4, // Maximum number of parameters for a function
"maxstatements": 15, // Maximum number of statements in a function
"maxcomplexity": 6, // Cyclomatic complexity (http://en.wikipedia.org/wiki/Cyclomatic_complexity)
"maxdepth": 4, // Maximum depth of nested control structures
"maxlen": 120, // Maximum number of cols in a line
"multistr": true, // Allow use of multiline EOL escaping

"predef": [ // Extra globals.
"after",
"afterEach",
"before",
"beforeEach",
"define",
"describe",
"exports",
"it",
"module",
"require"
]
}
41 changes: 41 additions & 0 deletions packages/bitcore-build/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# bitcore-build

A helper to add tasks to gulp.

## Getting started

Install with:

```sh
npm install bitcore-build
```

and use and require in your gulp file:

```javascript
var gulp = require('gulp');
var bitcoreTasks = require('bitcore-build');

bitcoreTasks('submodule');
gulp.task('default', ['lint', 'test', 'browser', 'coverage']);
```

### Notes

* There's no default task to allow for each submodule to set up their own configuration
* If the module is node-only, avoid adding the browser tasks with:
```javascript
var bitcoreTasks = require('bitcore-build');
bitcoreTasks('submodule', {skipBrowsers: true});
```

## Contributing

See [CONTRIBUTING.md](https://github.com/bitpay/bitcore) on the main bitcore repo for information about how to contribute.

## License

Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).

Copyright 2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.

Loading

0 comments on commit bbacbd2

Please sign in to comment.