@soleil-se/build-app 1.4.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleil-se/build-app",
3
- "version": "1.4.2",
3
+ "version": "1.5.0",
4
4
  "bin": {
5
5
  "build-app": "./bin/index.js",
6
6
  "sv-app-build": "./bin/index.js"
@@ -14,43 +14,43 @@
14
14
  },
15
15
  "homepage": "https://docs.soleil.se/build/app",
16
16
  "dependencies": {
17
- "@babel/core": "7.18.13",
18
- "@babel/preset-env": "7.18.10",
19
- "@rollup/plugin-alias": "3.1.9",
20
- "@rollup/plugin-babel": "5.3.1",
21
- "@rollup/plugin-commonjs": "22.0.2",
22
- "@rollup/plugin-json": "4.1.0",
23
- "@rollup/plugin-node-resolve": "13.3.0",
24
- "@rollup/plugin-replace": "4.0.0",
25
- "@soleil-se/build-config": "1.1.3",
26
- "@soleil-se/build-utils": "1.4.3",
17
+ "@babel/core": "7.20.12",
18
+ "@babel/preset-env": "7.20.2",
19
+ "@rollup/plugin-alias": "4.0.2",
20
+ "@rollup/plugin-babel": "6.0.3",
21
+ "@rollup/plugin-commonjs": "24.0.0",
22
+ "@rollup/plugin-json": "6.0.0",
23
+ "@rollup/plugin-node-resolve": "15.0.1",
24
+ "@rollup/plugin-replace": "5.0.2",
25
+ "@rollup/plugin-terser": "0.3.0",
27
26
  "archiver": "5.3.1",
28
- "autoprefixer": "10.4.8",
27
+ "autoprefixer": "10.4.13",
29
28
  "babel-plugin-transform-async-to-promises": "0.8.18",
30
- "chalk": "5.0.1",
29
+ "chalk": "5.2.0",
31
30
  "find-up": "6.3.0",
32
31
  "form-data": "4.0.0",
33
- "fs-extra": "10.1.0",
32
+ "fs-extra": "11.1.0",
34
33
  "glob": "^8.0.3",
35
- "got": "12.3.1",
34
+ "got": "12.5.3",
36
35
  "gzip-size": "7.0.0",
37
36
  "lodash-es": "4.17.21",
38
- "postcss": "8.4.16",
37
+ "postcss": "8.4.21",
39
38
  "postcss-discard-duplicates": "5.1.0",
40
39
  "postcss-pxtorem": "6.0.0",
41
40
  "pretty-bytes": "6.0.0",
42
- "rollup": "2.78.1",
41
+ "rollup": "3.9.1",
43
42
  "rollup-plugin-cleanup": "3.2.1",
44
43
  "rollup-plugin-insert": "1.3.2",
45
44
  "rollup-plugin-postcss": "4.0.2",
46
45
  "rollup-plugin-string": "3.0.0",
47
46
  "rollup-plugin-svelte": "7.1.0",
48
- "rollup-plugin-terser": "7.0.2",
49
- "slash": "4.0.0",
50
- "svelte-preprocess": "4.10.7"
47
+ "slash": "5.0.0",
48
+ "svelte-preprocess": "5.0.0",
49
+ "@soleil-se/build-config": "1.1.3",
50
+ "@soleil-se/build-utils": "1.4.3"
51
51
  },
52
52
  "devDependencies": {
53
- "svelte": "3.49.0"
53
+ "svelte": "3.55.1"
54
54
  },
55
55
  "scripts": {},
56
56
  "description": "Script for building WebApps, RESTApps and Widgets with Svelte in Sitevision.",
@@ -0,0 +1,5 @@
1
+ import { string } from 'rollup-plugin-string';
2
+
3
+ export default function getStringPlugin() {
4
+ return string({ include: '**/*.{html,svg}' });
5
+ }
@@ -1,4 +1,4 @@
1
- import { terser } from 'rollup-plugin-terser';
1
+ import terser from '@rollup/plugin-terser';
2
2
 
3
3
  export default function getTerserPlugin({ debug }) {
4
4
  return debug ? false : terser({
package/rollup/client.js CHANGED
@@ -16,6 +16,7 @@ import getSveltePlugin from './api/getSveltePlugin.js';
16
16
  import getPostcssPlugin from './api/getPostcssPlugin.js';
17
17
  import getTerserPlugin from './api/getTerserPlugin.js';
18
18
  import getInsertPlugin from './api/getInsertPlugin.js';
19
+ import getStringPlugin from './api/getStringPlugin.js';
19
20
 
20
21
  import sitevision from './plugins/sitevisionClient.js';
21
22
  import bundleSize from './plugins/bundleSize.js';
@@ -53,6 +54,7 @@ export default function rollupClient({
53
54
  getPostcssPlugin({ cssOutput, debug }),
54
55
  getBabelClientPlugin(),
55
56
  json(),
57
+ getStringPlugin(),
56
58
  showSize && bundleSize(),
57
59
  getTerserPlugin({ debug }),
58
60
  ];
package/rollup/server.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { rollup } from 'rollup';
2
2
  import json from '@rollup/plugin-json';
3
- import { string } from 'rollup-plugin-string';
4
3
  import cleanup from 'rollup-plugin-cleanup';
5
4
 
6
5
  import fse from 'fs-extra';
@@ -17,6 +16,7 @@ import getNodeResolvePlugin from './api/getNodeResolvePlugin.js';
17
16
  import getSveltePlugin from './api/getSveltePlugin.js';
18
17
  import getPostcssPlugin from './api/getPostcssPlugin.js';
19
18
  import getTerserPlugin from './api/getTerserPlugin.js';
19
+ import getStringPlugin from './api/getStringPlugin.js';
20
20
 
21
21
  import sitevision from './plugins/sitevisionServer.js';
22
22
 
@@ -41,7 +41,7 @@ export default function rollupServer({
41
41
  getAliasServerPlugin(),
42
42
  sitevision(),
43
43
  json(),
44
- string({ include: '**/*.html' }),
44
+ getStringPlugin(),
45
45
  getNodeResolvePlugin(),
46
46
  getCommonjsPlugin(),
47
47
  getInsertPlugin({ input, imports: [cssOutput] }),