0.1.0 β€’ Published 5 years ago

lazy-monorepo v0.1.0

Weekly downloads
3
License
-
Repository
-
Last release
5 years ago

npm version build status npm downloads lazy twitter

Lazy is a bundler built on the top of webpack, trying to make developing and bundling apps with webpack as easy as possible.

The Lazy project is supported by our Backers and funded through Patreon.

Features

  • πŸ“¦ Out of box support for JS, CSS, File assets and more.
  • βš› Framework-agnostic but also support JSX, Vue and more with no configs.
  • πŸ”Œ Great extensibility.
  • πŸ™ Fit most web apps, npm libs.
  • 🚨 Great development experience.

Quick Overview

Before we get started, ensure that you have installed Node.js (>=8) and Yarn (or npm) on your machine.

Get Started Immediately

yarn global add create-lazy-app
create-lazy-app my-app

cd my-app
npm run dev

Then open http://localhost:4000 to see your app. When you’re ready to deploy to production, create a minified bundle with npm run build.

Get Started Manually

Inside an empty project, run yarn init or npm init to create a package.json and install Lazy:

yarn init
yarn add lazy --dev

Now all you need is to create an entry file, like if you're building a website, just create an index.js:

const el = document.createElement('div')
el.textContent = 'Hello Lazy!'

document.body.appendChild(el)

Now if you run:

yarn lazy --serve

You will get a URL like http://localhost:4000 which you can open to preview the app.

Next let's start adding some dependencies like a CSS file style.module.css:

.title {
  color: pink;
}
import styles from './style.module.css'

const el = document.createElement('div')
el.className = styles.title
el.textContent = 'Hello Lazy!'

document.body.appendChild(el)

Save it and the browser will automatically reload to apply the changes!

Documentation

πŸ“š https://lazy.js.org

You can improve it by sending pull requests to this repository.

Check out this repository for more examples.

Community

All feedback and suggestions are welcome!

Credits

Lazy v12 won't exist without the inspirations from following projects:

  • Webpack
  • Parcel 2
  • Lazy itself
  • Vue CLI 3
  • Create React App

License

MIT Β© EGOIST