Comparing version 1.4.1 to 1.4.2
@@ -0,0 +0,0 @@ // jshint esversion: 6 |
@@ -0,0 +0,0 @@ // jshint esversion: 6 |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ // jshint esversion: 6 |
18
index.js
@@ -14,4 +14,8 @@ #!/usr/bin/env node | ||
/* The config, build and templates are all 'require'd, and will be relative to your cwd, so push that onto our module paths list */ | ||
const path = require('path'); | ||
const fs = require('fs-extra'); | ||
/* The config, build and templates are all 'require'd, and will be relative to your cwd, so push that (and node_modules sub-dir) onto our module paths list */ | ||
module.paths.push(process.cwd()); | ||
module.paths.push(path.normalize(`${process.cwd()}/node_modules`)); | ||
@@ -23,3 +27,3 @@ // --------------------------------------------------------------------- | ||
name: "Plexiform", | ||
version: "1.4.1", | ||
version: "1.4.2", | ||
author: "Raith" | ||
@@ -33,4 +37,2 @@ }; | ||
const fs = require('fs-extra'); | ||
var base_utils = require("./includes/base-utils.js").utils; | ||
@@ -75,2 +77,3 @@ | ||
console.log("Require paths:", require.paths); | ||
console.log("Current working directory:", process.cwd()); | ||
} | ||
@@ -135,3 +138,8 @@ | ||
if (!fs.existsSync(plexiformconfigname) || opt_force_overwrite) { | ||
let configcontent = '{\n\t"build_name": "../plexiform-build-api",\n\t"config_name": "./path/to/config_file.json",\n\t"config_processor": "../plexiform-build-api/process-markdown-config",\n\t"output_folder": "."\n}\n'; | ||
let configcontent = `{ | ||
"build_name": "plexiform-build-api", | ||
"config_processor": "plexiform-build-api/process-md", | ||
"config_name": "./path/to/my_app_config.json|md", | ||
"output_folder": "." | ||
}`; | ||
fs.outputFileSync(plexiformconfigname, configcontent); | ||
@@ -138,0 +146,0 @@ } else { |
{ | ||
"name": "plexiform", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "A very simple template-driven generator.", | ||
@@ -19,5 +19,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"fs-extra": "^4.0.1", | ||
"fs-extra": "^4.0.2", | ||
"process-argv": "^1.0.0" | ||
} | ||
} |
# Plexiform | ||
> **v1.4.1** | ||
> **v1.4.2** | ||
@@ -67,1 +67,2 @@ | In this document | | ||
| 2017-09-18 | v1.4.1 | Raith | better suggestion in plexiformconfig, using relative path, and defaulting to plexiform-build-api | | ||
| 2017-09-20 | v1.4.2 | Raith | added cwd/node_modules to modules.path so simplify loading of local build package from global plexiform | |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
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
21817
11
331
68
Updatedfs-extra@^4.0.2