helpful-cli
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -9,6 +9,6 @@ const _ = require('lodash'); | ||
function renameDotFile (file) { | ||
var fpath = file.split(path.delimiter); | ||
var fpath = file.split('/'); | ||
var fname = fpath.pop(); | ||
if (fname[0] !== '_') return file; | ||
return fpath.concat('.' + fname.slice(1)).join(path.delimiter); | ||
return fpath.concat('.' + fname.slice(1)).join('/'); | ||
} | ||
@@ -15,0 +15,0 @@ |
require('dotenv').load({ silent: true }); | ||
const path = require('path'); | ||
const proxyPort = parseInt(process.env.PORT || 5000); | ||
@@ -36,3 +37,12 @@ const port = proxyPort + 1; | ||
{%- else -%} | ||
"server": "public", | ||
"server": { | ||
"baseDir": "public", | ||
"middleware": function (req, res, next) { | ||
var ext = path.extname(req.url); | ||
if ( ! ext || ext === '') { | ||
req.url = '/index.html'; | ||
} | ||
next(); | ||
} | ||
}, | ||
{%- endif %} | ||
@@ -39,0 +49,0 @@ "port": port, |
{ | ||
"name": "helpful-cli", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Command line utility for the Helpful Human team.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33233
944