Play

Check-in [34e9e1a068]
Login
Overview
Comment:Add standard library as a dependency when creating a project with the 'init' command.
Timelines: family | ancestors | descendants | both | cli
Files: files | file ages | folders
SHA3-256: 34e9e1a0686247c62c04e7e5b766fd59100d4b0a7f2a3ea73c733be075ebeb3c
User & Date: robin.hansen on 2021-04-07 12:58:13
Other Links: branch diff | manifest | tags
Context
2021-04-07
13:01
Detect errors in CLI.elm, and forward those errors to the terminal. check-in: 3b0a88175e user: robin.hansen tags: cli
12:58
Add standard library as a dependency when creating a project with the 'init' command. check-in: 34e9e1a068 user: robin.hansen tags: cli
08:01
Add cli command for initializing project. check-in: 770b0da167 user: robin.hansen tags: cli
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Modified bin/cli.js from [0900cd213a] to [30c9406240].

28
29
30
31
32
33
34
35


36
37
38
39
40
41
42
    const playJson = {
        name: subCmdFlags[0],
        version: "0.1.0",
        "language-version": "0.2.0",
        "exposed-modules": [
            "main"
        ],
        dependencies: {},


        "package-paths": []
    };

    fs.writeFileSync(path.join(cwd, "play.json"), JSON.stringify(playJson, null, 4));

    fs.writeFileSync(path.join(cwd, "src", "main.play"), `
def: execute







|
>
>







28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
    const playJson = {
        name: subCmdFlags[0],
        version: "0.1.0",
        "language-version": "0.2.0",
        "exposed-modules": [
            "main"
        ],
        dependencies: {
            "play/standard_library": "0.2.0"
        },
        "package-paths": []
    };

    fs.writeFileSync(path.join(cwd, "play.json"), JSON.stringify(playJson, null, 4));

    fs.writeFileSync(path.join(cwd, "src", "main.play"), `
def: execute