mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 02:59:03 +01:00
chore(splitjs): get build & test to work
This commit is contained in:
parent
87d6771c47
commit
429767e45c
@ -16,7 +16,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://split.js.org/",
|
"homepage": "https://split.js.org/",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "karma start",
|
"test": "pnpm build && karma start",
|
||||||
"prepublish": "rollup -c",
|
"prepublish": "rollup -c",
|
||||||
"build": "rollup -c && npm run size",
|
"build": "rollup -c && npm run size",
|
||||||
"watch": "rollup -cw",
|
"watch": "rollup -cw",
|
||||||
@ -37,5 +37,13 @@
|
|||||||
"collective": {
|
"collective": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
"url": "https://opencollective.com/splitjs"
|
"url": "https://opencollective.com/splitjs"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@rollup/plugin-buble": "1.0.3",
|
||||||
|
"karma": "6.4.4",
|
||||||
|
"karma-chrome-launcher": "3.2.0",
|
||||||
|
"karma-firefox-launcher": "2.1.3",
|
||||||
|
"karma-jasmine": "5.1.0",
|
||||||
|
"rollup-plugin-terser": "7.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,13 @@
|
|||||||
import buble from '@rollup/plugin-buble'
|
import buble from '@rollup/plugin-buble'
|
||||||
import { terser } from 'rollup-plugin-terser'
|
import { terser } from 'rollup-plugin-terser'
|
||||||
|
import pkg from "./package.json" with { type: "json" };
|
||||||
const pkg = require('./package.json')
|
|
||||||
|
|
||||||
const output = {
|
const output = {
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
file: pkg.main,
|
file: "dist/split.js",
|
||||||
name: 'Split',
|
name: 'Split',
|
||||||
sourcemap: false,
|
sourcemap: false,
|
||||||
banner: `/*! Split.js - v${pkg.version} */\n`,
|
banner: `/*! Split.js - v${pkg.version} */\n`
|
||||||
}
|
}
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
@ -17,7 +16,7 @@ export default [
|
|||||||
output: [
|
output: [
|
||||||
output,
|
output,
|
||||||
{
|
{
|
||||||
file: pkg.module,
|
file: "dist/split.min.js",
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
sourcemap: false,
|
sourcemap: false,
|
||||||
},
|
},
|
||||||
@ -29,7 +28,7 @@ export default [
|
|||||||
output: {
|
output: {
|
||||||
...output,
|
...output,
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
file: pkg['minified:main'],
|
file: "dist/split.min.js",
|
||||||
},
|
},
|
||||||
plugins: [buble(), terser()],
|
plugins: [buble(), terser()],
|
||||||
},
|
},
|
||||||
514
pnpm-lock.yaml
generated
514
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user