All Projects β†’ algolia β†’ rollup-jest-boilerplate

algolia / rollup-jest-boilerplate

Licence: MIT license
πŸŽ‰ Full featured boilerplate for building JavaScript libraries the modern way

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to rollup-jest-boilerplate

Ts Monorepo
Template for setting up a TypeScript monorepo
Stars: ✭ 459 (+466.67%)
Mutual labels:  jest, rollup
Mercury Parser
πŸ“œ Extract meaningful content from the chaos of a web page
Stars: ✭ 4,025 (+4869.14%)
Mutual labels:  jest, rollup
fly-helper
It's a Tool library, method collection
Stars: ✭ 21 (-74.07%)
Mutual labels:  jest, rollup
Sketchmine
Tools to validate, generate and analyse sketch files from web pages
Stars: ✭ 114 (+40.74%)
Mutual labels:  jest, rollup
Tsdx
Zero-config CLI for TypeScript package development
Stars: ✭ 9,010 (+11023.46%)
Mutual labels:  jest, rollup
Download Your Travelmap
free your travelmap
Stars: ✭ 22 (-72.84%)
Mutual labels:  jest, rollup
termy-the-terminal
Web-based terminal powered by React
Stars: ✭ 43 (-46.91%)
Mutual labels:  jest, rollup
Svelte Tailwind Extension Boilerplate
A Chrome extension boilerplate built with Svelte, TailwindCSS, Jest, and Rollup.
Stars: ✭ 26 (-67.9%)
Mutual labels:  jest, rollup
Alias Hq
The end-to-end solution for configuring, refactoring, maintaining and using path aliases
Stars: ✭ 77 (-4.94%)
Mutual labels:  jest, rollup
zero
πŸ“¦ A zero config scripts library
Stars: ✭ 17 (-79.01%)
Mutual labels:  jest, rollup
ionic2-jest-example
Example of how to test an Ionic2 app with Jest
Stars: ✭ 43 (-46.91%)
Mutual labels:  jest
sentry
πŸ‘ A self hosted dashboard to monitor servers and services.
Stars: ✭ 19 (-76.54%)
Mutual labels:  jest
webpack
Готовая сборка webpack
Stars: ✭ 21 (-74.07%)
Mutual labels:  jest
jest-snapshot-talk
React Conf 2017: Jest, Snapshots and Beyond
Stars: ✭ 48 (-40.74%)
Mutual labels:  jest
ts-detox-example
Example TypeScript + React-Native + Jest project that integrates Detox for writing end-to-end tests
Stars: ✭ 54 (-33.33%)
Mutual labels:  jest
Express-REST-API-Template
Minimal starter project for a Node.js RESTful API based off express generator
Stars: ✭ 26 (-67.9%)
Mutual labels:  jest
aws-nestjs-starter
Serverless, AWS, NestJS, GraphQL and DynamoDB starter
Stars: ✭ 200 (+146.91%)
Mutual labels:  jest
ts-nextjs-tailwind-starter
πŸ”‹ Next.js + Tailwind CSS + TypeScript starter packed with useful development features
Stars: ✭ 880 (+986.42%)
Mutual labels:  jest
nodejs-vuejs-mysql-boilerplate
Node.js (REST API) + Vue.js/Nuxt.js (Frontend/Backend) + MySQL Boilerplate
Stars: ✭ 134 (+65.43%)
Mutual labels:  jest
gobarber-api-gostack11
API GoBarber / NodeJS / Express / Typescript / SOLID
Stars: ✭ 39 (-51.85%)
Mutual labels:  jest

πŸ“š rollup-jest-boilerplate

Full featured boilerplate for building JavaScript libraries the modern way.

Features

  • πŸ“œ Rollup.js configuration providing compatibility with different module systems (CommonJS, ECMAScript, UMD for <script> tags)
  • πŸƒ Jest setup with watch mode working
  • πŸ›€ Renovate configuration for auto updates (you have to activate it via https://github.com/apps/renovate)
  • 🐈 Yarn with lock file, pinned devDependencies and fixed Yarn version in .yarnrc using Yarn policies
  • βœ… Travis CI
  • πŸ— .nvmrc file to enforce the Node.js version for contributors and continuous integration
  • ⚑️ Ready to publish and use

How to use

Decide of a new library name, let's say new-super-library (πŸ€¦πŸΌβ€β™€οΈ), then in a terminal:

curl --output rollup-jest-boilerplate.zip -LOk https://github.com/algolia/rollup-jest-boilerplate/archive/master.zip
unzip rollup-jest-boilerplate.zip
rm rollup-jest-boilerplate.zip
mv rollup-jest-boilerplate-master new-super-library

Next steps:

  • search the project for rollup-starter-lib and replace everywhere with new-super-library
  • start coding in src/main.js
  • profit πŸ’Έ

Live examples

Those examples are using the live published version of this boilerplate library on npm and they run with CodeSandbox.

Developer environment requirements

To run this project, you will need:

Running tests

yarn
yarn test
yarn test --watch

Dev mode

When developing you can run:

yarn watch

This will regenerate the build files each time a source file is changed and serve on http://127.0.0.1:5000.

Previewing umd build in the browser

If your package works in the browser, you can open dev/index.html to try it out.

Publishing

npm publish

Additional tooling

Based on your need, you might want to add:

If so, please do and open pull requests when you feel like it.

Original idea

I initially used rollup/rollup-starter-lib but really needed that Jest support so I did it.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].