Skip to content

Commit

Permalink
build: Babel setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Sep 1, 2019
1 parent d816e3a commit 166b73b
Show file tree
Hide file tree
Showing 12 changed files with 3,030 additions and 26 deletions.
11 changes: 11 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
presets: [
['@babel/preset-env', {
useBuiltIns: 'usage',
corejs: 3,
targets: {
node: '8',
},
}],
],
};
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.env
lib
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
src
test
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# RelativeCI agent

[![npm](https://img.shields.io/npm/v/@relative-ci/agent.svg)](https://www.npmjs.com/package/@relative-ci/agent) ![Greenkeeper](https://badges.greenkeeper.io/relative-ci/agent.svg)
[![npm](https://img.shields.io/npm/v/@relative-ci/agent.svg)](https://www.npmjs.com/package/@relative-ci/agent)
[node version](https://img.shields.io/node/v/@relative-ci/agent.svg)
![Greenkeeper](https://badges.greenkeeper.io/relative-ci/agent.svg)


Send bundle stats data to [RelativeCI](https://relative-ci.com?utm_source=github-agent).

Expand Down
3,024 changes: 3,001 additions & 23 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@
"relative-ci-agent": "bin/index.js"
},
"scripts": {
"lint": "eslint lib",
"test": "mocha test/extract/*.js"
"build": "babel src -d lib",
"lint": "eslint .",
"test": "mocha test/extract/*.js",
"prepublishOnly": "npm run build"
},
"engines": {
"node": ">= 8.0"
},
"keywords": [
"webpack",
Expand All @@ -34,12 +39,16 @@
},
"homepage": "https://relative-ci.com/documentation/setup",
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"eslint": "^6.3.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.18.2",
"mocha": "^6.2.0"
},
"dependencies": {
"core-js": "^3.2.1",
"cosmiconfig": "^5.2.1",
"debug": "^4.1.1",
"dotenv": "^8.1.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 166b73b

Please sign in to comment.