Skip to content

Commit 85f5dca

Browse files
committed
Setup babel and prepublish
1 parent 4ebd246 commit 85f5dca

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
/npm-debug.log
1+
/npm-debug.log
2+
/node_modules/
3+
/lib/

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/src/

package.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
"name": "react-file-input-previews-base64",
33
"version": "1.0.1",
44
"description": "This package provides an easy to use, ready to go and customizable wrapper around file input, with option for image previews and returning file as base64 string.",
5-
"main": "index.js",
5+
"main": "lib/index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"build": "node_modules/babel-cli/bin/babel.js src --out-dir lib",
8+
"prepublish": "npm run build"
9+
},
10+
"babel": {
11+
"presets": ["es2015", "react"]
812
},
913
"repository": {
1014
"type": "git",
@@ -25,5 +29,11 @@
2529
"bugs": {
2630
"url": "https://github.com/SiDevesh/react-file-input-previews-base64/issues"
2731
},
28-
"homepage": "https://github.com/SiDevesh/react-file-input-previews-base64#readme"
32+
"homepage": "https://github.com/SiDevesh/react-file-input-previews-base64#readme",
33+
"devDependencies": {
34+
"babel-cli": "^6.24.0",
35+
"babel-core": "^6.24.0",
36+
"babel-preset-es2015": "^6.24.0",
37+
"babel-preset-react": "^6.23.0"
38+
}
2939
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)