Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.

Commit 42ce567

Browse files
committed
v0.0.15
1 parent fb5bdcf commit 42ce567

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: node_js
22
node_js:
3+
- "0.10"
34
- "0.12"
45
- "4"
56
script: npm test

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ React.DOM.div(null,
2626

2727

2828
## Installation
29-
[Node.js](http://nodejs.org/) `>= 0.12` is required. ~~Type this at the command line:~~
29+
[Node.js](http://nodejs.org/) `>= 0.10` is required. ~~Type this at the command line:~~
3030
```shell
3131
npm install handlebars-react --save-dev
3232
```
@@ -90,7 +90,7 @@ When `true`, available `React.DOM` convenience functions will be used instead of
9090

9191

9292
## Changelog
93-
* 0.0.1–0.0.14 pre-releases
93+
* 0.0.1–0.0.15 pre-releases
9494

9595

9696
[npm-image]: https://img.shields.io/npm/v/handlebars-react.svg

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "handlebars-react",
33
"description": "Compile Handlebars templates to React.",
4-
"version": "0.0.14",
4+
"version": "0.0.15",
55
"license": "MIT",
66
"homepage": "https://github.com/stevenvachon/handlebars-react",
77
"author": {
@@ -23,20 +23,22 @@
2323
"object-assign": "^4.0.1"
2424
},
2525
"devDependencies": {
26+
"bluebird": "^2.10.2",
2627
"browserify": "^11.2.0",
2728
"chai": "^3.3.0",
2829
"mocha": "^2.3.3",
30+
"mkdirp": "~0.5.1",
2931
"chai-as-promised": "^5.1.0",
3032
"react": "0.13.3",
3133
"uglify-js": "^2.4.24"
3234
},
3335
"engines": {
34-
"node": ">= 0.12"
36+
"node": ">= 0.10"
3537
},
3638
"scripts": {
37-
"browserify": "mkdir browser && npm run browserify-full && npm run browserify-lite",
38-
"browserify-full": "browserify ./ --standalone HandlebarsReact | uglifyjs --compress --mangle -o browser/handlebars-react.min.js",
39-
"browserify-lite": "browserify ./ --standalone HandlebarsReact --exclude autoprefixer --exclude cssnano --exclude postcss --exclude uglify-js | uglifyjs --compress --mangle -o browser/handlebars-react-lite.min.js",
39+
"browserify": "npm dedupe && mkdirp browser && npm run browserify-full && npm run browserify-lite",
40+
"browserify-full": "browserify lib/ --standalone HandlebarsReact | uglifyjs --compress --mangle -o browser/handlebars-react.min.js",
41+
"browserify-lite": "browserify lib/ --standalone HandlebarsReact --exclude autoprefixer --exclude cssnano --exclude postcss --exclude uglify-js | uglifyjs --compress --mangle -o browser/handlebars-react-lite.min.js",
4042
"react-dom": "node scripts/react-dom lib/ReactDOM.js",
4143
"test": "npm run react-dom && npm run browserify && npm run test-server",
4244
"test-server": "mocha test/ --reporter spec --check-leaks --bail --no-exit"

test/test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ var objectAssign = require("object-assign");
88

99
chai.use( require("chai-as-promised") );
1010

11+
// handlebars-html-parser uses native Promises (and thus, won't work on Node 0.10)
12+
global.Promise = require("bluebird");
13+
1114

1215

1316
// https://facebook.github.io/react/jsx-compiler.html

0 commit comments

Comments
 (0)