1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 17:32:00 +03:00
juvix/app/Commands/Dev
Paul Cadman 68d4314c78
Migrate all Juvix projects from juvix.yaml to Package.juvix in the repository (#2503)
This PR:

* Modifies entry point `_entryPointBuildDir` to use the `BuildDir` type
instead of `SomeBase Dir`. This allows delayed resolution of the default
build directory which was useful for the Package -> Concrete translation
point below.
* Modifies `juvix dev root` to render the current package as a
Package.juvix file.
* Modifies the Package -> Concrete translation to recognise default
arguments. So, for example, an empty `juvix.yaml` file will be
translated into the following (instead of the `name`, `version`, and
`dependencies` arguments being populated).

        
        module Package;

        import Stdlib.Prelude open;
        import PackageDescription.V1 open;

        package : Package := defaultPackage;
        
* Adds a temporary command (removed when juvix.yaml support is removed)
`juvix dev migrate-juvix-yaml` that translates `juvix.yaml` into an
equivalent `Package.juvix` in the current project.
* Adds a temporary script `migrate-juvix-yaml.sh` (removed when
juvix.yaml support is removed) which can be run in the project to
translate all Juvix projects in the repository.
* Actually translate all of the `juvix.yaml` files to `Package.juvix`
using the script.

* Part of https://github.com/anoma/juvix/issues/2487
2023-11-07 18:11:02 +00:00
..
Asm Use system locale independent readFile and writeFile APIs from with-utf8 (#2473) 2023-10-26 09:13:33 +01:00
Core Use a Juvix source file to define a package (#2434) 2023-10-27 12:35:20 +01:00
DisplayRoot Migrate all Juvix projects from juvix.yaml to Package.juvix in the repository (#2503) 2023-11-07 18:11:02 +00:00
Geb Rename Roots type to Root (#2480) 2023-10-30 14:05:52 +01:00
Highlight Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Internal Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
MigrateJuvixYaml Migrate all Juvix projects from juvix.yaml to Package.juvix in the repository (#2503) 2023-11-07 18:11:02 +00:00
Parse Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Repl Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Runtime Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Scope Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Termination Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Asm.hs Update CI to install Smoke, Github actions, and Makefile fixes (#1735) 2023-01-24 11:50:23 +01:00
Core.hs Normalization by Evaluation (#2038) 2023-05-15 18:01:40 +02:00
DisplayRoot.hs Migrate all Juvix projects from juvix.yaml to Package.juvix in the repository (#2503) 2023-11-07 18:11:02 +00:00
Geb.hs Fix Core-To-Geb translation (#1863) 2023-02-28 18:49:44 +01:00
Highlight.hs Refactor EntryPoint, Package, Pipeline, Root packages (#2458) 2023-10-23 12:38:52 +01:00
Internal.hs Update ci to use ormolu 0.5.3.0 and reformat project (#2313) 2023-08-25 17:37:23 +01:00
MigrateJuvixYaml.hs Migrate all Juvix projects from juvix.yaml to Package.juvix in the repository (#2503) 2023-11-07 18:11:02 +00:00
Options.hs Migrate all Juvix projects from juvix.yaml to Package.juvix in the repository (#2503) 2023-11-07 18:11:02 +00:00
Parse.hs Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Runtime.hs Update CI to install Smoke, Github actions, and Makefile fixes (#1735) 2023-01-24 11:50:23 +01:00
Scope.hs Finish the new pretty printing algorithm and delete the old one (#2151) 2023-06-02 13:02:35 +02:00
Termination.hs Update CI to install Smoke, Github actions, and Makefile fixes (#1735) 2023-01-24 11:50:23 +01:00