Skip to content

Instantly share code, notes, and snippets.

@stevermeister
Last active October 5, 2018 09:12
Show Gist options
  • Save stevermeister/50daee571e996998974934a33ec2c6c7 to your computer and use it in GitHub Desktop.
Save stevermeister/50daee571e996998974934a33ec2c6c7 to your computer and use it in GitHub Desktop.
Run to setup bazel files for fresh ng-cli project
yarn global add @bazel/ibazel
curl https://raw.githubusercontent.com/alexeagle/canonical-angularcli-app/master/.bazelrc > .bazelrc
curl https://raw.githubusercontent.com/alexeagle/canonical-angularcli-app/master/WORKSPACE > WORKSPACE
curl https://raw.githubusercontent.com/alexeagle/canonical-angularcli-app/master/BUILD.bazel > BUILD.bazel
curl https://raw.githubusercontent.com/alexeagle/canonical-angularcli-app/master/src/BUILD.bazel > ./src/BUILD.bazel
curl https://raw.githubusercontent.com/alexeagle/canonical-angularcli-app/master/e2e/protractor.on-prepare.js > ./e2e/protractor.on-prepare.js
curl https://raw.githubusercontent.com/alexeagle/canonical-angularcli-app/master/e2e/BUILD.bazel > ./e2e/BUILD.bazel
curl https://raw.githubusercontent.com/alexeagle/canonical-angularcli-app/236406851409a88e85b3cdc9e6eaa250061fd7cc/src/main.ts > ./src/main.ts
curl https://raw.githubusercontent.com/alexeagle/canonical-angularcli-app/06151761ded53d22a2d03b9e6d67c31f045559af/src/index.html > ./src/index.html
curl https://raw.githubusercontent.com/alexeagle/canonical-angularcli-app/ed5638193c4fc0219d7e5b41c539aee2b8aeb724/src/app/app.component.spec.ts > ./src/app/app.component.spec.ts
yarn add -D [email protected] @angular/bazel @bazel/[email protected] @bazel/ibazel
rm e2e/protractor-conf.js
rm src/karma.conf.js
rm src/test.ts
@stevermeister
Copy link
Author

stevermeister commented Oct 4, 2018

you can run it by doing
curl https://gist.githubusercontent.com/stevermeister/50daee571e996998974934a33ec2c6c7/raw/fd3e84c45a0033cad7b9e720b80b89d962629f3a/bazel-start.sh | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment