https://github.com/endel/lazy-assets
An opinionated and simple build-system approach.
https://github.com/endel/lazy-assets
Last synced: about 1 year ago
JSON representation
An opinionated and simple build-system approach.
- Host: GitHub
- URL: https://github.com/endel/lazy-assets
- Owner: endel
- License: mit
- Created: 2014-03-28T04:48:47.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-04-07T17:45:08.000Z (about 11 years ago)
- Last Synced: 2025-04-12T20:08:39.660Z (about 1 year ago)
- Language: JavaScript
- Homepage: bugfixer.endel.me/2014/05/03/really-quick-and-productive-front-end-build-system/
- Size: 463 KB
- Stars: 12
- Watchers: 4
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
lazy-assets
===
An opinionated and simple build-system approach.
Features:
---
- JavaScript minification and optimization
- CSS minification and optimization
- Bower integration
- **Zero configuration**
Requirements
---
```bash
npm install -g lazy-assets
```
Development server
---
On development mode, `asset` definitions are evaluated and dynamically
converted to a valid HTML tag. They are compiled on-demand. No "watch"
required.
```bash
lazy-assets examples/simple
```
Production
---
When compiling for production, all your javascripts and stylesheets are
compressed into a single file.
```bash
lazy-assets {input_dir} {output_dir}
```
How to use
---
Wrap all your assets with `` tag, and define each dependency with
`` tag.
To start the development server, run the following: (by default it binds on
[localhost:3000](http://localhost:3000).)
```bash
lazy-assets examples/simple
```
Then define your dependencies:
```html
```
When `http://localhost:8000` is requested, the output of the HTML file will be
the following:
```html
```
Now let's compile it for production:
```bash
lazy-assets examples/simple examples/simple-output
```
Result:
```html
```
License
---
MIT