liftie 4.0.1 → 4.0.2

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/Makefile CHANGED
@@ -10,11 +10,14 @@ LINT_SRC = app.js bin/generate lib test
10
10
 
11
11
  PLUGINS = lifts weather webcams snow
12
12
 
13
+ ESBUILD_FORMAT = esm
14
+
13
15
  ESBUILD_OPTS += \
14
16
  --bundle \
15
17
  --log-level=warning \
16
18
  --color=false \
17
19
  --tree-shaking=true \
20
+ --format=${ESBUILD_FORMAT} \
18
21
  --target=es2018
19
22
 
20
23
  ESBUILD_MIN_OPTS += \
@@ -57,6 +60,7 @@ all: lint test build
57
60
  --use postcss-cachify \
58
61
  --postcss-cachify.baseUrl /stylesheets \
59
62
  --postcss-cachify.basePath public \
63
+ --postcss-cachify.format name \
60
64
  --output $@ $@
61
65
 
62
66
  %.min.css: %.css
@@ -94,9 +98,11 @@ $(BUILD_DIR)/$(PROJECT).js: lib/client/boot/index.js $(SRC) node_modules | $(BUI
94
98
  $(BUILD_DIR)/$(PROJECT).min.js: lib/client/boot/index.js $(SRC) node_modules | $(BUILD_DIR)
95
99
  $(RUN_ESBUILD_MIN)
96
100
 
101
+ $(BUILD_DIR)/$(PROJECT)-embed.js: ESBUILD_FORMAT=iife
97
102
  $(BUILD_DIR)/$(PROJECT)-embed.js: lib/embed/index.js | $(BUILD_DIR)
98
103
  $(RUN_ESBUILD)
99
104
 
105
+ $(BUILD_DIR)/$(PROJECT)-embed.min.js: ESBUILD_FORMAT=iife
100
106
  $(BUILD_DIR)/$(PROJECT)-embed.min.js: lib/embed/index.js | $(BUILD_DIR)
101
107
  $(RUN_ESBUILD_MIN)
102
108
 
package/app.js CHANGED
@@ -28,7 +28,7 @@ process.env.NODE_ENV ??= 'development';
28
28
  const root = path.join(path.dirname(new URL(import.meta.url).pathname), 'public');
29
29
  const { SITE_URL: siteUrl, LIFTIE_STATIC_HOST: staticHost = '' } = process.env;
30
30
 
31
- const cachify = cachifyStatic(root);
31
+ const cachify = cachifyStatic(root, { format: 'name' });
32
32
 
33
33
  app.locals = {
34
34
  min: '.min',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "liftie",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Clean, simple, easy to read, fast ski resort lift status",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -62,7 +62,7 @@
62
62
  "@pirxpilot/stylus": "^1.2.0",
63
63
  "commander": "~14",
64
64
  "postcss": "~8",
65
- "postcss-cachify": "^4.0.0",
65
+ "postcss-cachify": "^5.0.0",
66
66
  "postcss-cli-simple": "~4.0.0",
67
67
  "prompt": "~1",
68
68
  "undici": "^7.10.0"