metalsmith-react-templates
Advanced tools
Comparing version 1.1.0 to 2.0.0
@@ -26,8 +26,3 @@ 'use strict'; | ||
// i.e. React Server side rendering style | ||
var staticConst = void 0 !== options.isStatic ? options.isStatic : true; | ||
if (void 0 !== options.nonStatic) { | ||
staticConst = !options.nonStatic; | ||
console.warn('option: isStatic should be used instead of nonStatic.'); | ||
} | ||
var isStatic = staticConst; | ||
var isStatic = options.isStatic !== void 0 ? options.isStatic : true; | ||
@@ -34,0 +29,0 @@ // Initialize the template as a factory |
{ | ||
"name": "metalsmith-react-templates", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "A metalsmith plugin to render files using ReactJS based templates", | ||
@@ -8,2 +8,3 @@ "main": "lib/index.js", | ||
"build": "babel ./src --out-dir ./lib", | ||
"clean": "rm -rf ./lib", | ||
"prepublish": "npm run build", | ||
@@ -34,3 +35,2 @@ "pretest": "npm run build", | ||
"devDependencies": { | ||
"assert-dir-equal": "^1.0.1", | ||
"babel": "^5.6.7", | ||
@@ -37,0 +37,0 @@ "eslint": "^0.21.1", |
@@ -98,7 +98,2 @@ # metalsmith-react-templates | ||
#### `nonStatic` (optional) - Deprecated | ||
default: `false` | ||
Use `isStatic`; `nonStatic` is only included for backwards compatibility. | ||
#### `directory` (optional) | ||
@@ -105,0 +100,0 @@ default: `templates` |
5
16872
204
150