Skip to content

Commit 779f95f

Browse files
committed
Merge pull request #9 from nteract/get-yo-transpile-on
Get yo transpile on
2 parents 479553b + 9cdbc53 commit 779f95f

File tree

7 files changed

+1142
-14
lines changed

7 files changed

+1142
-14
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ build/Release
2626
# Dependency directory
2727
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
2828
node_modules
29+
30+
lib/

.npmignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
13+
14+
# Coverage directory used by tools like istanbul
15+
coverage
16+
17+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
18+
.grunt
19+
20+
# node-waf configuration
21+
.lock-wscript
22+
23+
# Compiled binary addons (http://nodejs.org/api/addons.html)
24+
build/Release
25+
26+
# Dependency directory
27+
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
28+
node_modules
29+
30+
# We want lib/ on npm
31+
# lib/

package.json

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,48 @@
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",
1117
"react"
1218
],
19+
"babel": {
20+
"presets": [
21+
"es2015",
22+
"react"
23+
]
24+
},
1325
"author": "Kyle Kelley <[email protected]>",
1426
"license": "MPL-2.0",
1527
"dependencies": {
28+
"anser": "^1.0.1",
1629
"ansi-to-json": "^1.0.0"
1730
},
1831
"peerDependencies": {
1932
"react": "^0.14.0 || ^15.0.0-0"
2033
},
2134
"devDependencies": {
35+
"babel-cli": "^6.8.0",
36+
"babel-core": "^6.8.0",
37+
"babel-preset-es2015": "^6.6.0",
38+
"babel-preset-react": "^6.5.0",
2239
"chai": "^3.5.0",
2340
"enzyme": "^2.2.0",
41+
"mkdirp": "^0.5.0",
2442
"mocha": "^2.4.5",
2543
"react": "^15.0.1",
2644
"react-addons-test-utils": "^15.0.1",
27-
"react-dom": "^15.0.1"
45+
"react-dom": "^15.0.1",
46+
"rimraf": "^2.5.2",
47+
"should": "^8.3.1"
2848
}
2949
}

0 commit comments

Comments
 (0)