deamdify

WebJar for deamdify

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

deamdify
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

deamdify
WebJar for deamdify
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jaredhanson/deamdify

Download deamdify

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/deamdify/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>deamdify</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/deamdify/
implementation 'org.webjars.npm:deamdify:0.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/deamdify/
implementation ("org.webjars.npm:deamdify:0.1.1")
'org.webjars.npm:deamdify:jar:0.1.1'
<dependency org="org.webjars.npm" name="deamdify" rev="0.1.1">
  <artifact name="deamdify" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='deamdify', version='0.1.1')
)
libraryDependencies += "org.webjars.npm" % "deamdify" % "0.1.1"
[org.webjars.npm/deamdify "0.1.1"]

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.npm : through jar [2,3)
org.webjars.npm : esprima jar [1,2)
org.webjars.npm : estraverse jar [1,2)
org.webjars.npm : escodegen jar [0.0,0.1)

Project Modules

There are no modules declared in this project.

deAMDify

Build Status David DM

This module is a browserify plugin that will transform AMD modules into Node.js-style modules so that they can be included in browser-ified bundles.

With this transform in place, Node and AMD modules can be freely intermixed, and the resulting bundle can be used without the need for a separate loader such as RequireJS.

For when you're stuck and need help:

Join the chat at https://gitter.im/jaredhanson/deamdify

Install

$ npm install deamdify

Usage

Command Line

Bundle up all required modules, including AMD modules, into a single file using browserify with the deamdify transform.

browserify -t deamdify main.js -o bundle.js

API

var browserify = require('browserify');
var fs = require('fs');

var b = browserify('main.js');
b.transform('deamdify');

b.bundle().pipe(fs.createWriteStream('bundle.js'));

package.json

For packages that are written as AMD modules, add a browserify transform field to package.json and browserify will apply the transform to all modules in the package as it builds a bundle.

{
  "name": "anchor",
  "main": "main",
  "browserify": {
    "transform": "deamdify"
  }
}

Tests

$ npm install
# fast run
$ npm run test-main
# test all browserify major versions
$ npm test

Credits

License

The MIT License

Copyright (c) 2015 Jared Hanson <http://jaredhanson.net/>

Versions

Version
0.1.1