Skip to content
A React-based UI toolkit for the web
TypeScript CSS JavaScript Other
Branch: develop
Clone or download

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci chore: add CI config for gh-pages branch May 4, 2020
.github chore: minor tweaks to bug report template May 21, 2020
.vscode chore: upgrade (typescript-)eslint, adjust VSCode settings (#4075) Apr 20, 2020
config [core] chore: isolate dom4 import to its own module (#3868) Nov 27, 2019
packages [select] fix(Suggest): dropdown works with inputRef set to ref hook (#… May 23, 2020
resources [icons] feat: add modal, drawers, and app header icons (#4132) May 20, 2020
scripts chore: upgrade to TSLint 6.0 (#4083) Apr 22, 2020
site redirect old v1, v2 sites to new URLs (#2773) Aug 9, 2018
.browserslistrc upgrade to stylelint-config-palantir v3 (#2249) Mar 15, 2018
.editorconfig Add max_line_length for editor configs (#1347) Jul 14, 2017
.eslintrc.js chore: enable lint rule to detect cyclic dependencies (#4095) Apr 27, 2020
.gitignore saner docs site versions (#2545) May 29, 2018
.prettierignore chore: reconfigure ESLint build, improve lint speed (#4078) Apr 21, 2020
.prettierrc.json chore: reconfigure ESLint build, improve lint speed (#4078) Apr 21, 2020
.stylelintignore smarter sass watcher (#143) Nov 14, 2016
.stylelintrc update development dependencies throughout (#1376) Jul 24, 2017
CHANGELOG.md Prepare release v3.15.0 (#3458) Apr 1, 2019
CONTRIBUTING.md docs: add yarn format to dev docs (#4118) May 11, 2020
LICENSE Switch to standard Apache-2.0 license (#3457) Apr 1, 2019
README.md [docs-app] docs: minor tweaks to make 3.x "what's new" less prominent Apr 22, 2020
lerna.json Upgrade dev dependencies and types (#3370) Feb 28, 2019
package.json docs: add yarn format to dev docs (#4118) May 11, 2020
yarn.lock chore: enable lint rule to detect cyclic dependencies (#4095) Apr 27, 2020

README.md

Blueprint CircleCI

Blueprint is a React-based UI toolkit for the web.

It is optimized for building complex, data-dense web interfaces for desktop applications which run in modern browsers and IE11. This is not a mobile-first UI toolkit.

Read the introductory blog post ▸

View the full documentation ▸

Try it out on CodeSandbox ▸

Read frequently asked questions (FAQ) on the wiki ▸

Changelog

Blueprint's change log and migration guides for major verions live on the repo's Github wiki.

Packages

This repository contains multiple projects in the packages/ directory that fall into 3 categories:

Libraries

These are the component libraries we publish to NPM.

  • npm – Core styles & components.
  • npm – Components for interacting with dates and times.
  • npm – Components for generating and displaying icons.
  • npm – Components for selecting items from a list.
  • npm – Scalable interactive table component.
  • npm – Components for picking timezones.

Applications

These are hosted on GitHub Pages as static web applications:

  • docs-app – Documentation site at blueprintjs.com/docs
  • landing-app – Landing page at blueprintjs.com

These are used as development playground environments:

  • table-dev-app – demo page that supports manual testing of all table features

Build tooling

These packages define development dependencies and contain build configuration. They adhere to the standard NPM package layout, which allows us to keep clear API boundaries for build configuration and isolate groups of devDependencies. They are published to NPM in order to allow other Blueprint-related projects to use this infrastructure outside this monorepo.

  • npm – Documentation theme for Documentalist data.
  • npm – ESLint configuration used in this repo and recommended for Blueprint-related projects
  • npm – implementations for custom ESLint rules which enforce best practices for Blueprint usage
  • npm
  • npm – various utility scripts for linting, working with CSS variables, and building icons
  • npm – various utility functions used in Blueprint test suites
  • npm – TSLint configuration used in this repo and recommended for Blueprint-related projects (should be installed by @blueprintjs/eslint-config, not directly)
  • npm

Contributing

Looking for places to contribute to the codebase? First read the contribution guidelines, then check out the "help wanted" label.

Development

Lerna manages inter-package dependencies in this monorepo. Builds are orchestrated via lerna run and NPM scripts.

Prerequisites: Node.js v10+, Yarn v1.18+

One-time setup

After cloning this repo, run:

  1. yarn to install all dependencies.
  2. If running on Windows:
    1. npm install -g windows-build-tools to install build tools globally
    2. Ensure bash is your configured script-shell by running:
      npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
  3. yarn verify to ensure you have all the build tooling working properly.

Incorporating upstream changes

If you were previously in a working state and have just pulled new code from develop:

  • If there were package dependency changes, run yarn at the root.
    • This command is very quick if there are no new things to install.
  • Run yarn compile to get the latest built versions of the library packages in this repo.
    • This command is quicker than yarn verify since it doesn't build the application packages (docs-app, landing-app, etc.) or run tests

Developing libraries

Run yarn dev from the root directory to watch changes across all packages and run the docs application with webpack-dev-server.

Alternately, each library has its own dev script to run the docs app and watch changes to just that package (and its dependencies): yarn dev:core, yarn dev:datetime, etc. One exception is table: since it has its own dev application, the dev:table script runs table-dev-app instead of the docs.

Updating documentation

Much of Blueprint's documentation lives inside source code as JSDoc comments in .tsx files and KSS markup in .scss files. This documentation is extracted and converted into static JSON data using documentalist.

If you are updating documentation sources (not the docs UI code which lives in packages/docs-app or the docs theme in packages/docs-theme), you'll need to run yarn compile from packages/docs-data to see changes reflected in the application. For simplicity, an alias script yarn docs-data exists in the root to minimize directory hopping.

Updating icons

The One-time setup and Incorporating upstream changes steps should produce the generated source code in this repo used to build the icons documentation. This is sufficient for most development workflows.

If you are updating icons or adding new ones, you'll need to run yarn compile in packages/icons to see those changes reflected before running any of the dev scripts.

License

This project is made available under the Apache 2.0 License.

You can’t perform that action at this time.