Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

birdy-cli

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

birdy-cli - npm Package Compare versions

Comparing version
0.1.5
to
0.1.6
+1
-1
package.json
{
"name": "birdy-cli",
"version": "0.1.5",
"version": "0.1.6",
"description": "Birdy server command line tool",

@@ -5,0 +5,0 @@ "repository": {

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

function Generator() {
this._controllersDir = './birdy/Controllers/'
this._viewsDir = './views/'
this._controllersDir = './app/Controllers/'
this._viewsDir = './app/Views/'
};

@@ -10,0 +10,0 @@

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

function Generator() {
this._servicesDir = './birdy/Services/'
this._servicesDir = './app/Services/'
};

@@ -9,0 +9,0 @@

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

if(this._checkIfExists(component, task)) {
// Check if it is a birdy project
if(!this._isBirdy()) {
this._report('\nThis folder doesn\'t seems to be a birdy project.')
} else if(this._checkIfExists(component, task)) {
var argument = this._args[4].charAt(0).toUpperCase() + this._args[4].slice(1)

@@ -128,2 +131,20 @@

Birdy.prototype._isBirdy = function(dir) {
var files,
expectedFiles,
commonFiles
try {
files = fs.readdirSync(dir || process.cwd());
} catch (e) {
return false;
}
console.log(files)
expectedFiles = ['app', 'locales', 'public'];
commonFiles = mout.array.intersection(files, expectedFiles);
return mout.array.intersection(commonFiles, expectedFiles).length === expectedFiles.length;
}
module.exports = Birdy
{% extends "layout.html" %}
{% set page = "{{name}}" %}
{% block title %}Welcome to birdy!{% endblock %}
{% block title %}{{name}}{% endblock %}

@@ -6,0 +6,0 @@ {% block yield %}