1
0
Fork 0

boom: Removed next() call from macro methods

This commit is contained in:
Joost De Cock 2018-08-05 13:09:09 +02:00
parent 7190c3a73d
commit c2d0063917
3 changed files with 14 additions and 11 deletions

View file

@ -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",

View file

@ -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 */`
// }
//})
]
};

View file

@ -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();
}
}
};