Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
vash15 committed May 13, 2017
1 parent 034fc32 commit 0077d3d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
8 changes: 5 additions & 3 deletions lib/eve.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const path = require('path');
const pkg = require('../package.json');
const exec = require('child_process').exec;
const ets = require('ets');
const notify = require('./notify');


program
.version(pkg.version);
Expand Down Expand Up @@ -44,7 +46,6 @@ program
.action(function (type, unit, options) {
const build = require('./build');
const scss = require('./scss');
const notify = require('./notify');

build(type, unit, false, options, function (err, time, type) {
if (err) return handleError(err, 'JS');
Expand All @@ -68,7 +69,7 @@ program
const build = require('./build');
const scss = require('./scss');
const express = require('./express');
const notify = require('./notify');
const notify = require('./notify');

express(options, function (err, port) {
console.log('Server started at port '.grey + (port + '').cyan);
Expand Down Expand Up @@ -122,7 +123,8 @@ program
const build = require('./build');
const scss = require('./scss');
const express = require('./express');
const notify = require('./notify');
const notify = require('./notify');

options.rootPath = path.join('test', unit);

express(options, function (err, port) {
Expand Down
5 changes: 3 additions & 2 deletions lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const spawn = require('child_process').spawn;
const waterfall = require('async').waterfall;
const colors = require('colors');


module.exports = function (name, done) {
var src = path.join(__dirname, '../resources/app-template');
var dest = path.join(process.cwd(), name);
Expand Down Expand Up @@ -34,7 +35,7 @@ module.exports = function (name, done) {
// });

npm.stderr.on('data', (data) => {
return next(data);
return next(data.toString());
});

npm.on('close', (code) => {
Expand All @@ -50,7 +51,7 @@ module.exports = function (name, done) {
// });

bower.stderr.on('data', (data) => {
return next(data);
return next(data.toString());
});

bower.on('close', (code) => {
Expand Down
13 changes: 10 additions & 3 deletions lib/notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ const _ = require('underscore');
const path = require('path');
const exec = require('child_process').exec;
const NotificationCenter = require('node-notifier').NotificationCenter;
const pkgApp = require(path.resolve('package.json'));
const appName = pkgApp['name'];
const everc = require('./everc')();
const defaultEditor = everc['editor']||'';

let pkgApp = {};
try{
pkgApp = require(path.resolve('package.json'));
}catch(e){
pkgApp = {};
}

const appName = pkgApp['name'];

const getCommandLine = function getCommandLine() {
switch (process.platform) {
case 'darwin' : return 'open';
Expand All @@ -28,7 +35,7 @@ const n = function n(options, done) {


options = _.defaults(options, {
title: `Eve: ${appName}`,
title: appName ? `Eve: ${appName}` : 'Eve',
sound: false,
group: 2
});
Expand Down

0 comments on commit 0077d3d

Please sign in to comment.