Skip to content

Launch your projects faster with webpack and babel integration

License

Notifications You must be signed in to change notification settings

borvelt/sweet-bundler

Repository files navigation

Sweet Bundler

Launch your projects faster with webpack and babel integration.

Getting Started

$ git clone https://github.com/borvelt/sweet-bundler.git [project-name]

Setup

Run Setup script:

$ cd [project-name]
$ node setup/script.js

Setup script will ask you some questions about your project and then generate required configurations.

After setup successfully done you can use it and then install node modules

$ npm install

Here we have three type of webpack confgurations dev, dist, web

  • dev

    webpack configurations for development mode, it has hot module reloading.

  • web

    This configuration is in production mode. it has caching and source maps.

  • dist

    dist configuration provided to make a javacsript library, you can publish in npmjs.

See scripts in package.json to run commands.

Typescript

You can write typescript codes along your javascript codes and then pack and run them. Dont worry about typescript linting, it has been configured.

Prettier

Prittier CLI is a tool to prettify all of your codes but it some linters rules (like eslint or tslint) has conflict with prettier rules. I resolved this problem and you can just focus on your codes.

Test

Write your test in __tests__ subdirectory in src. Test cases will check with jest

$ npm test

Licence

ISC