Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Convert bash scripts to node.js - #1003

Merged
zcbenz merged 8 commits into
masterfrom
bash-scripts-to-js
Oct 22, 2013
Merged

zcbenz merged 8 commits into
masterfrom
bash-scripts-to-js

Conversation

@zcbenz

@zcbenz zcbenz commented Oct 19, 2013

Copy link
Copy Markdown
Contributor

Scripts converted:

  • script/bootstrap
  • script/build
  • script/cibuild
  • script/test

Errors got when apm install on Windows:

npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192581401-0.7585285515524447\package\snippets\#include "" (inc).json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192581401-0.7585285515524447\package\snippets\#include "" (inc).json
npm ERR! code ENOENT
npm ERR! errno 34
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/mustache-tmbundle/-/mustache-tmbundle-1.0.0.tgz
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/property-list-tmbundle/-/property-list-tmbundle-1.0.0.tgz
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/java-tmbundle/-/java-tmbundle-1.0.0.tgz
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/puppet-textmate-tmbundle/-/puppet-textmate-tmbundle-1.0.0.tgz
npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192584339-0.24995634844526649\package\preferences\SymbolList (class|node|define).json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192584339-0.24995634844526649\package\preferences\SymbolList (class|node|define).json
npm ERR! code ENOENT
npm ERR! errno 34
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/php-tmbundle/-/php-tmbundle-1.0.0.tgz
npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192581636-0.056228541769087315\package\snippets\background-attachment: scroll:fixed (background).json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192581636-0.056228541769087315\package\snippets\background-attachment: scroll:fixed (background).json
npm ERR! code ENOENT
npm ERR! errno 34
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/ruby-on-rails-tmbundle/-/ruby-on-rails-tmbundle-1.0.0.tgz
npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192584683-0.25869841827079654\package\snippets\<_php $this->… _>.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192584683-0.25869841827079654\package\snippets\<_php $this->… _>.json
npm ERR! code ENOENT
npm ERR! errno 34
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/objective-c-tmbundle/-/objective-c-tmbundle-1.0.0.tgz
npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192584699-0.8597134053707123\package\snippets\#import "" (imp).json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192584699-0.8597134053707123\package\snippets\#import "" (imp).json
npm ERR! code ENOENT
npm ERR! errno 34
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/html-tmbundle/-/html-tmbundle-1.0.0.tgz
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/sass-tmbundle/-/sass-tmbundle-1.0.0.tgz
npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192584886-0.3901462631765753\package\snippets\Wrap in <_= … _>.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192584886-0.3901462631765753\package\snippets\Wrap in <_= … _>.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192585027-0.8104720045812428\package\snippets\background-attachment: scroll:fixed.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192585027-0.8104720045812428\package\snippets\background-attachment: scroll:fixed.json
npm ERR! code ENOENT
npm ERR! errno 34
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/python-tmbundle/-/python-tmbundle-1.0.0.tgz
npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192585074-0.5557537979912013\package\macros\Inside Inheritance List: Overtype Closing ):.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192585074-0.5557537979912013\package\macros\Inside Inheritance List: Overtype Closing ):.json
npm ERR! code ENOENT
npm ERR! errno 34
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/sql-tmbundle/-/sql-tmbundle-1.0.0.tgz
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/source-tmbundle/-/source-tmbundle-1.0.0.tgz
npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192585511-0.6161916572600603\package\commands\Move to EOL and Insert ";".json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192585511-0.6161916572600603\package\commands\Move to EOL and Insert ";".json
npm ERR! code ENOENT
npm ERR! errno 34
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/shellscript-tmbundle/-/shellscript-tmbundle-1.0.0.tgz
npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192585558-0.46963041042909026\package\snippets\#!:usr:bin:env (!env).json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192585558-0.46963041042909026\package\snippets\#!:usr:bin:env (!env).json
npm ERR! code ENOENT
npm ERR! errno 34
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/textmate-clojure/-/textmate-clojure-1.0.0.tgz
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/todo-tmbundle/-/todo-tmbundle-1.0.0.tgz
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/xml-tmbundle/-/xml-tmbundle-1.0.0.tgz
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/ruby-tmbundle/-/ruby-tmbundle-1.0.0.tgz
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/yaml-tmbundle/-/yaml-tmbundle-1.0.0.tgz
npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192586339-0.345666924957186\package\macros\each_char { |chr| .. }  (eac).json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192586339-0.345666924957186\package\macros\each_char { |chr| .. }  (eac).json
npm ERR! code ENOENT
npm ERR! errno 34
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/text-tmbundle/-/text-tmbundle-1.0.0.tgz
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/perl-tmbundle/-/perl-tmbundle-1.0.0.tgz
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/pegjs-tmbundle/-/pegjs-tmbundle-1.0.0.tgz
npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192587558-0.03808748512528837\package\snippets\#!:usr:bin:env perl.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192587558-0.03808748512528837\package\snippets\#!:usr:bin:env perl.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOENT, open 'C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192584683-0.23252682946622372\package\snippets\get :on => :member.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig" "C:\\cygwin\\home\\zcbenz\\codes\\atom\\vendor\\apm\\.apmrc" "install" "--target=0.10.18" "--arch=ia32" "--msvs_version=2012"
npm ERR! cwd C:\cygwin\home\zcbenz\codes\atom
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.9
npm ERR! path C:\cygwin\tmp\npm-2452-YYH-yp_o\1382192584683-0.23252682946622372\package\snippets\get :on => :member.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fetch failed https://atom.cloudant.com/registry/_design/app/_rewrite/git-tmbundle/-/git-tmbundle-1.0.0.tgz
npm http GET https://atom.cloudant.com/registry/_design/app/_rewrite/git-tmbundle/-/git-tmbundle-1.0.0.tgz
npm http 200 https://atom.cloudant.com/registry/_design/app/_rewrite/git-tmbundle/-/git-tmbundle-1.0.0.tgz
npm

@mcolyer

mcolyer commented Oct 21, 2013

Copy link
Copy Markdown
Contributor

I'm okay with merging since ci is 🍏, even though apm doesn't currently work on Windows. @kevinsawicki thoughts?

@kevinsawicki

Copy link
Copy Markdown
Contributor

Yeah, seems like a good start to getting things working on both platforms.

@mcolyer mcolyer mentioned this pull request Oct 21, 2013
2 tasks
zcbenz added a commit that referenced this pull request Oct 22, 2013
Convert bash scripts to node.js
@zcbenz
zcbenz merged commit 12ca6f8 into master Oct 22, 2013
@zcbenz
zcbenz deleted the bash-scripts-to-js branch October 22, 2013 00:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants