Wednesday, 12 April 2017

including file directories with enclosejs executable

I am trying to create an executable file for a nodejs project using enclosejs. When I run the executable, it works fine until it has to interact with the file system. I have a config file that looks like:

module.exports = { dirs: [ "./data", "./templates",
"./cashe", "./data",
"./public", "./website-messages", ]};

and I have the line:

var config = require('./config');

in the main file.

Also, I have tried including the following in the package.json:

"files": [ "cashe/", "index.js", "data/", "public/", "templates/", "website-messages", ],



via Michael Carey

No comments:

Post a Comment