ejs-prerender
Advanced tools
Comparing version 1.0.3 to 1.0.4-beta.1
@@ -5,2 +5,3 @@ const debug = require('./debug'); | ||
const renderTemplate = require('./renderTemplate'); | ||
const replaceExtension = require('./replaceExtension'); | ||
const writeHtml = require('./writeHtml'); | ||
@@ -21,3 +22,2 @@ | ||
const getStatusMessage = (pagePath) => `page "${pagePath}" ${statuses[pagePath]}`; | ||
const replaceExtension = (oldExtension, newExtension, path) => `${path.substring(0, path.length - oldExtension.length)}${newExtension}`; | ||
@@ -24,0 +24,0 @@ const pages = await grabPages(config); |
const ejsPrerender = require('./ejsPrerender'); | ||
const getBaseComponentsDir = require('./getBaseComponentsDir'); | ||
const getConfig = require('./getConfig'); | ||
const grabPages = require('./grabPages'); | ||
const grabPagesSync = require('./grabPagesSync'); | ||
const renderTemplate = require('./renderTemplate'); | ||
const replaceExtension = require('./replaceExtension'); | ||
const writeHtml = require('./writeHtml'); | ||
ejsPrerender.getBaseComponentsDir = getBaseComponentsDir; | ||
ejsPrerender.getConfig = getConfig; | ||
ejsPrerender.grabPages = grabPages; | ||
ejsPrerender.grabPagesSync = grabPagesSync; | ||
ejsPrerender.renderTemplate = renderTemplate; | ||
ejsPrerender.replaceExtension = replaceExtension; | ||
ejsPrerender.writeHtml = writeHtml; | ||
module.exports = ejsPrerender; |
{ | ||
"name": "ejs-prerender", | ||
"version": "1.0.3", | ||
"version": "1.0.4-beta.1", | ||
"description": "A tool for structured pre-rendering of EJS templates and partials", | ||
"keywords": ["ejs", "prerender", "ssr"], | ||
"keywords": [ | ||
"ejs", | ||
"prerender", | ||
"ssr" | ||
], | ||
"bin": { | ||
@@ -24,2 +28,3 @@ "ejs-prerender": "bin/ejs-prerender.js" | ||
"dependencies": { | ||
"@piuccio/ejs-compiled-loader": "^3.0.0", | ||
"debug": "^4.1.1", | ||
@@ -26,0 +31,0 @@ "ejs": "^2.7.1", |
@@ -27,4 +27,4 @@ # ejs-prerender | ||
│ └ head.ejs | ||
└ pages | ||
├ about | ||
└ pages/ | ||
├ about/ | ||
│ └ index.ejs | ||
@@ -38,4 +38,4 @@ └ index.ejs | ||
root | ||
└ public | ||
├ about | ||
└ public/ | ||
├ about/ | ||
│ └ index.html | ||
@@ -42,0 +42,0 @@ └ index.html |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
9816
20
131
5
2
+ Added@piuccio/ejs-compiled-loader@3.0.0(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedajv-keywords@3.5.2(transitive)
+ Addedbig.js@5.2.2(transitive)
+ Addedcamel-case@3.0.0(transitive)
+ Addedclean-css@4.2.4(transitive)
+ Addedcommander@2.17.12.19.0(transitive)
+ Addedemojis-list@3.0.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedhe@1.2.0(transitive)
+ Addedhtml-minifier@3.5.21(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson5@1.0.2(transitive)
+ Addedloader-utils@1.4.2(transitive)
+ Addedlower-case@1.1.4(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedno-case@2.3.2(transitive)
+ Addedparam-case@2.1.1(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedrelateurl@0.2.7(transitive)
+ Addedschema-utils@0.4.7(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addeduglify-js@3.4.10(transitive)
+ Addedupper-case@1.1.3(transitive)
+ Addeduri-js@4.4.1(transitive)