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

oven-build

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oven-build - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

25

lib/oven.js

@@ -9,3 +9,3 @@ // Generated by CoffeeScript 1.7.1

(function() {
var build, clc, clean, cmd, coffee, coffeelint, coffeelintConfig, dir, dirs, fileIs, fs, genCpyFunc, genList, lint, loc, ovenfile, ovenfilePath, pkg, runCmd, runSilent, total, watch, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _m, _ref;
var build, clc, clean, cmd, coffee, coffeelint, coffeelintConfig, dir, dirs, fileIs, fs, genCpyFunc, genList, lint, lintAndBuild, loc, ovenfile, ovenfilePath, pkg, runCmd, runSilent, total, watch, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _m, _ref;

@@ -76,2 +76,13 @@ clc = require("cli-color");

lintAndBuild = function(src, bin, cb) {
return lint(src, true, function(code) {
if (code !== -900) {
build(src, bin);
return cb(true);
} else {
return cb(false);
}
});
};
watch = function(src, bin) {

@@ -104,3 +115,3 @@ var binPath, f, srcFiles, srcPath, stat, _i, _len, _results;

clean = function(src, bin) {
clean = function(bin) {
var binFiles, binPath, f, stat, _i, _len, _results;

@@ -114,2 +125,3 @@ binFiles = fs.readdirSync(bin);

if (stat.isDirectory()) {
clean(binPath);
_results.push(fs.rmdirSync(binPath));

@@ -207,6 +219,7 @@ } else {

if (!dir.skipLint) {
lint(dir.src, true, function(code) {
if (code !== -900) {
build(dir.src, dir.bin);
lintAndBuild(dir.src, dir.bin, function(success) {
if (success) {
return console.log(clc.green("Build succeeded."));
} else {
return console.log(clc.red("Build failed."));
}

@@ -229,3 +242,3 @@ });

dir = dirs[_k];
clean(dir.src, dir.bin);
clean(dir.bin);
}

@@ -232,0 +245,0 @@ break;

@@ -12,3 +12,3 @@ {

},
"version":"0.0.4",
"version":"0.0.5",
"dependencies": {

@@ -15,0 +15,0 @@ "coffee-script":"1.7.1",

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