https://github.com/stealjs/steal-almond
Create an Almond build for your Steal app.
https://github.com/stealjs/steal-almond
Last synced: 2 months ago
JSON representation
Create an Almond build for your Steal app.
- Host: GitHub
- URL: https://github.com/stealjs/steal-almond
- Owner: stealjs
- License: mit
- Created: 2016-02-17T00:06:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T21:26:55.000Z (almost 6 years ago)
- Last Synced: 2025-02-21T13:40:25.298Z (3 months ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
**Note** This is a WIP project based on a future version of steal-tools. Not ready to use yet.
# steal-almond
[](https://travis-ci.org/stealjs/steal-almond)
[](http://badge.fury.io/js/steal-almond)Create builds of your StealJS that use packs [almond](https://github.com/jrburke/almond) so that Steal is not needed in production.
## Install
```js
npm install steal-almond --save-dev
```## Use
Use `steal-almond` in place of where you would normally use `steal-tools`:
```js
var stealTools = require("steal-tools");
var multiBuild = require("steal-almond")(stealTools);multiBuild({
config: __dirname + "/package.json!npm"
});
```### Streams
steal-almond builds on the steal-tools streaming APIs. If you are using these you can use steal-almond too:
```js
var s = require("steal-tools").streams;
var almond = require("steal-almond").createStream;var stream = s.graph({
config: __dirname + "/tests/basics/package.json!npm"
}, { minify: false, quiet: true })
.pipe(s.transpile())
.pipe(s.minify())
.pipe(s.bundle())
.pipe(almond())
.pipe(s.concat())
.pipe(s.write());
```## License
MIT