From e8bc626cc05a860cfd2275d350fc7c7a28936c01 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 18 Oct 2018 08:58:04 +0200 Subject: Improve repo architecture to use babel --- package.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 61de8f8..c3465cd 100644 --- a/package.json +++ b/package.json @@ -2,15 +2,13 @@ "name": "remark-attr", "version": "0.6.3", "description": "Add support of custom attributes to Markdown syntax.", - "main": "index.js", + "main": "dist/index.js", "scripts": { "pretest": "xo", + "prepare": "del-cli dist && cross-env BABEL_ENV=production babel src --out-dir dist", "test": "ava" }, - "repository": { - "type": "git", - "url": "git+https://github.com/arobase-che/remark-attr.git" - }, + "repository": "github:arobase-che/remark-attr", "keywords": [ "markdown", "attribute", @@ -24,6 +22,11 @@ "homepage": "https://github.com/arobase-che/remark-attr#readme", "devDependencies": { "ava": "^0.25.0", + "babel-cli": "^6.26.0", + "babel-preset-env": "^1.6.1", + "babel-plugin-transform-object-rest-spread": "^6.26.0", + "cross-env": "^5.1.4", + "del-cli": "^1.1.0", "parse5": "^5.0.0", "rehype-raw": "^2.0.0", "rehype-stringify": "^3.0.0", -- cgit v1.2.3