Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename daml2ts to daml2js #5394

Merged
merged 1 commit into from
Apr 3, 2020
Merged

Rename daml2ts to daml2js #5394

merged 1 commit into from
Apr 3, 2020

Conversation

hurryabit
Copy link
Contributor

@hurryabit hurryabit commented Apr 2, 2020

This is pretty much a search and replace over the whole repo, including
file names.

This does not yet add the daml codegen js command. We'll do that
in a separate PR.

CHANGELOG_BEGIN
CHANGELOG_END

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.


This change is Reviewable

This is pretty much a search and replace over the whole repo, including
file names.

CHANGELOG_BEGIN
CHANGELOG_END
@hurryabit hurryabit force-pushed the daml2ts-becomes-daml2js branch from 1f02611 to c763dd3 Compare April 2, 2020 21:33
Copy link
Contributor

@shayne-fletcher shayne-fletcher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very reasonable.

@hurryabit hurryabit marked this pull request as ready for review April 3, 2020 06:28
@hurryabit hurryabit requested a review from a user April 3, 2020 06:28
@hurryabit hurryabit requested a review from a user April 3, 2020 06:28
Copy link
Contributor

@cocreature cocreature left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from the fact that I find it confusing that we call it daml2js and then users only interact with it by calling daml codegen js. But that’s new to this PR and I’m happy to leave it up to you.

runDaml2js remainingArgs = do
daml2js <- fmap (</> "daml2js" </> "daml2js") getSdkPath
withProcessWait_' (proc daml2js remainingArgs) (const $ pure ()) `catchIO`
(\e -> hPutStrLn stderr "Failed to invoke daml2js." *> throwIO e)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn’t this say daml codegen js. The executable invoked by that seems like an implementation detail.

@@ -1,25 +1,25 @@
.. Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
.. SPDX-License-Identifier: Apache-2.0

``daml2ts`` - TypeScript code generator for DAML
``daml2js`` - TypeScript code generator for DAML
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somewhat similar question. I think it’s slightly confusing to have this called daml2js while the command is called daml codegen js.

@hurryabit
Copy link
Contributor Author

I agree regarding the docs. I'll have a walk through the docs today and look at all occurrences of daml2js and see where replacing them with daml codegen js is the right thing.

@hurryabit hurryabit merged commit 31c78d5 into master Apr 3, 2020
@hurryabit hurryabit deleted the daml2ts-becomes-daml2js branch April 3, 2020 06:58
@nemanja-da
Copy link
Contributor

@hurryabit @Robin-da Note that we need to update the architecture diagrams then as well as they're pointing to daml2ts at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants