TOC
- Overview
- Architecture of www.wikipedia.org
- Development Process
- Getting Started
- Gulp Tasks
- Production Builds
- Deployment
- Sister Project Portals
Prerequisites:
- Node v6.11 or greater
- NPM v3.8 or greater
To download all dependencies, run:
npm install
To view changes you make while developing, you will need to run a development server pointing to the root of this repository. This can be as easy as running one of the following commands from the root directory of the portals repository.
npm run dev-server
Note You can update the page stats, watch for changes in the wikipedia.org dev dir, and start a dev server by using a single command
npm run start
Then, you should be able to access the development directory at http://localhost:8080/src/wikipedia.org
and the production directory at http://localhost:8080/prod/wikipedia.org
.
To watch for changes while you're developing, run:
gulp watch --portal=wikipedia.org
This will watch for changes in src/wikipedia.org
and recompile the HTML/CSS/JS and images if they change. The changes will be visible when then browser is reloaded.
To download the latest stats (article-counts and page-views) for the portal pages, run:
gulp update-stats
After that task completes, the next time you run the watch command the wikipedia.org dev page will be updated with the latest stats.