Skip to content

Commit 98c4214

Browse files
author
Philippe Masset
committed
Transpile package before publishing
1 parent 93270c4 commit 98c4214

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015", "stage-0"]
3+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
lib

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!lib/*

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"name": "@bufferapp/buffer-js-request",
33
"version": "0.1.0",
44
"description": "JS interface to send requests – thin wrapper around fetch()",
5-
"main": "Request.js",
5+
"scripts": {
6+
"compile": "rimraf lib/* && babel src -d lib",
7+
"prepublish": "npm run compile"
8+
},
9+
"main": "lib/Request.js",
610
"author": "Philippe Masset <[email protected]>",
711
"homepage": "https://github.com/bufferapp/buffer-js-request#readme",
812
"repository": {
@@ -14,12 +18,17 @@
1418
},
1519
"license": "MIT",
1620
"devDependencies": {
21+
"babel-cli": "6.18.0",
22+
"babel-core": "6.18.2",
1723
"babel-eslint": "7.1.0",
24+
"babel-preset-es2015": "6.18.0",
25+
"babel-preset-stage-0": "6.16.0",
1826
"eslint": "3.9.1",
1927
"eslint-config-airbnb": "13.0.0",
2028
"eslint-plugin-import": "2.2.0",
2129
"eslint-plugin-jsx-a11y": "2.2.3",
22-
"eslint-plugin-react": "6.6.0"
30+
"eslint-plugin-react": "6.6.0",
31+
"rimraf": "2.5.4"
2332
},
2433
"dependencies": {
2534
"whatwg-fetch": "0.11.1"
File renamed without changes.

0 commit comments

Comments
 (0)