boom: Removed next() call from macro methods
This commit is contained in:
parent
7190c3a73d
commit
c2d0063917
3 changed files with 14 additions and 11 deletions
|
@ -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",
|
||||
|
|
|
@ -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 */`
|
||||
// }
|
||||
//})
|
||||
]
|
||||
};
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue