@soleil-se/build-app 1.8.2 → 1.9.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/index.js CHANGED
@@ -2,9 +2,10 @@ import args from '@soleil-se/build-utils/args';
2
2
  import runTasks from '@soleil-se/build-utils/runTasks';
3
3
  import task from '@soleil-se/build-utils/task';
4
4
  import watch from '@soleil-se/build-utils/watch';
5
- import { getTimestamp, logError, logInfo, logStartup } from '@soleil-se/build-utils/log';
5
+ import { logError, logStartup, logEnviroment, logTimestamp } from '@soleil-se/build-utils/log';
6
+ import createChecksumChecker from '@soleil-se/build-utils/createChecksumChecker';
6
7
  import chalk from 'chalk';
7
-
8
+ import slash from 'slash';
8
9
  import {
9
10
  input, manifest, addonName, env, projectRoot, rollup, watchPaths, eslintPaths,
10
11
  } from './config.js';
@@ -17,9 +18,12 @@ import config from './config/index.js';
17
18
  const zipPath = `./dist/${manifest.id}-${manifest.version}.zip`;
18
19
 
19
20
  async function main() {
20
- console.log(getTimestamp(), `${addonName} (${manifest.id})`);
21
+ logTimestamp(`${addonName} (${manifest.id})`);
21
22
  logStartup(import.meta.url);
22
- logInfo(`Using ${chalk.white('project_config.json')} in ${chalk.white(projectRoot)}`);
23
+ if (!args.project && env) {
24
+ logEnviroment(env);
25
+ }
26
+ logTimestamp(`Config: ${chalk.blue(slash(`${projectRoot}/project_config.json`))}`);
23
27
  const tasks = [
24
28
  task('clean', clean({ dir: './dist' })),
25
29
  args.eslint && task('eslint', eslint({ src: eslintPaths })),
@@ -79,6 +83,7 @@ async function main() {
79
83
 
80
84
  if (args.watch) {
81
85
  watch(watchPaths, () => runTasks(tasks));
86
+ if (!args.project) createChecksumChecker();
82
87
  } else {
83
88
  await runTasks(tasks);
84
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleil-se/build-app",
3
- "version": "1.8.2",
3
+ "version": "1.9.0",
4
4
  "bin": {
5
5
  "build-app": "./bin/index.js",
6
6
  "sv-app-build": "./bin/index.js"
@@ -14,17 +14,17 @@
14
14
  },
15
15
  "homepage": "https://docs.soleil.se/build/app",
16
16
  "dependencies": {
17
- "@babel/core": "7.22.6",
18
- "@babel/preset-env": "7.22.6",
17
+ "@babel/core": "7.22.20",
18
+ "@babel/preset-env": "7.22.20",
19
19
  "@rollup/plugin-alias": "5.0.0",
20
20
  "@rollup/plugin-babel": "6.0.3",
21
- "@rollup/plugin-commonjs": "25.0.2",
21
+ "@rollup/plugin-commonjs": "25.0.4",
22
22
  "@rollup/plugin-json": "6.0.0",
23
- "@rollup/plugin-node-resolve": "15.1.0",
23
+ "@rollup/plugin-node-resolve": "15.2.1",
24
24
  "@rollup/plugin-replace": "5.0.2",
25
25
  "@rollup/plugin-terser": "0.4.3",
26
- "archiver": "5.3.1",
27
- "autoprefixer": "10.4.14",
26
+ "archiver": "6.0.1",
27
+ "autoprefixer": "10.4.15",
28
28
  "babel-plugin-transform-async-to-promises": "0.8.18",
29
29
  "chalk": "5.3.0",
30
30
  "find-up": "6.3.0",
@@ -34,10 +34,10 @@
34
34
  "got": "13.0.0",
35
35
  "gzip-size": "7.0.0",
36
36
  "lodash-es": "4.17.21",
37
- "postcss": "8.4.24",
37
+ "postcss": "8.4.30",
38
38
  "postcss-pxtorem": "6.0.0",
39
39
  "pretty-bytes": "6.1.0",
40
- "rollup": "3.26.1",
40
+ "rollup": "3.29.2",
41
41
  "rollup-plugin-cleanup": "3.2.1",
42
42
  "rollup-plugin-postcss": "4.0.2",
43
43
  "rollup-plugin-string": "3.0.0",
@@ -45,7 +45,7 @@
45
45
  "slash": "5.1.0",
46
46
  "svelte-preprocess": "5.0.4",
47
47
  "@soleil-se/build-config": "1.1.3",
48
- "@soleil-se/build-utils": "1.4.3"
48
+ "@soleil-se/build-utils": "1.5.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "svelte": "4.0.4"
@@ -13,6 +13,14 @@ export function getBabelClientPlugin() {
13
13
  presets: [
14
14
  ['@babel/preset-env', {
15
15
  shippedProposals: true,
16
+ targets: [
17
+ 'last 2 chrome major versions',
18
+ 'last 2 firefox major versions',
19
+ 'last 2 ios_saf major versions',
20
+ 'last 2 edge major versions',
21
+ 'last 2 safari major versions',
22
+ 'last 2 and_chr major versions',
23
+ ],
16
24
  }],
17
25
  ],
18
26
  });