diff options
author | ache <ache@ache.one> | 2018-12-30 08:08:44 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2018-12-30 08:10:16 +0100 |
commit | 26c4c8998ee2cb84c8ce57a79042881cb1ada385 (patch) | |
tree | 520e14afe201a8e0e8497769ac52e123f57128d7 | |
parent | Clean the code and description (diff) |
Distribution with babel
-rw-r--r-- | .babelrc | 6 | ||||
-rw-r--r-- | __tests__/index.js | 2 | ||||
-rw-r--r-- | package.json | 16 | ||||
-rw-r--r-- | src/index.js (renamed from app.js) | 0 |
4 files changed, 18 insertions, 6 deletions
diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..cf18521 --- /dev/null +++ b/.babelrc @@ -0,0 +1,6 @@ +{ + "presets": ["@babel/env"], + "plugins": [ + ["@babel/plugin-proposal-object-rest-spread"] + ] +} diff --git a/__tests__/index.js b/__tests__/index.js index ce750fe..b0fb9a3 100644 --- a/__tests__/index.js +++ b/__tests__/index.js @@ -7,7 +7,7 @@ import stringify from 'rehype-stringify'; import remark2rehype from 'remark-rehype'; import parse5 from 'parse5'; -import plugin from '../app'; +import plugin from '..'; const dom5 = require('dom5'); diff --git a/package.json b/package.json index 7785f2a..db64a85 100644 --- a/package.json +++ b/package.json @@ -1,25 +1,31 @@ { "name": "remark-line-input", - "version": "0.3.2", + "version": "0.4.0", "description": "A remark plugin to parse line input syntax", - "main": "app.js", + "main": "dist/index.js", "scripts": { "pretest": "xo", - "test": "ava", - "start": "node app.js" + "prepare": "del-cli dist && cross-env BABEL_ENV=production babel src --out-dir dist", + "test": "ava" }, "dependencies": { "md-attr-parser": "^1.0.0" }, "author": "ache", - "license": "MIT", + "license": "GPL-3.0-or-later", "keywords": [ "line", "input", "remark" ], "devDependencies": { + "@babel/cli": "^7.1.5", + "@babel/core": "^7.1.5", + "@babel/plugin-proposal-object-rest-spread": "^7.0.0", + "@babel/preset-env": "^7.1.5", "ava": "^0.25.0", + "cross-env": "^5.2.0", + "del-cli": "^1.1.0", "dom5": "^3.0.0", "parse5": "^5.0.0", "rehype-raw": "^3.0.0", |