Skip to content

Commit

Permalink
Assume template have .opam and dune-project files
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrikstrid committed Aug 6, 2019
1 parent 50d31b4 commit ed0d807
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
22 changes: 0 additions & 22 deletions npm-cli/src/Pesy.bs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 0 additions & 17 deletions npm-cli/src/Pesy.re
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,6 @@ download_git(
renameSync(file, substituteTemplateValues(file));
},
);

let libKebab = packageNameKebabSansScope;
let duneProjectFile = Path.(projectPath / "dune-project");
if (!exists(duneProjectFile)) {
write(
duneProjectFile,
spf({|(lang dune 1.2)
(name %s)
|}, libKebab),
);
};

let opamFileName = libKebab ++ ".opam";
let opamFile = Path.(projectPath / opamFileName);
if (!exists(opamFile)) {
write(opamFile, "");
};
Spinner.stop(setup_files_spinner);

let id = Spinner.start("\x1b[2mRunning\x1b[0m esy install");
Expand Down

0 comments on commit ed0d807

Please sign in to comment.