Programming patterns, JavaScript features, and TypeScript examples.
See CONTRIBUTING.md
for details.
Apache 2.0; see LICENSE
for details.
This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.
Use the following scripts to work with the examples in src
:
npm install
: Install dependencies.npm run test
: Run the tests.npx jest -t '<TestName>'
: Run a single test, e.g.npx jest -t 'regex'
npm run build
: Tests, compiles, and lints the source code. Run this before pushing a change.
The projects in the examples
directory are standalone packages with their own
package.json
files. See their respective README files for details on running
these projects: