Skip to content

Commit

Permalink
Update bootstrapper template (#150)
Browse files Browse the repository at this point in the history
* Update bootstrapper template

* update CI setup to use yarn for caching
  • Loading branch information
ManasJayanth authored Jul 14, 2020
1 parent 71a03b6 commit 9d0fe9c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ci/esy-build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

steps:
- template: utils/use-node.yml
- template: utils/use-cache-npm.yml
- template: utils/use-cache-yarn.yml
- template: utils/use-esy.yml
- template: utils/use-cache-esy.yml
- script: "esy install"
Expand Down
19 changes: 19 additions & 0 deletions .ci/utils/use-cache-yarn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
steps:
- task: Cache@2
inputs:
key: 'npm | "$(Agent.OS)" | "$(Build.SourcesDirectory)/npm-cli/yarn.lock"'
restoreKeys: |
npm | "$(Agent.OS)"
npm
path: $(HOME)/.yarn
displayName: Cache yarn
condition: ne(variables['AGENT.OS'], 'Windows_NT')
- task: Cache@2
inputs:
key: 'npm | "$(Agent.OS)" | "$(Build.SourcesDirectory)/npm-cli/yarn.lock"'
restoreKeys: |
npm | "$(Agent.OS)"
npm
path: $(AppData)\Local\Yarn\Cache\v2
displayName: Cache yarn
condition: eq(variables['AGENT.OS'], 'Windows_NT')
2 changes: 1 addition & 1 deletion npm-cli/scripts/vendor-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require("path");
const cp = require("child_process");
const util = require("util");

let tag = "0.1.0-alpha.7";
let tag = "0.1.0-alpha.8";
let url = `https://github.com/esy/pesy-reason-template/archive/${tag}.zip`;
let downloadAs = "template.zip";
let extractedDirName = `pesy-reason-template-${tag}`;
Expand Down
2 changes: 1 addition & 1 deletion npm-cli/src/DefaultTemplate.re
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ let path =
Path.resolve([|
dirname,
"templates",
"pesy-reason-template-0.1.0-alpha.7",
"pesy-reason-template-0.1.0-alpha.8",
|]);

0 comments on commit 9d0fe9c

Please sign in to comment.