From c2d00639172e6a701f56e094af4d4c23f546fa92 Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Sun, 5 Aug 2018 13:09:09 +0200 Subject: [PATCH] boom: Removed next() call from macro methods --- packages/plugin-title/package.json | 6 +++--- packages/plugin-title/rollup.js | 16 ++++++++++------ packages/plugin-title/src/index.js | 3 +-- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/packages/plugin-title/package.json b/packages/plugin-title/package.json index b5e9db1a790..d2c15dea532 100644 --- a/packages/plugin-title/package.json +++ b/packages/plugin-title/package.json @@ -20,9 +20,9 @@ "unpkg": "dist/browser.js", "module": "src/index.js", "scripts": { - "patch": "npm version patch -m ':bookmark: v%s; && npm run build", - "minor": "npm version minor -m ':bookmark: v%s; && npm run build", - "major": "npm version major -m ':bookmark: v%s; && npm run build", + "patch": "npm version patch -m ':bookmark: v%s' && npm run build", + "minor": "npm version minor -m ':bookmark: v%s' && npm run build", + "major": "npm version major -m ':bookmark: v%s' && npm run build", "precommit": "npm run pretty && lint-staged", "test": "echo 'Error: no test specified' && exit 1", "clean": "rimraf dist", diff --git a/packages/plugin-title/rollup.js b/packages/plugin-title/rollup.js index 34667848f50..3d4d9c565c4 100644 --- a/packages/plugin-title/rollup.js +++ b/packages/plugin-title/rollup.js @@ -2,7 +2,7 @@ import { terser } from "rollup-plugin-terser"; import babel from "rollup-plugin-babel"; import resolve from "rollup-plugin-node-resolve"; import json from "rollup-plugin-json"; -import { name, version, description, author, license } from "./package.json"; +import meta from "./package.json"; export default { input: "src/index.js", @@ -13,11 +13,15 @@ export default { json(), babel({ exclude: "node_modules/**" - }), - terser({ - output: { - preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */` - } }) + //terser({ + // output: { + // preamble: `/**\n * ${meta.name} | v${meta.version}\n * ${ + // meta.description + // }\n * (c) ${new Date().getFullYear()} ${meta.author}\n * @license ${ + // meta.license + // }\n */` + // } + //}) ] }; diff --git a/packages/plugin-title/src/index.js b/packages/plugin-title/src/index.js index 86834325808..d893406f371 100644 --- a/packages/plugin-title/src/index.js +++ b/packages/plugin-title/src/index.js @@ -10,7 +10,7 @@ export default { } }, macros: { - title: function(next, so) { + title: function(so) { so.at.attr("data-text", so.nr).attr("data-text-class", "title-nr note"); this.points.titleName = so.at .shift(-90, 13) @@ -23,7 +23,6 @@ export default { this.context.config.name + " v" + this.context.config.version ) .attr("data-text-class", "title-pattern fill-note"); - next(); } } };