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

weexpack-create

Package Overview
Dependencies
Maintainers
5
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weexpack-create - npm Package Compare versions

Comparing version 0.2.11 to 0.2.12

lib/utils/gituser.js

35

lib/index.js

@@ -33,4 +33,4 @@ 'use strict';

var utils = require('./utils/index');
var getGitUser = require('./utils/git-user');
var utils = require('./utils');
/**

@@ -131,3 +131,3 @@ * @desc Sets up to forward events to another instance, or log console.

packageConfigs.version = config.version || packageConfigs.version;
packageConfigs.author = config.author || getGitUser();
packageConfigs.author = config.author || utils.gituser();
if (!config.unit) {

@@ -195,19 +195,20 @@ delete packageConfigs.scripts.unit;

events.emit('log', '\n' + chalk.green('Success! Created ' + path.basename(dir) + ' at ' + dir));
}
if (autoInstall === 'yarn') {
events.emit('log', 'Installing dependencies using yarn...');
utils.exec('yarn install', dir, false).then(function () {
utils.helper(events, dir);
}).catch(function (e) {
events.emit('error', e);
});
} else {
events.emit('log', 'Installing dependencies using npm...');
utils.exec('npm install', dir, false).then(function () {
utils.helper(events, dir);
}).catch(function (e) {
events.emit('error', e);
});
if (autoInstall === 'yarn') {
events.emit('log', 'Installing dependencies using yarn...');
utils.exec('yarn install', dir, false).then(function () {
utils.helper(events, dir);
}).catch(function (e) {
events.emit('error', e);
});
} else {
events.emit('log', 'Installing dependencies using npm...');
utils.exec('npm install', dir, false).then(function () {
utils.helper(events, dir);
}).catch(function (e) {
events.emit('error', e);
});
}
}
});
};

@@ -6,3 +6,3 @@ 'use strict';

var helper = function helper(dir, events) {
var helper = function helper(events, dir) {
var commandsWithDesc = [{

@@ -33,4 +33,6 @@ name: 'npm start',

}];
console.log('test');
events.emit('log', '\n' + chalk.green('Success! Created ' + path.basename(dir) + ' at ' + dir));
events.emit('log', '\nInside that directory, you can run several commands:\n');
console.log('te---st');

@@ -50,4 +52,2 @@ commandsWithDesc.forEach(function (c) {

module.exports = {
helper: helper
};
module.exports = helper;

@@ -5,4 +5,5 @@ 'use strict';

var _require = require('./helper'),
helper = _require.helper;
var helper = require('./helper');
var gituser = require('./gituser');
/**

@@ -14,4 +15,2 @@ * @desc excecute command on `cwd`.

*/
var exec = function exec(command, cwd, quiet) {

@@ -70,3 +69,4 @@ return new Promise(function (resolve, reject) {

spawn: spawn,
helper: helper
helper: helper,
gituser: gituser
};
{
"name": "weexpack-create",
"version": "0.2.11",
"version": "0.2.12",
"description": "weexpack create module. Creates new project from default or template",

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

@@ -8,2 +8,3 @@ import Vue from 'vue';

// need to run `npm i weex-vue-slider weex-vue-stream --save` frist.
// import the plugins (components and modules) you want to use.

@@ -10,0 +11,0 @@ // import slider from 'weex-vue-slider';

@@ -44,2 +44,3 @@ {

"chai": "^4.1.2",
"css-loader": "^0.28.8",
"eslint": "^4.13.1",

@@ -46,0 +47,0 @@ "extract-text-webpack-plugin": "^3.0.2",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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