Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

buildman

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buildman - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

35

index.js
var
BUILD_ROOT = "public/b"
CONF_FILE = process.env.PWD + '/package.json'
var fs = require('fs')
, conf = require( process.env.PWD + '/package.json') || {}
, exec = require('child_process').exec
, conf = require( CONF_FILE ) || {}

@@ -12,3 +18,4 @@

var newest = 0
// Build on conf changes
var newest = fs.statSync(CONF_FILE).mtime

@@ -105,3 +112,22 @@ args.input.forEach(function(name, i, arr){

var map = {
"--all": buildAll,
"--bundle": buildBundle
}
function buildBundle() {
if (fs.existsSync(BUILD_ROOT)) {
} else {
fs.mkdirSync(BUILD_ROOT)
}
// get list of hashs
exec('git log --format=%H -6', function (err, out, stderr) {
console.log(out.split(/\s+/))
})
}
function buildAll() {

@@ -111,2 +137,4 @@ var min = Object.keys(conf.buildman || {})

min.forEach(function(file){
if (map[file]) return
var args = {

@@ -126,5 +154,2 @@ input: conf.buildman[file],

var map = {
"--all": buildAll
}

@@ -131,0 +156,0 @@ function invalidTarget(name) {

2

package.json
{
"name": "buildman",
"version": "0.0.5",
"version": "0.0.6",
"description": "Expiremental webapp bundler",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

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