Skip to content

Commit 3142955

Browse files
committed
move lib to src, use babel to compile src to lib
1 parent 53f0bca commit 3142955

11 files changed

+8
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
lib

package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zulip-js",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Javascript library to access the Zulip API",
55
"main": "lib/index.js",
66
"directories": {
@@ -11,8 +11,13 @@
1111
"isomorphic-fetch": "^2.2.1",
1212
"isomorphic-form-data": "0.0.1"
1313
},
14-
"devDependencies": {},
14+
"devDependencies": {
15+
"babel-cli": "^6.14.0",
16+
"babel-preset-es2015": "^6.14.0"
17+
},
1518
"scripts": {
19+
"compile": "babel --presets es2015 -d lib/ src/",
20+
"prepublish": "npm run compile",
1621
"test": "echo \"Error: no test specified\" && exit 1"
1722
},
1823
"repository": {

lib/api.js src/api.js

File renamed without changes.

lib/index.js src/index.js

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)