Skip to content

Commit

Permalink
fix production
Browse files Browse the repository at this point in the history
  • Loading branch information
abentkamp committed Jul 29, 2024
1 parent 818b620 commit f32bb58
Show file tree
Hide file tree
Showing 16 changed files with 1,083 additions and 1,600 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ export default {
viteStaticCopy({
targets: [
{
src: normalizePath(path.resolve(__dirname, './node_modules/@leanprover/infoview/dist/*.production.min.js')),
src: [
normalizePath(path.resolve(__dirname, './node_modules/@leanprover/infoview/dist/*.production.min.js')),
normalizePath(path.resolve(__dirname, './node_modules/lean4monaco/webview/webview.js')),
],
dest: 'infoview'
}
]
Expand Down
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "concurrently \"npm run start_client\" \"npm run start_server\" -n client,server -c \"bgBlue.bold,bgMagenta.bold\"",
"build": "tsc -b && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "concurrently \"vite preview\" \"npm run start_server\" -n client,server -c \"bgBlue.bold,bgMagenta.bold\""
},
"dependencies": {
"lean4monaco": "file:..",
Expand Down
2 changes: 1 addition & 1 deletion demo/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useRef, useState } from 'react'
import { useState } from 'react'
import './App.css'
import LeanMonacoComponent from './LeanMonaco'
import { LeanMonacoOptions } from 'lean4monaco'
Expand Down
5 changes: 4 additions & 1 deletion demo/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export default defineConfig({
viteStaticCopy({
targets: [
{
src: normalizePath(path.resolve(__dirname, '../node_modules/@leanprover/infoview/dist/*.production.min.js')),
src: [
normalizePath(path.resolve(__dirname, '../node_modules/@leanprover/infoview/dist/*.production.min.js')),
normalizePath(path.resolve(__dirname, '../dist/webview/webview.js')),
],
dest: 'infoview'
}
]
Expand Down
18 changes: 0 additions & 18 deletions dev/index.html

This file was deleted.

22 changes: 0 additions & 22 deletions dev/main.ts

This file was deleted.

1 change: 0 additions & 1 deletion dev/public/vite.svg

This file was deleted.

69 changes: 0 additions & 69 deletions dev/style.css

This file was deleted.

28 changes: 0 additions & 28 deletions dev/vite.config.ts

This file was deleted.

Loading

0 comments on commit f32bb58

Please sign in to comment.