Skip to content

Commit f52ba8e

Browse files
committed
Bring on deps for transpiling.
1 parent 479553b commit f52ba8e

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
"name": "ansi-to-react",
33
"version": "0.0.3",
44
"description": "ANSI to React Elements",
5-
"main": "index.js",
5+
"main": "lib/index.js",
66
"scripts": {
7-
"test": "mocha 'test/**/*.js'"
7+
"prebuild": "mkdirp lib/ && npm run clean",
8+
"prepublish": "npm run build",
9+
"test": "mocha --compilers js:babel-core/register 'test/**/*.js'",
10+
"test:watch": "npm run test -- --watch",
11+
"build": "npm run build:es5",
12+
"build:es5": "babel src --out-dir lib/ --source-maps",
13+
"clean": "rimraf lib/*"
814
},
915
"keywords": [
1016
"ansi",
@@ -19,8 +25,13 @@
1925
"react": "^0.14.0 || ^15.0.0-0"
2026
},
2127
"devDependencies": {
28+
"babel-cli": "^6.8.0",
29+
"babel-core": "^6.8.0",
30+
"babel-preset-es2015": "^6.6.0",
31+
"babel-preset-react": "^6.5.0",
2232
"chai": "^3.5.0",
2333
"enzyme": "^2.2.0",
34+
"mkdirp": "^0.5.0",
2435
"mocha": "^2.4.5",
2536
"react": "^15.0.1",
2637
"react-addons-test-utils": "^15.0.1",

index.js renamed to src/index.js

File renamed without changes.

test/index-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Ansi = require('../index');
1+
const Ansi = require('../src/index');
22
const React = require('react');
33
const expect = require('chai').expect;
44
const enzyme = require('enzyme');

0 commit comments

Comments
 (0)