Skip to content

Commit

Permalink
Bundle template and avoid the network call (#94)
Browse files Browse the repository at this point in the history
* Copies files from vendored template

Rollup unnecessary (this means bs-platform is now in the
dependencies instead of the earlier devDependencies)

* Bump minimum node to 10.x

* Restore node 8.x compat

* Windows fixes

* bug: capitalize instead of uppercase
  • Loading branch information
ManasJayanth committed Dec 31, 2019
1 parent 5c6e1c3 commit b859494
Show file tree
Hide file tree
Showing 23 changed files with 1,401 additions and 857 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -10,4 +10,5 @@ pesy.install
.DS_Store
*.install
*~
scripts/storage
scripts/storage
vendor
3 changes: 1 addition & 2 deletions e2e-tests/Runner.re
Expand Up @@ -29,8 +29,7 @@ let run = (~env=?, c, args) => {
chdir(Path.(cwd / "npm-cli"));
print_endline("Installing pesy globally..");
run(makeCommand("npm"), [|"install"|]);
run(makeCommand("npm"), [|"run", "build"|]);
run(makeCommand("npm"), [|"run", "rollup"|]);
run(makeCommand("npm"), [|"run", "package"|]);
run(makeCommand("npm"), [|"pack"|]);
run(makeCommand("npm"), [|"i", "-g", "./pesy-0.5.0-alpha.10.tgz"|]);
chdir(cwd);
Expand Down
3 changes: 2 additions & 1 deletion npm-cli/.gitignore
Expand Up @@ -5,4 +5,5 @@ npm-debug.log
/lib/bs/
/node_modules/
pesy.bundle.js
pesy-*.tgz
pesy-*.tgz
templates/
10 changes: 4 additions & 6 deletions npm-cli/bsconfig.json
Expand Up @@ -10,13 +10,11 @@
"in-source": true
},
"suffix": ".bs.js",
"bs-dependencies": [
"tablecloth-bucklescript",
"bs-node",
"@elliottcable/bs-cmdliner"
],
"bs-dependencies": ["tablecloth-bucklescript"],
"bsc-flags": ["-bs-g"],
"warnings": {
"error": "+101"
"number": "-44-102-20",
"error": "+5"
},
"namespace": true,
"refmt": 3
Expand Down
213 changes: 72 additions & 141 deletions npm-cli/package-lock.json

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

0 comments on commit b859494

Please sign in to comment.