• This repository has been archived on 05/Jan/2019
  • Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Scaffold a modern workflow for developing web apps and sites

generator-wbp not maintained Travis CI

Deprecated: this generator was a way for me to start React projects more quickly. However, I since started using the awesome create-react-app, so I won't be maintaining this project anymore. I suggest you check it out!


A Yeoman generator which provides a modern workflow for developing web apps and sites.

Heavily inspired by generator-gulp-webapp, but far more opinionated. I want to make this generator as hardcore as it can be, starting a new project should be a breeze.

Features

See the current roadmap.

.babelrc is where you can set your Babel options globally, it will be picked up by both babel and babelify.

Getting Started

Install yo and generator-wbp globally:

❯ npm install --global yo generator-wbp

Now create a new directory for your project:

❯ mkdir my-webapp
❯ cd my-webapp

and run the generator to start scaffolding and installing dependencies:

❯ yo wbp

Scripts

There are some shortcut scripts in the package.json that you can run using npm. There are a couple of benefits to this:

  • it's usually shorter to type
  • if I happen to switch to another task runner, the npm scripts will stay the same
  • when run like this, the gulp command actually uses the local gulp, so we don't have to worry about local and global versions matching or even installing it globally
  • we don't have to create a gulp task for other shell commands, like deployment in our case

Side note: I'm not entirely sure that it's ok to use npm scripts this way, but we're not going to be publishing the generated "package" (which is why private is set to true), so we might as well abuse them.

Start the local server at http://localhost:9000 and watch files for changes:

❯ npm start

Run tests:

❯ npm test

Make a compressed production-ready build:

❯ npm run build

Preview the build, make sure nothing is broken:

❯ npm run preview

Deploy to S3 using AWS CLI:

❯ npm run deploy

This script needs to be adjusted according to your S3 data, or replace it with another script if you're deploying to somewhere else.

Contributing

See the contributing docs, interesting stuff.

License

MIT © Matija Marohnić

More Repositories

1

vscode-mdx

MDX for Visual Studio Code
110
star
2

remark-smartypants

remark plugin to implement SmartyPants
TypeScript
54
star
3

silvenon.com

My overengineered personal website
MDX
22
star
4

testing-react-and-redux

Code from my blog series.
JavaScript
21
star
5

css-customs

Exposes custom properties, custom media queries and custom selectors to JavaScript
JavaScript
9
star
6

demo-css-in-js

Various techniques of bridging the gap between CSS and JavaScript
JavaScript
8
star
7

jszg-selenium

A meetup demo: Node.js Selenium testing workflow
JavaScript
8
star
8

webpack-dash

Dash docset for webpack.
JavaScript
8
star
9

repro

Demos reproducing various bugs
4
star
10

zepto-module-demo

There are only upsides to converting Zepto into modules
JavaScript
4
star
11

jszg-webpack

A meetup demo: Unpacking Webpack
JavaScript
4
star
12

js-project

A template for my JavaScript projects
JavaScript
3
star
13

fb-feed-limiter

A Chrome extension that limits your Facebook news feed to around 10 posts.
CSS
2
star
14

sretnosrce

A site where I was giving love & sex advice.
HTML
2
star
15

cbt-tunnel

Create a Local Connection for the CrossBrowserTesting app
JavaScript
2
star
16

blog-utils

Utilities for common blogging patterns
JavaScript
2
star
17

off-canvas

Provides an off-canvas menu.
CSS
2
star
18

being-a-genius

A CSS typography demo.
Ruby
1
star
19

gatsby-transformer-mdx

Use gatsby-mdx instead: https://github.com/ChristopherBiscardi/gatsby-mdx
JavaScript
1
star
20

postcss-webfontloader

Provides fallbacks for loading fonts with webfontloader
JavaScript
1
star
21

repro-remix-esbuild-vercel

TypeScript
1
star
22

smph-todo-app

AVA + Semaphore CI
JavaScript
1
star
23

mord-os

TypeScript
1
star
24

demo-cra-basic-auth

A demo for a create-react-app issue with proxy and HTTP basic authentication.
HTML
1
star
25

concordia-discors

A website for a choir in my college.
Haml
1
star