Giter VIP home page Giter VIP logo

partypack's Introduction

#Partypack

A scaffolding tool for webpack based projects

The Skinny

Boy, I sure hate setting up a build system every single time I want to start a new project. You probably do, too. You probably wish that in the time it took you to set up webpack and a few other bits and bobs that you could actually be developing.

This is a very bare-bones solution for that problem.

A lot with a little

Partypack is, again, just a scaffolding for your project. At its core it includes a few minimal things:

  • Development config file (for Webpack)
  • Production config file (also for Webpack)
  • Babel Compiler (in case you're feeling extra ES6-esque or using React)
  • Winning enthusiasm (You gotta bring that one, buddy)

How do I work this crazy thing?

Simple! Just make sure of two things:

  1. that any/all .js files are included in thesrc directory when you start developing.

  2. that any code you want to be included in the bundle is referenced in entry.js by way of import (ES6) or require (CommonJS).

commands

  • npm run develop starts your development server at localhost:3000 and runs a hot reload whenever you update files in your src directory

  • npm run build-dev outputs your bundled scripts into the build/ folder under bundle.js

  • npm run build-prod outputs your bundled scripts into the build/ folder that are now minified and optimized for your application.

At the end of the day you'll reference your bundle in your HTML like so:

<script src="static/bundle.js"></script>

Note: the file path is static/ instead of build/ because the publicpath property has been set in our Webpack .config files. This means that when you run the server, there is no file output in dist, but the output is used by the running server instance to hot reload

LET'S PARTY.

partypack's People

Contributors

morklympious avatar stffrd avatar greenkeeperio-bot avatar

Stargazers

Martin Kovachev avatar Steven Job avatar  avatar Andy Chrzaszcz avatar Eric.Chen avatar Fabio Neves avatar  avatar

Watchers

James Cloos avatar Eric.Chen avatar  avatar

Forkers

ldeck andy9775 svne

partypack's Issues

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.