Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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 typescript@2.9 @angular/bazel @bazel/typescript@0.17.0 @bazel/ibazel
rm e2e/protractor-conf.js
rm src/karma.conf.js
rm src/test.ts
@stevermeister

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.