-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pbjs static target progress, uses customizable wrapper template [ci s…
…kip]
- Loading branch information
Showing
10 changed files
with
124 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"use strict"; | ||
module.exports = json_target; | ||
|
||
var protobuf = require("../.."); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"use strict"; | ||
module.exports = proto_target; | ||
|
||
proto_target.private = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"use strict"; | ||
module.exports = proto2_target; | ||
|
||
var protobuf = require("../.."); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"use strict"; | ||
module.exports = proto3_target; | ||
|
||
var protobuf = require("../.."); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
;(function(global, factory) { | ||
/* AMD */ if (typeof define === 'function' && define.amd) | ||
define(["protobuf"], factory); | ||
/* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) | ||
module.exports = factory(require("protobufjs/runtime")); | ||
/* Global */ else | ||
global.root = factory(global.protobuf); | ||
})(this, function($runtime) { | ||
"use strict"; | ||
// Lazily resolved type references | ||
var $lazyTypes = []; | ||
// Exported root namespace | ||
var $root = {}; | ||
|
||
%OUTPUT% | ||
|
||
// Resolve lazy types | ||
$lazyTypes.forEach(function(types) { | ||
types.forEach(function(path, i) { | ||
if (!path) | ||
return; | ||
path = path.split('.'); | ||
var ptr = $root; | ||
while (path.length) | ||
ptr = ptr[path.shift()]; | ||
types[i] = ptr; | ||
}); | ||
}); | ||
|
||
return $root; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters