-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlakefile.lean
62 lines (50 loc) · 1.69 KB
/
lakefile.lean
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import Lake
open Lake DSL
package leanPremiseSelection
require mathlib from git
"https://github.com/leanprover-community/mathlib4"@
"df32aa2ebe0f1ef9bce7831b1bcc0723f07a4724"
require proofwidgets from git
"https://github.com/EdAyers/ProofWidgets4"@"v0.0.21"
@[default_target]
lean_lib PremiseSelection
@[default_target]
lean_lib Tests
@[default_target]
lean_exe Train where
root := `Scripts.Train
@[default_target]
lean_exe Predict where
root := `Scripts.Predict
@[default_target]
lean_exe KnnPredict where
root := `Scripts.KnnPredict
-- def npmCmd : String := "npm"
-- target packageLock : FilePath := do
-- let widgetDir := __dir__ / "widget"
-- let packageFile ← inputFile <| widgetDir / "package.json"
-- let packageLockFile := widgetDir / "package-lock.json"
-- buildFileAfterDep packageLockFile packageFile fun _srcFile => do
-- proc {
-- cmd := npmCmd
-- args := #["install"]
-- cwd := some widgetDir
-- }
-- def tsxTarget (pkg : Package) (tsxName : String)
-- : IndexBuildM (BuildJob FilePath) := do
-- let widgetDir := __dir__ / "widget"
-- let jsFile := widgetDir / "dist" / s!"{tsxName}.js"
-- let deps : Array (BuildJob FilePath) := #[
-- ← inputFile <| widgetDir / "src" / s!"{tsxName}.tsx",
-- ← inputFile <| widgetDir / "rollup.config.js",
-- ← inputFile <| widgetDir / "tsconfig.json",
-- ← fetch (pkg.target ``packageLock)
-- ]
-- buildFileAfterDepArray jsFile deps fun _srcFile => do
-- proc {
-- cmd := npmCmd
-- args := #["run", "build", "--", "--tsxName", tsxName]
-- cwd := some widgetDir
-- }
-- @[default_target]
-- target widgetJs (pkg : Package) : FilePath := tsxTarget pkg "index"