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",
|
"anvil.uglify" : {
|
||||||
"output" : "lib",
|
"exclude": ["./node/postal.js", "./node/classic-resolver.js"]
|
||||||
"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"
|
|
||||||
},
|
},
|
||||||
"lint" : {},
|
"anvil.http": {
|
||||||
"uglify" : {
|
"paths": {
|
||||||
"exclude": ["postal.node.js", "classic-resolver.node.min.js"]
|
"/": "./"
|
||||||
|
},
|
||||||
|
"port" : 8080
|
||||||
},
|
},
|
||||||
"extensions" : {
|
"anvil.output": {
|
||||||
"uglify" : "min"
|
"./lib/standard/postal.*": "./example/standard/js",
|
||||||
},
|
"./lib/amd/postal.*": "./example/amd/js/libs/postal",
|
||||||
"hosts": {
|
"./lib/amd/postal.*": "./example/node/client/js/lib",
|
||||||
"/": "./"
|
"./lib/amd/postal.js": "./example/node/messaging"
|
||||||
},
|
}
|
||||||
"port" : 8080
|
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
postal.js
|
{{{name}}}
|
||||||
Author: Jim Cowart
|
Author: {{{author}}}
|
||||||
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
|
License: Dual licensed MIT (http://www.opensource.org/licenses/mit-license) & GPL (http://www.opensource.org/licenses/gpl-license)
|
||||||
Version 0.7.1
|
Version {{{version}}}
|
||||||
*/
|
*/
|
||||||
|
|
@ -7,11 +7,7 @@
|
||||||
"type" : "git",
|
"type" : "git",
|
||||||
"url" : "git://github.com/ifandelse/postal.js.git"
|
"url" : "git://github.com/ifandelse/postal.js.git"
|
||||||
},
|
},
|
||||||
"author" : {
|
"author" : "Jim Cowart (http://freshbrewedcode.com/jimcowart)",
|
||||||
"name" : "Jim Cowart",
|
|
||||||
"email" : "JustFindMeOnTwitter@MyUsernameIs_ifandelse.com",
|
|
||||||
"url" : "http://freshbrewedcode.com/jimcowart"
|
|
||||||
},
|
|
||||||
"contributors": [
|
"contributors": [
|
||||||
{
|
{
|
||||||
"name" : "Jim Cowart",
|
"name" : "Jim Cowart",
|
||||||
|
|
@ -24,9 +20,9 @@
|
||||||
"url" : "http://freshbrewedcode.com/alexrobson"
|
"url" : "http://freshbrewedcode.com/alexrobson"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name" : "Nicholas Cloud",
|
"name" : "Nicholas Cloud",
|
||||||
"email" : "WhyNotJustComment@OnMyBlog.com",
|
"email" : "WhyNotJustComment@OnMyBlog.com",
|
||||||
"url" : "http://nicholascloud.com"
|
"url" : "http://nicholascloud.com"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name" : "Doug Neiner",
|
"name" : "Doug Neiner",
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
define( [
|
define( [
|
||||||
'postal'
|
'postal'
|
||||||
], function ( postal ) {
|
], function ( postal ) {
|
||||||
//import("BindingsResolver.js");
|
//import("../BindingsResolver.js");
|
||||||
postal.configuration.resolver = classicBindingsResolver;
|
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 = {
|
module.exports = {
|
||||||
configure: function(postal) {
|
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){
|
(function(postal, undefined){
|
||||||
//import("BindingsResolver.js");
|
//import("../BindingsResolver.js");
|
||||||
postal.configuration.resolver = classicBindingsResolver;
|
postal.configuration.resolver = classicBindingsResolver;
|
||||||
})(window.postal);
|
})(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