The `bitcore-build` package serves as a specialized build helper within the larger Bitcore ecosystem by BitPay, providing pre-configured Gulp tasks for common development workflows. This utility streamlines processes such as linting, testing, and creating browser-compatible bundles for Bitcore modules, making it an essential component for developers contributing to or utilizing the Bitcore full stack for Bitcoin and blockchain-based applications. The current stable version, 10.10.5, aligns with the Bitcore monorepo's even-odd versioning convention, where even major versions denote stable releases. While Gulp is a foundational dependency, `bitcore-build` differentiates itself by offering a tailored, integrated build solution specifically designed for the Bitcore module architecture, rather than a general-purpose build tool. Its release cadence is tied to the overall Bitcore project, which sees continuous development and updates to its core libraries and services.
npm install bitcore-buildVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to integrate `bitcore-build` into a Gulpfile, initialize it for a submodule, and define a default Gulp task to execute the common build, test, and coverage tasks provided by the package.
Refer to the `bitpay/bitcore` monorepo's `CHANGELOG.md` or release notes before upgrading, especially across major versions. Pin exact versions in `package.json` for production deployments.
For new projects outside the direct Bitcore ecosystem, consider modern build tools. For existing Bitcore projects, continue using Gulp as prescribed.
Pass `{ skipBrowsers: true }` as the second argument when calling `bitcoreTasks('your-module-name', { skipBrowsers: true });`Ensure `gulp` is installed locally in your project: `npm install --save-dev gulp` or `yarn add --dev gulp`.
Verify your `require` statement. The module is expected to export a function directly: `const bitcoreTasks = require('bitcore-build');`. Avoid `const { bitcoreTasks } = require('bitcore-build');` as it's a default export.Check if `bitcoreTasks('your-module', { skipBrowsers: true });` is used. If so, remove 'browser' from your `gulp.task` definition, or remove the `skipBrowsers` option if browser builds are intended.