harold-scripts
Advanced tools
Comparing version 0.2.1 to 0.3.0
{ | ||
"name": "harold-scripts", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Harold JS Scripts for Create Harold App", | ||
@@ -31,2 +31,3 @@ "author": "Julian Ćwirko (julian.io)", | ||
"commander": "^7.1.0", | ||
"cosmiconfig": "^7.0.0", | ||
"cross-spawn": "^7.0.3", | ||
@@ -33,0 +34,0 @@ "dateformat": "^4.5.1", |
@@ -0,6 +1,16 @@ | ||
const { cosmiconfigSync } = require('cosmiconfig'); | ||
const explorerSync = cosmiconfigSync('harold'); | ||
const loaded = explorerSync.search(process.cwd()); | ||
module.exports = { | ||
srcDirName: 'src', | ||
layoutsDirName: 'blog-layouts', | ||
layoutsDirName: | ||
loaded && loaded.config && loaded.config.mdFilesLayoutsDirName | ||
? loaded.config.mdFilesLayoutsDirName | ||
: 'blog-layouts', | ||
partialsDirName: 'partials', | ||
postsDirName: 'posts', | ||
postsDirName: | ||
loaded && loaded.config && loaded.config.mdFilesDirName | ||
? loaded.config.mdFilesDirName | ||
: 'posts', | ||
pagesDirName: 'pages', | ||
@@ -7,0 +17,0 @@ assetsDirName: 'assets', |
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
21747
570
28
+ Addedcosmiconfig@^7.0.0
+ Added@types/parse-json@4.0.2(transitive)
+ Addedcosmiconfig@7.1.0(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedjson-parse-even-better-errors@2.3.1(transitive)
+ Addedlines-and-columns@1.2.4(transitive)
+ Addedparse-json@5.2.0(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedyaml@1.10.2(transitive)