+1
-1
| { | ||
| "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 @@ |
+22
-1
@@ -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 %} |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
8470
7.43%198
9.39%0
-100%