This package has been deprecated

Author message:

Check out create-react-app instead!

generator-wbp

0.3.2 • Public • Published

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!

generator-wbp Travis CI

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ć

Package Sidebar

Install

npm i generator-wbp

Weekly Downloads

1

Version

0.3.2

License

MIT

Last publish

Collaborators

  • silvenon