Skip to content

Commit

Permalink
Updated JS tasks for ./go -- node:build, node:'dry-run', and node:dep…
Browse files Browse the repository at this point in the history
…loy (which delegate to Bazel)
  • Loading branch information
David Haeffner committed Jun 24, 2019
1 parent 9642154 commit 9a06e75
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -547,18 +547,21 @@ namespace :node do
end
end

task :deploy => [
"node:atoms",
task :build do
sh "bazel build //javascript/node/selenium-webdriver"
end

task :'dry-run' => [
"node:build",
] do
cmd = "node javascript/node/deploy.js" <<
" --output=build/javascript/node/selenium-webdriver" <<
" --resource=LICENSE:/LICENSE" <<
" --resource=NOTICE:/NOTICE" <<
" --resource=common/src/web/:test/data/" <<
" --exclude_resource=common/src/web/Bin" <<
" --exclude_resource=.gitignore" <<
" --src=javascript/node/selenium-webdriver"
cmd = "bazel run javascript/node/selenium-webdriver:selenium-webdriver.pack"
sh cmd
end

task :deploy => [
"node:build",
] do
cmd = "bazel run javascript/node/selenium-webdriver:selenium-webdriver.publish"
sh cmd
end

Expand Down

0 comments on commit 9a06e75

Please sign in to comment.