New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

build-this-branch

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-this-branch

Script to automate creating built branches

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

build-this-branch

Script to automate creating built branches.

Support this project by ⭐️ starring and sharing it. Follow me to see what other cool projects I'm working on! ❤️

Usage

Run in your Git repository from the branch you want to build:

npx build-this-branch

⚠️ Warning: This command will force-push to the remote branch built/<current branch>. Please make sure there are no unsaved changes there. You can configure the built branch name with --built-branch <branch name>.

Flags

FlagDescription
-c, --build-command <command>The command to build the branch. (default: npm run build)
-b, --built-branch <branch name>The name of the built branch. Defaults to prefixing "built/" to the current branch.
-r, --remote <remote>The remote to push to. (default: origin)
-d, --dryDry run mode
-h, --helpShow help
-v, --versionShow version

FAQ

What's a built branch?

In projects that build from source files, a built branch is a branch that contains built assets so it can be installed with npm:

npm install 'organization/repository#built-branch'

Built branches are useful for quickly testing changes and can be preferrable over permanently publishing a prerelease to npm.

What does this script do?

To make a built branch, this script does the following:

  1. Run build script (eg. npm run build)
  2. Create a new branch with the built/ namespace
  3. Detects npm publish files and commits them to the new branch
  4. Force pushes to remote
  5. Deletes local built branch
  6. Prints the installation command to install from the built branch

Keywords

FAQs

Package last updated on 08 Jan 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc