Comparing version 0.2.0 to 0.2.1
@@ -86,3 +86,3 @@ "use strict"; | ||
if (shadowedGlobalsList.length !== 0) { | ||
logger_1.default.warning(`Some globals are shadowed by module configuration: ${chalk_1.default.blueBright(shadowedGlobalsList)}`); | ||
logger_1.default.error(`Some globals are shadowed by module configuration: ${chalk_1.default.blueBright(shadowedGlobalsList)}`); | ||
} | ||
@@ -89,0 +89,0 @@ Object.assign(result, configuration_1.default.getGlobals()); |
@@ -31,5 +31,9 @@ "use strict"; | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const lodash_1 = __importDefault(require("lodash")); | ||
// TODO: add support for .md and .txt formats | ||
const PARTIAL_EXTENTION = '.html'; | ||
function load() { | ||
/*----------------------------------------------------------------------------- | ||
* Import partials from /partials | ||
*----------------------------------------------------------------------------*/ | ||
const partialsPath = configuration_1.default.getPartialsDirectoryPath(); | ||
@@ -50,3 +54,9 @@ const partials = filesystem.scanFiles(partialsPath, true, false, true); | ||
}, {}); | ||
/* [Module mode] Add extra partials if there are any available */ | ||
/*----------------------------------------------------------------------------- | ||
* [Module mode] Add extra partials if there are any available | ||
*----------------------------------------------------------------------------*/ | ||
const shadowedPartialsList = lodash_1.default.intersection(Object.keys(result), Object.keys(configuration_1.default.getPartials())); | ||
if (shadowedPartialsList.length !== 0) { | ||
logger_1.default.error(`Some partials are shadowed by module configuration: ${chalk_1.default.blueBright(shadowedPartialsList)}`); | ||
} | ||
Object.assign(result, configuration_1.default.getPartials()); | ||
@@ -53,0 +63,0 @@ if (configuration_1.default.debugOutput) { |
{ | ||
"name": "symply", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A simple static site generator.", | ||
@@ -5,0 +5,0 @@ "author": "Oleg Legun <oleg.legun@gmail.com>", |
![Logo](./assets/logo.png) | ||
> CAUTION: This generator is used internally in our systems and its API is constantly changing! Please wait for v1.0.0. | ||
A simple pluggable **static site generator** with great flexibility and control. | ||
**Symply** is based on well-known fast and reliable [Handlebars.js](https://github.com/wycats/handlebars.js) templating engine. | ||
<!-- | ||
# Partials | ||
```html | ||
``` | ||
# Block partials | ||
```html | ||
``` | ||
# Helpers | ||
```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
175202
1162
28