This repo implements the webdev.dartlang.org website. It uses the tools and infrastructure of www.dartlang.org (which is implemented in github.com/dart-lang/site-www).
Prerequisites for building this site (assuming that you already have a local copy of the repo):
- Dart, aim for the latest version.
- Node v6; instructions below assume use of nvm.
(HomeBrew users shall set the
NVM_DIR
env as instructed afterbrew install nvm
.) - The ruby gem
bundler
. (HomeBrew users can get it with:brew install ruby
andgem install bundler
)
Installation instructions:
nvm install 6
(on clean install) and/ornvm use 6
source ./scripts/env-set.sh
./scripts/before-install.sh
./scripts/get-ng-repo.sh
(optional).
This step ensures that a localdart-lang/angular2
repo is present as a sibling to this repo; and thatangular-dart
is an alias toangular2
../scripts/install.sh
Once everything's installed, you can build and serve:
gulp build
# use --fast to avoid running dartdoc when API docs already existfirebase serve --port 4001
Or, to build, serve, and have a watcher for changes:
./scripts/serve_local.sh
Other useful gulp tasks:
gulp clean
# deletespublish
gulp build --dgeni-log=info
# trace atinfo
level (warn
is default)gulp build-deploy
# build and deploy to active firebase project
See the dart-lang/site-www README for more setup and build instructions.