Skip to content

Commit

Permalink
Merge pull request #2 from ooflorent/add/es6-compat
Browse files Browse the repository at this point in the history
Add an entry point to ease ES6 imports
  • Loading branch information
jussi-kalliokoski committed Oct 30, 2014
2 parents c6aee25 + fd8d465 commit 144718c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
@@ -0,0 +1,6 @@
"use strict";

module.exports = {
compile: require("./compile"),
mixin: require("./mixin"),
};
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -18,8 +18,10 @@
"bugs": {
"url": "https://github.com/jussi-kalliokoski/react-no-jsx/issues"
},
"main": "index.js",
"files": [
"compile.js",
"index.js",
"mixin.js"
],
"scripts": {
Expand Down
10 changes: 10 additions & 0 deletions test/MainSpec.js
@@ -0,0 +1,10 @@
"use strict";

describe("no-jsx", function () {
var noJsx = require("../index");

it("should export library functions", function () {
noJsx.should.have.property('compile');
noJsx.should.have.property('mixin');
});
});

0 comments on commit 144718c

Please sign in to comment.