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

onechat-webclient-cli

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onechat-webclient-cli - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

6

dist/cli.js

@@ -0,1 +1,3 @@

#!/usr/bin/env node
var cli;

@@ -5,7 +7,7 @@

cli.version('1.0.0');
cli.version('0.1.5');
cli.command('view <name> [names...]', 'creates new view')
cli.command('view <view> [views...]', 'creates new view')
.action(require('./view.js'));
cli.parse(process.argv);

@@ -1,8 +0,8 @@

module.exports = function(name, names) {
module.exports = function(view, views) {
var copy, fs, i, len, results;
if (names == null) {
names = [];
if (views == null) {
views = [];
}
console.log(name, names);
names.unshift(name);
console.log(view, views);
views.unshift(view);
fs = require('fs');

@@ -15,9 +15,9 @@ copy = function(src, dest) {

results = [];
for (i = 0, len = names.length; i < len; i++) {
name = names[i];
copy('templates/view/view.styl', process.cwd() + '/views/' + name + '/' + name + '.styl');
copy('templates/view/view.pug', process.cwd() + '/views/' + name + '/' + name + '.pug');
results.push(copy('templates/view/index.coffee', process.cwd() + '/views/' + name + '/index.coffee'));
for (i = 0, len = views.length; i < len; i++) {
view = views[i];
copy('templates/view/view.styl', process.cwd() + '/views/' + view + '/' + view + '.styl');
copy('templates/view/view.pug', process.cwd() + '/views/' + view + '/' + view + '.pug');
results.push(copy('templates/view/index.coffee', process.cwd() + '/views/' + view + '/index.coffee'));
}
return results;
};
{
"name": "onechat-webclient-cli",
"version": "0.1.5",
"version": "0.1.6",
"description": "",

@@ -5,0 +5,0 @@ "authors": [

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