Skip to content

Commit 294ac12

Browse files
committed
ensure building with eol2 works
1 parent 45186cb commit 294ac12

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ jobs:
4141
with:
4242
build: npm run build:example
4343
start: npm run cypress:prepare
44+
45+
- name: Make sure we can compile with eol2 via command line
46+
run: |
47+
npm run build:example:eol2

example/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { defineConfig } from 'vite'
33
import plugin from 'vite-plugin-elm'
44

55
const outputDir = process.env.GITHUB_WORKSPACE ?? __dirname
6-
const compileWithElmOptimizeLevel2 = (targets) => `npx elm-optimize-level-2 -O3 --output ${outputDir}/elm.js ${targets[0]} &> /dev/null && cat ${outputDir}/elm.js && rm -f ${outputDir}/elm.js &> /dev/null`;
6+
const compileWithElmOptimizeLevel2 = (targets) => `npx elm-optimize-level-2 -O3 --output ${outputDir}/elm.js ${targets[0]} > /dev/null && cat ${outputDir}/elm.js && rm -f ${outputDir}/elm.js > /dev/null`;
77

88
export default defineConfig({
99
plugins: [plugin(

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"prettier": "prettier --check .",
1515
"prepare": "npm run build",
1616
"build:example": "cd ./example && npm i && npm run build",
17+
"build:example:eol2": "cd ./example && npm run build:eol2",
1718
"test": "vitest",
1819
"test:ci": "vitest run",
1920
"test-server:dev": "cd ./example && npm run dev -- --port 8936",

0 commit comments

Comments
 (0)