https://github.com/toggl/wortels
An asset packager, similar to Rails asset pipeline
https://github.com/toggl/wortels
backend
Last synced: about 1 year ago
JSON representation
An asset packager, similar to Rails asset pipeline
- Host: GitHub
- URL: https://github.com/toggl/wortels
- Owner: toggl
- License: bsd-3-clause
- Created: 2012-11-17T05:24:42.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-09-05T10:57:39.000Z (almost 12 years ago)
- Last Synced: 2025-03-03T14:13:58.844Z (over 1 year ago)
- Topics: backend
- Language: Go
- Size: 5.14 MB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
How to use
==========
An asset packager, similar to Rails asset pipeline. Assets are listed in a **manifest file**, like this:
```
underscore.js
backbone.js
app.js
```
Wortels reads the asset manifest file, then for each asset computes a SHA1 of the file contents.
If the asset wasn't previously packaged, it's compiled/transpiled/whatever you need, and the resulting
file is stored in a **cache folder**, that is shared per user. If you package an asset file
in one project, the packaged file can be later used in other projects as well, when using wortels.
If an asset file was already packaged, the previously packaged result is fetched from the cache folder
and there's no need to package it again. This makes the whole packaging process very fast, since
typically only some files mentioned in the asset manifest have actually changed (and therefore their
SHA1 hashes have changed, which triggers re-packaging of the changed files).
Currently only Closure compiler is supported, but the code can easily be modified to support other
compilers as well.
Install
=======
Clone the repo, then in the cloned repo folder:
```
make
make install
```