diff options
| author | mo <mo.khan@gmail.com> | 2018-05-20 19:08:51 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2018-05-20 19:08:51 -0600 |
| commit | 13e8c470bd328ca137314ad57dd6841b6b85e243 (patch) | |
| tree | 2fb01e93848b0698ad994ae71d1c9d5b48106b96 | |
| parent | dae20701cb7ef3d2e6f49cb25c17f217dc4487e2 (diff) | |
use es6
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | .npmignore | 1 | ||||
| -rw-r--r-- | index.js | 1 | ||||
| -rw-r--r-- | package.json | 6 | ||||
| -rw-r--r-- | source/index.js | 5 |
5 files changed, 12 insertions, 2 deletions
@@ -1 +1,2 @@ node_modules +distribution diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..5a18cd2 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +source @@ -1 +0,0 @@ -console.log("🔥"); diff --git a/package.json b/package.json index f4dfefb..22e74b0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "mokha", "version": "0.1.0", "description": "i'm not sure yet", - "main": "index.js", + "main": "./distribution/index.js", "repository": "https://www.mokhan.ca/", "author": "mo", "license": "MIT", @@ -10,5 +10,9 @@ "devDependencies": { "babel-cli": "6", "babel-preset-es2015": "6" + }, + "scripts": { + "build": "babel source --presets babel-preset-es2015 --out-dir distribution", + "prepublish": "yarn run build" } } diff --git a/source/index.js b/source/index.js new file mode 100644 index 0000000..65363bf --- /dev/null +++ b/source/index.js @@ -0,0 +1,5 @@ +export default class { + lit() { + console.log("🔥"); + } +} |
