Skip to content

Commit

Permalink
use packages from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
kraklin committed Aug 5, 2023
1 parent 3bb0abc commit 72f0336
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 8 deletions.
33 changes: 32 additions & 1 deletion elm-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion elm-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"start": "vite"
},
"devDependencies": {
"elm-debug-transformer": "^1.2.1",
"elm-tooling": "^1.14.0",
"vite": "^4.4.8",
"vite-plugin-elm": "^2.8.0"
"vite-plugin-elm": "^2.8.0",
"vite-plugin-elm-debug-transformer": "^0.0.1"
}
}
6 changes: 2 additions & 4 deletions elm-app/src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { Elm } from './Main.elm';
//import * as ElmDebugger from '../../dist/index.mjs';
import * as ElmDebugger from 'elm-debug-transformer';
//import * as ElmDebugger from 'elm-debug-transformer';

console.log(ElmDebugger);
ElmDebugger.register({simple_mode: false, debug: true, limit: 10000});
//ElmDebugger.register({simple_mode: false, debug: true, limit: 10000});

Elm.Main.init({
node: document.getElementById('root'),
Expand Down
4 changes: 2 additions & 2 deletions elm-app/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite'
import plugin from 'vite-plugin-elm'

import transformer from 'vite-plugin-elm-debug-transformer'

export default defineConfig({
plugins: [plugin()]
plugins: [plugin(), transformer({theme: 'dark'}) ]
})

0 comments on commit 72f0336

Please sign in to comment.