Comparing version 0.2.1 to 0.2.2
@@ -50,2 +50,3 @@ "use strict"; | ||
registerIfEqHelper(); | ||
registerIfNeHelper(); | ||
injectGlobalsToHelpers(globals); | ||
@@ -257,2 +258,20 @@ clearDistributionDirectoryIfNeeded(); | ||
} | ||
/** If not equals Block helper | ||
* @example | ||
* {{#if_ne var 'value' }} | ||
* var !== 'value' | ||
* {{else}} | ||
* var === 'value' | ||
* {{/if_ne}} | ||
*/ | ||
function registerIfNeHelper() { | ||
handlebars_1.default.registerHelper('if_ne', function (a, b, options) { | ||
if (a != b) { | ||
return options.fn(this); | ||
} | ||
else { | ||
return options.inverse(this); | ||
} | ||
}); | ||
} | ||
function scanSourceFiles() { | ||
@@ -259,0 +278,0 @@ const allSourceFiles = filesystem.scanFiles(configuration_1.default.getSourceDirectoryPath(), false, true, true); |
{ | ||
"name": "symply", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A simple static site generator.", | ||
@@ -18,2 +18,3 @@ "author": "Oleg Legun <oleg.legun@gmail.com>", | ||
"compile": "npm run dist:clear && npx tsc", | ||
"publish": "npm run compile && npm publish", | ||
"watch": "npm run dist:clear && npx tsc -w", | ||
@@ -23,4 +24,3 @@ "dist:clear": "rm -rf dist", | ||
"lint": "npx eslint . --ext .js,.jsx,.ts,.tsx", | ||
"test": "npm run compile && tape test/**/*.js | tap-spec", | ||
"publish-npm": "npm publish" | ||
"test": "npm run compile && tape test/**/*.js | tap-spec" | ||
}, | ||
@@ -27,0 +27,0 @@ "dependencies": { |
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
175635
1181