38c9a9e10c
Builds are now themselves UMD modules, so they could be `require`'d like any other AMD module or they can still be used as old ES5 modules with globals. Additionally the build is now closured, so that the almond API doesn't pollute the global context with `define` or `require`. This does however mean that `require` can no longer be used outside of the build (unless requirej.s is included directly.
47 lines
958 B
JavaScript
47 lines
958 B
JavaScript
({
|
|
baseUrl: "../",
|
|
name: "almond",
|
|
out: "../dist/converse-no-dependencies.min.js",
|
|
include: ["converse"],
|
|
excludeShallow: [
|
|
"locales",
|
|
"text!af",
|
|
"text!de",
|
|
"text!en",
|
|
"text!es",
|
|
"text!fr",
|
|
"text!he",
|
|
"text!hu",
|
|
"text!id",
|
|
"text!it",
|
|
"text!ja",
|
|
"text!nb",
|
|
"text!nl",
|
|
"text!pl",
|
|
"text!pt_BR",
|
|
"text!ru",
|
|
"text!uk",
|
|
"text!zh"
|
|
],
|
|
exclude: [
|
|
"awesomplete",
|
|
"jquery",
|
|
"jquery-private",
|
|
"backbone.browserStorage",
|
|
"backbone.overview",
|
|
"moment_with_locales",
|
|
"strophe",
|
|
"strophe.disco",
|
|
"strophe.rsm",
|
|
"strophe.vcard",
|
|
"strophe.ping",
|
|
"otr",
|
|
"lodash"
|
|
],
|
|
wrap: {
|
|
startFile: "start.frag",
|
|
endFile: "end-no-dependencies.frag"
|
|
},
|
|
mainConfigFile: "config.js"
|
|
})
|