import name and version from data.mjs in plugins
This commit is contained in:
parent
181c6200da
commit
2179f29b9f
22 changed files with 22 additions and 22 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { version, name } from '../package.json' assert { type: 'json' }
|
import { version, name } from '../data.mjs'
|
||||||
|
|
||||||
export const plugin = {
|
export const plugin = {
|
||||||
name,
|
name,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { version, name } from '../package.json' assert { type: 'json' }
|
import { version, name } from '../data.mjs'
|
||||||
|
|
||||||
// Helper method to construct prefixed/suffixed name
|
// Helper method to construct prefixed/suffixed name
|
||||||
const getName = (n, so) => `${so.prefix}${n}${so.suffix}`
|
const getName = (n, so) => `${so.prefix}${n}${so.suffix}`
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { scaleboxPlugin } from '../../plugin-scalebox/src/index.mjs'
|
||||||
import { roundPlugin } from '../../plugin-round/src/index.mjs'
|
import { roundPlugin } from '../../plugin-round/src/index.mjs'
|
||||||
import { sprinklePlugin } from '../../plugin-sprinkle/src/index.mjs'
|
import { sprinklePlugin } from '../../plugin-sprinkle/src/index.mjs'
|
||||||
import { measurementsPlugin } from '../../plugin-measurements/src/index.mjs'
|
import { measurementsPlugin } from '../../plugin-measurements/src/index.mjs'
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
const bundledPlugins = [
|
const bundledPlugins = [
|
||||||
bannerPlugin,
|
bannerPlugin,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json' assert { type: 'json' }
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
export const plugin = {
|
export const plugin = {
|
||||||
name,
|
name,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json' assert { type: 'json' }
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
const defs = [
|
const defs = [
|
||||||
// button
|
// button
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json' assert { type: 'json' }
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
const markers = `
|
const markers = `
|
||||||
<marker orient="auto" refY="4.0" refX="0.0" id="cutonfoldFrom" style="overflow:visible;" markerWidth="12" markerHeight="8">
|
<marker orient="auto" refY="4.0" refX="0.0" id="cutonfoldFrom" style="overflow:visible;" markerWidth="12" markerHeight="8">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json' assert { type: 'json' }
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
const markers = `
|
const markers = `
|
||||||
<marker orient="auto" refY="4.0" refX="0.0" id="dimensionFrom" style="overflow:visible;" markerWidth="12" markerHeight="8">
|
<marker orient="auto" refY="4.0" refX="0.0" id="dimensionFrom" style="overflow:visible;" markerWidth="12" markerHeight="8">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json' assert { type: 'json' }
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
export const plugin = {
|
export const plugin = {
|
||||||
name,
|
name,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
export const plugin = {
|
export const plugin = {
|
||||||
name,
|
name,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json' assert { type: 'json' }
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
const markers = `
|
const markers = `
|
||||||
<marker orient="auto" refY="4.0" refX="10.0" id="grainlineFrom" style="overflow:visible;" markerWidth="12" markerHeight="8">
|
<marker orient="auto" refY="4.0" refX="10.0" id="grainlineFrom" style="overflow:visible;" markerWidth="12" markerHeight="8">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
export const plugin = {
|
export const plugin = {
|
||||||
name,
|
name,
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
export const plugin = {
|
export const plugin = {
|
||||||
name,
|
name,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
const lineValues = (start, end) => {
|
const lineValues = (start, end) => {
|
||||||
const { x: x1, y: y1 } = start
|
const { x: x1, y: y1 } = start
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
const notches = `
|
const notches = `
|
||||||
<g id="notch">
|
<g id="notch">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
export const plugin = {
|
export const plugin = {
|
||||||
name,
|
name,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
import { scalebox } from './scalebox.mjs'
|
import { scalebox } from './scalebox.mjs'
|
||||||
import { miniscale } from './miniscale.mjs'
|
import { miniscale } from './miniscale.mjs'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
export const plugin = {
|
export const plugin = {
|
||||||
name,
|
name,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
export const plugin = {
|
export const plugin = {
|
||||||
name,
|
name,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
import { sample, paperless, buildStylesheet } from './css.mjs'
|
import { sample, paperless, buildStylesheet } from './css.mjs'
|
||||||
|
|
||||||
const grid = {
|
const grid = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
const style = `
|
const style = `
|
||||||
text.title-nr {
|
text.title-nr {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { name, version } from '../package.json'
|
import { name, version } from '../data.mjs'
|
||||||
|
|
||||||
export const plugin = {
|
export const plugin = {
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue