Socket
Book a DemoInstallSign in
Socket

fortytwojs

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fortytwojs

Package to demonstrate CI and publishing to npmjs.

latest
Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source

FortyTwoJS

An npm package to demonstrate how to test, build and publish to the NPM Registry using CircleCI.

CircleCI

npm version

Prerequisites

  • NodeJS

Development

Install dependencies (substitute 'npm' if you don't have yarn):

$ npm install

Lint and run tests:

$ npm run lint
$ npm test

Workflow

TL;DR: Use GitHub Flow.

In more detail:

  • Create a feature branch.
  • Create and push commits on that branch.
  • The feature branch will get built on CircleCI with each push.
  • Update the CHANGELOG with description of changes.
  • Create a Pull Request on BitBucket.
  • When the feature PR is merged, master will get built on CircleCI.

Releasing

  • Update the CHANGELOG to list the new version.

  • Add files and commit

     $ git add CHANGELOG.md ...
     $ git commit -m "Release v.X.Y.Z"
    
  • Bump the version to the desired level:

     $ npm version (major|minor|patch)
    
  • Push

     $ git push origin master --tags
    

The new version will get built in CircleCI and pushed to the NPM Registry.

Installing

To install and use it in another project:

$ npm install fortytwojs

License

This code is licensed and distributed under the terms of the MIT License (see LICENSE).

Keywords

42

FAQs

Package last updated on 11 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts