Socket
Socket
Sign inDemoInstall

buildbranch

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buildbranch - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.npmignore

5

package.json
{
"name": "buildbranch",
"description": "Publish a folder to the given build branch (like gh-pages).",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "https://github.com/nfroidure/buildbranch",

@@ -10,2 +10,5 @@ "author": {

},
"bin": {
"buildbranch": "./src/bin.js"
},
"repository": {

@@ -12,0 +15,0 @@ "type": "git",

32

README.md

@@ -6,6 +6,24 @@ # buildbranch

You can use this from the command-line or within your build system.
### Command-line
First, install `buildbranch` globally:
```shell
npm install buildbranch -g
```
Then, from your master branch, run `buildbranch` with the branch and directory you want to publish. It will default to `gh-pages` and `www`.
```shell
buildbranch gh-pages www
```
### Build System
First, install `buildbranch` as a development dependency:
```shell
npm install --save buildbranch
npm install buildbranch --save-dev
```

@@ -29,2 +47,13 @@

For example in gulp you can do it like this:
```javascript
var gulp = require('gulp');
var buildBranch = require('buildbranch');
gulp.task('gh', ['build'], function(done) {
buildBranch({ folder: 'dist' }, done);
});
```
## API

@@ -89,2 +118,1 @@

accept to publish under the MIT licence.
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