GithubHelp home page GithubHelp logo

fabiradi / minimum-parcel-lib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jdmg94/minimum-parcel-lib

0.0 1.0 0.0 757 KB

A boilerplate for react libraries bundled with parcel

License: MIT License

HTML 55.68% JavaScript 44.32%

minimum-parcel-lib's Introduction

Minimum Parcel Lib

A boilerplate for react libraries bundled with parcel

Hi, Thanks for stopping by! This project is a small collection of scripts and boilerplate code that will help anyone present their brainchilds to the world. It comes with react by default but it supports Vue, Angular, Typescript and others;

How To Use

MPL(Minimum Parcel Lib) works with parceljs this means that you can work on top of all the goodies that parcel has built-in like Hot Module Replacement, Automagically installed dependencies, code-splitting, tree shaking, etc.

Since this package is focused on NPM libraries I've included a .babelrc with basics like the transform runtime plugin and features like class properties and object spread. If you need any more plugins, presets, etc, just add the to the file, they will auto-install.

There's also an .editorconfig file with a small set of rules to help with env consistency, any extra rules you can add them right there.

Finally, I've included an autobuild.hook file that can be used to clean, build, generate sourcemaps, and add to source control. This file is used to feed the pre-commit hook, which is off by default. To turn it on just run yarn autobuild:on, you can disable it with yarn autobuild:off.

Scripts

  • clean cleans dist folder
  • clean:demo cleans example dist folder
  • start compiles lib with HMR
  • start:demo compiles demo with HMR
  • build build lib in production mode
  • build:demo build demo in production mode
  • autobuild:on enables pre-commit autobuild
  • autobuild:off removes the pre-commit hook
  • sourcemap generates an HTML representation of your source map
  • deploy deploys your demo site to github pages

2018 Jose Muñoz

minimum-parcel-lib's People

Contributors

jdmg94 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.