Overview
Comment: | Check for existance of 'play.json' before initializing Elm-based compiler. |
---|---|
Timelines: | family | ancestors | descendants | both | cli |
Files: | files | file ages | folders |
SHA3-256: |
81e0c6f0c72b0247b147b8a4fa6b6c37 |
User & Date: | robin.hansen on 2021-04-07 07:30:54 |
Other Links: | branch diff | manifest | tags |
Context
2021-04-07
| ||
07:42 | Find path to stdlib and pass that on to PackageLoader.elm. check-in: b5bd5c4ee0 user: robin.hansen tags: cli | |
07:30 | Check for existance of 'play.json' before initializing Elm-based compiler. check-in: 81e0c6f0c7 user: robin.hansen tags: cli | |
2021-04-06
| ||
08:17 | Function marked as entry point is now actually exported from wasm module. Command works! check-in: 271a8a283a user: robin.hansen tags: cli | |
Changes
Modified bin/cli.js from [6bc7e134f7] to [af15a6b2e4].
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
} compileProject(subCmdFlags[0]); } function compileProject(entryPoint) { const cwd = process.cwd(); const compiler = require(__dirname + "/compiler").Elm.CLI.init({ flags: { projectDir: cwd, entryPoint: typeof entryPoint === "undefined" ? null : entryPoint } }); |
> > > > > > |
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
} compileProject(subCmdFlags[0]); } function compileProject(entryPoint) { const cwd = process.cwd(); const rootJsonMetaPath = path.join(cwd, "play.json"); if (!fs.existsSync(rootJsonMetaPath)) { console.error("No 'play.json' file found in this directory."); return; } const compiler = require(__dirname + "/compiler").Elm.CLI.init({ flags: { projectDir: cwd, entryPoint: typeof entryPoint === "undefined" ? null : entryPoint } }); |