@dolittle/build2
Base build pipeline for Dolittle JavaScript projects
Last updated 5 months ago by einari .
ISC · Original npm · Tarball · package.json
$ cnpm install @dolittle/build2 
SYNC missed versions from official npm registry.

Build

This project represents a base build pipeline for JavaScript based projects. Everything that is common among any JavaScript project, be it a node or browser (client) based is found here.

Using it

The project is published as an NPM package and can be used by adding a dev reference to it:

$ npm install @dolittle/build --save-dev

or with Yarn:

$ yarn add -D @dolittle/build

Dependencies

This project has all its dependencies as regular dependencies, which is why it is important to add a reference to this package as a developer dependency. The reason for this is to be able to get all the packages down that the build pipeline need onto your developer box.

Transpilation using Babel

This package assumes the use of Babel with presets and plugins added. We're paying attention to what gets through the different stages and gets stabilized before we add plugins for them. As a general rule of thumb, we tend to not include proposals that has not reached stage 3 from the standards committee. Babel has an overview of what is currently in stage 3.

Gulp

Included in the package is a Gulp based build pipeline. The purpose of the build is to enable an easy way to build and output what is needed for a deployable package that is widely supported in any JavaScript and module environment. It outputs by default the following module formats:

  • AMD
  • CommonJS
  • ESModule
  • SystemJS
  • UMD

To take advantage of it, you'll need to install Gulp globally on your machine:

$ npm install -g gulp

with yarn

$ yarn global add gulp

Once you've done that, you can start using the build tasks by createing a gulpfile.js at the root of your project and add the following:

require('@dolittle/build/dist/gulp/setup')(exports);

Scripts in package.json

Eslint

Package.json 2018 babel parser

JSConfig.json

Yarn

Yalc

Recommended setup with workspaces

Tests

Karma

Wallaby

If you want to be using Wallaby, there is a pre-defined setup for it that will work with the Babel configuration for the project.

Modules

Mocking

Sinon

Assertions

Chai Sinon Chai Sinon Chai in Order

Current Tags

  • 3.0.30                                ...           latest (5 months ago)

31 Versions

  • 3.0.30                                ...           5 months ago
  • 3.0.29                                ...           5 months ago
  • 3.0.28                                ...           5 months ago
  • 3.0.27                                ...           5 months ago
  • 3.0.26                                ...           5 months ago
  • 3.0.25                                ...           5 months ago
  • 3.0.24                                ...           5 months ago
  • 3.0.23                                ...           5 months ago
  • 3.0.22                                ...           5 months ago
  • 3.0.21                                ...           5 months ago
  • 3.0.20                                ...           5 months ago
  • 3.0.19                                ...           5 months ago
  • 3.0.18                                ...           5 months ago
  • 3.0.17                                ...           5 months ago
  • 3.0.16                                ...           5 months ago
  • 3.0.15                                ...           5 months ago
  • 3.0.14                                ...           5 months ago
  • 3.0.13                                ...           5 months ago
  • 3.0.12                                ...           5 months ago
  • 3.0.11                                ...           5 months ago
  • 3.0.10                                ...           5 months ago
  • 3.0.9                                ...           5 months ago
  • 3.0.8                                ...           5 months ago
  • 3.0.7                                ...           5 months ago
  • 3.0.6                                ...           5 months ago
  • 3.0.5                                ...           5 months ago
  • 3.0.4                                ...           5 months ago
  • 3.0.3                                ...           5 months ago
  • 3.0.2                                ...           5 months ago
  • 3.0.1                                ...           5 months ago
  • 3.0.0                                ...           5 months ago

Copyright 2014 - 2016 © taobao.org |