summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2018-05-20 19:08:51 -0600
committermo <mo.khan@gmail.com>2018-05-20 19:08:51 -0600
commit13e8c470bd328ca137314ad57dd6841b6b85e243 (patch)
tree2fb01e93848b0698ad994ae71d1c9d5b48106b96
parentdae20701cb7ef3d2e6f49cb25c17f217dc4487e2 (diff)
use es6
-rw-r--r--.gitignore1
-rw-r--r--.npmignore1
-rw-r--r--index.js1
-rw-r--r--package.json6
-rw-r--r--source/index.js5
5 files changed, 12 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 3c3629e..1b0047d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/index.js b/index.js
index 38eeca7..e69de29 100644
--- a/index.js
+++ b/index.js
@@ -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("🔥");
+ }
+}