mirror of
https://github.com/Hopiu/postal.js.git
synced 2026-03-16 22:20:23 +00:00
Initial work towards a cleaner postal build
This commit is contained in:
parent
ad23f40efb
commit
9e3d410d05
15 changed files with 69 additions and 100 deletions
|
|
@ -1,6 +0,0 @@
|
|||
anvil
|
||||
|
||||
copy ./lib/standard/postal.* ./example/standard/js
|
||||
copy ./lib/amd/postal.* ./example/amd/js/libs/postal
|
||||
copy ./lib/amd/postal.js ./example/node/client/js/lib
|
||||
copy ./lib/node/postal.js ./example/node/messaging
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
anvil
|
||||
|
||||
cp ./lib/standard/postal.* ./example/standard/js
|
||||
cp ./lib/amd/postal.* ./example/amd/js/libs/postal
|
||||
cp ./lib/amd/postal.js ./example/node/client/js/lib
|
||||
cp ./lib/node/postal.js ./example/node/messaging
|
||||
36
build.json
36
build.json
|
|
@ -1,27 +1,17 @@
|
|||
{
|
||||
"source" : "src",
|
||||
"output" : "lib",
|
||||
"name" : {
|
||||
"postal.node.js" : "node/postal.js",
|
||||
"postal.standard.js" : "standard/postal.js",
|
||||
"postal.standard.min.js" : "standard/postal.min.js",
|
||||
"postal.amd.js" : "amd/postal.js",
|
||||
"postal.amd.min.js" : "amd/postal.min.js",
|
||||
"classic-resolver.node.js" : "node/classic-resolver.js",
|
||||
"classic-resolver.standard.js" : "standard/classic-resolver.js",
|
||||
"classic-resolver.standard.min.js" : "standard/classic-resolver.min.js",
|
||||
"classic-resolver.amd.js" : "amd/classic-resolver.js",
|
||||
"classic-resolver.amd.min.js" : "amd/classic-resolver.min.js"
|
||||
"anvil.uglify" : {
|
||||
"exclude": ["./node/postal.js", "./node/classic-resolver.js"]
|
||||
},
|
||||
"lint" : {},
|
||||
"uglify" : {
|
||||
"exclude": ["postal.node.js", "classic-resolver.node.min.js"]
|
||||
"anvil.http": {
|
||||
"paths": {
|
||||
"/": "./"
|
||||
},
|
||||
"port" : 8080
|
||||
},
|
||||
"extensions" : {
|
||||
"uglify" : "min"
|
||||
},
|
||||
"hosts": {
|
||||
"/": "./"
|
||||
},
|
||||
"port" : 8080
|
||||
"anvil.output": {
|
||||
"./lib/standard/postal.*": "./example/standard/js",
|
||||
"./lib/amd/postal.*": "./example/amd/js/libs/postal",
|
||||
"./lib/amd/postal.*": "./example/node/client/js/lib",
|
||||
"./lib/amd/postal.js": "./example/node/messaging"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
postal.js
|
||||
Author: Jim Cowart
|
||||
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
|
||||
Version 0.7.1
|
||||
*/
|
||||
/*
|
||||
{{{name}}}
|
||||
Author: {{{author}}}
|
||||
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
|
||||
Version {{{version}}}
|
||||
*/
|
||||
|
|
@ -7,11 +7,7 @@
|
|||
"type" : "git",
|
||||
"url" : "git://github.com/ifandelse/postal.js.git"
|
||||
},
|
||||
"author" : {
|
||||
"name" : "Jim Cowart",
|
||||
"email" : "JustFindMeOnTwitter@MyUsernameIs_ifandelse.com",
|
||||
"url" : "http://freshbrewedcode.com/jimcowart"
|
||||
},
|
||||
"author" : "Jim Cowart (http://freshbrewedcode.com/jimcowart)",
|
||||
"contributors": [
|
||||
{
|
||||
"name" : "Jim Cowart",
|
||||
|
|
@ -24,9 +20,9 @@
|
|||
"url" : "http://freshbrewedcode.com/alexrobson"
|
||||
},
|
||||
{
|
||||
"name" : "Nicholas Cloud",
|
||||
"email" : "WhyNotJustComment@OnMyBlog.com",
|
||||
"url" : "http://nicholascloud.com"
|
||||
"name" : "Nicholas Cloud",
|
||||
"email" : "WhyNotJustComment@OnMyBlog.com",
|
||||
"url" : "http://nicholascloud.com"
|
||||
},
|
||||
{
|
||||
"name" : "Doug Neiner",
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
define( [
|
||||
'postal'
|
||||
], function ( postal ) {
|
||||
//import("BindingsResolver.js");
|
||||
//import("../BindingsResolver.js");
|
||||
postal.configuration.resolver = classicBindingsResolver;
|
||||
} );
|
||||
13
src/amd/postal.js
Normal file
13
src/amd/postal.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// This is the amd-module version of postal.js
|
||||
// If you need the standard lib style version, go to http://github.com/ifandelse/postal.js
|
||||
define( ["underscore"], function ( _, undefined ) {
|
||||
//import("../Constants.js");
|
||||
//import("../DistinctPredicate.js");
|
||||
//import("../ConsecutiveDistinctPredicate.js");
|
||||
//import("../ChannelDefinition.js");
|
||||
//import("../SubscriptionDefinition.js");
|
||||
//import("../AmqpBindingsResolver.js");
|
||||
//import("../LocalBus.js");
|
||||
//import("../Api.js");
|
||||
return postal;
|
||||
} );
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
//import("BindingsResolver.js");
|
||||
//import("../BindingsResolver.js");
|
||||
|
||||
module.exports = {
|
||||
configure: function(postal) {
|
||||
14
src/node/postal.js
Normal file
14
src/node/postal.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// This is the node.js version of postal.js
|
||||
// If you need the standard or amd client lib version, go to http://github.com/ifandelse/postal.js
|
||||
var _ = require( 'underscore' );
|
||||
|
||||
//import("../Constants.js");
|
||||
//import("../DistinctPredicate.js");
|
||||
//import("../ConsecutiveDistinctPredicate.js");
|
||||
//import("../ChannelDefinition.js");
|
||||
//import("../SubscriptionDefinition.js");
|
||||
//import("../AmqpBindingsResolver.js");
|
||||
//import("../LocalBus.js");
|
||||
//import("../Api.js");
|
||||
|
||||
module.exports = postal;
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
//import("VersionHeader.js");
|
||||
// This is the amd-module version of postal.js
|
||||
// If you need the standard lib style version, go to http://github.com/ifandelse/postal.js
|
||||
define( ["underscore"], function ( _, undefined ) {
|
||||
//import("Constants.js");
|
||||
//import("DistinctPredicate.js");
|
||||
//import("ConsecutiveDistinctPredicate.js");
|
||||
//import("ChannelDefinition.js");
|
||||
//import("SubscriptionDefinition.js");
|
||||
//import("AmqpBindingsResolver.js");
|
||||
//import("LocalBus.js");
|
||||
//import("Api.js");
|
||||
return postal;
|
||||
} );
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
//import("VersionHeader.js");
|
||||
// This is the node.js version of postal.js
|
||||
// If you need the standard or amd client lib version, go to http://github.com/ifandelse/postal.js
|
||||
var _ = require( 'underscore' );
|
||||
|
||||
//import("Constants.js");
|
||||
//import("DistinctPredicate.js");
|
||||
//import("ConsecutiveDistinctPredicate.js");
|
||||
//import("ChannelDefinition.js");
|
||||
//import("SubscriptionDefinition.js");
|
||||
//import("AmqpBindingsResolver.js");
|
||||
//import("LocalBus.js");
|
||||
//import("Api.js");
|
||||
|
||||
module.exports = postal;
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
//import("VersionHeader.js");
|
||||
// This is the standard lib version of postal.js
|
||||
// If you need the amd-module style version, go to http://github.com/ifandelse/postal.js
|
||||
;(function ( _, global, undefined ) {
|
||||
|
||||
//import("Constants.js");
|
||||
//import("ConsecutiveDistinctPredicate.js");
|
||||
//import("DistinctPredicate.js");
|
||||
//import("ChannelDefinition.js");
|
||||
//import("SubscriptionDefinition.js");
|
||||
//import("AmqpBindingsResolver.js");
|
||||
//import("LocalBus.js");
|
||||
//import("Api.js");
|
||||
|
||||
global.postal = postal;
|
||||
|
||||
})( _, window );
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
(function(postal, undefined){
|
||||
//import("BindingsResolver.js");
|
||||
//import("../BindingsResolver.js");
|
||||
postal.configuration.resolver = classicBindingsResolver;
|
||||
})(window.postal);
|
||||
16
src/standard/postal.js
Normal file
16
src/standard/postal.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// This is the standard lib version of postal.js
|
||||
// If you need the amd-module style version, go to http://github.com/ifandelse/postal.js
|
||||
;(function ( _, global, undefined ) {
|
||||
|
||||
//import("../Constants.js");
|
||||
//import("../ConsecutiveDistinctPredicate.js");
|
||||
//import("../DistinctPredicate.js");
|
||||
//import("../ChannelDefinition.js");
|
||||
//import("../SubscriptionDefinition.js");
|
||||
//import("../AmqpBindingsResolver.js");
|
||||
//import("../LocalBus.js");
|
||||
//import("../Api.js");
|
||||
|
||||
global.postal = postal;
|
||||
|
||||
})( _, window );
|
||||
Loading…
Reference in a new issue