A nonpartisan tool for the well-rounded news reader.
Our Google Chrome Extension encourages citizens to be more informed participants in American democracy through balanced media. Let us recommend articles to complete your political perspective.
Current production version: v.2.0.7
Dev version: 2.0.9
- BTM popover redesign
- Headers standardized
- Expansion to more news publications
- /us/ and /world/ added
- btm.js - Responsible for placing BTM icons and Show Alternatives Button
- popup.js - Google Analytics logic lives here
- manifest.json - Entry point for Chrome; list of content scripts and css injections
npm install
to install new dependenciesnpm run build-watch
to automatically regenerate abundle.js
with code changes
npm run build
to generate abundle.js
- Make sure the
manifest.json
points to thebundle.js
- Upload the
/src
subdirectory as the extension's package
- Currently using Mocha + Chai - see recommendation-fetcher-spec.js for an example
- To run all tests:
npm test
- To run a specific suite:
mocha <example.spec.js>
- BTM uses ESlint with a modified Airbnb style guide
- To lint against a file:
./node_modules/.bin/eslint <yourfile.js>
- To lint against whole project:
npm run linter
- There are two main branches: btm-stable (production) and master (dev)
- For a bug fix, branch off of btm-stable, merge into btm-stable, then merge btm-stable into master
- For new features, branch off of master and merge into master
- New code on master will be merged into btm-stable, and btm-stable will be deployed.