Skip to content

Commit

Permalink
car template
Browse files Browse the repository at this point in the history
  • Loading branch information
yathit committed May 14, 2015
1 parent b53025b commit c7ae512
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build.xml
Expand Up @@ -186,6 +186,29 @@

</sequential>
</target>

<target name="compile-core-entity"
description="generates compiled files for client js">
<mkdir dir="${ydn-db.dir}/jsc"/>
<adv-comp
input.dir="${ydn-db.dir}/src"
input.fn="${ydn-db.dir}/config/main.js"
output.fn="ydn.db-core-entity.js">
<exjs.dir>
<arg line='-i "${ydn-db.dir}/config/export-entity.js"'/>
<arg line='-p "${work.dir}/ydn/src"'/>
<arg line='-p "${work.dir}/gdata/src"'/>
<arg line='-i "${ydn-base.dir}/src/config/debug.js"'/>
<arg line='-f "--closure_entry_point=ydn.debug.exports"'/>
<arg line='-f "--closure_entry_point=ydn.db.sync.entity.exports"'/>
<arg line='-f "--define=goog.log.ENABLED=true"'/>
<arg line='-f "--externs=${work.dir}/gdata/externs/gdata.js"'/>
<arg line='-f "--externs=${work.dir}/ydn-base/externs/aws.js"'/>
<arg line='-f "--externs=${work.dir}/ydn-db/externs/entity.js"'/>
</exjs.dir>
</adv-comp>
</target>

<target name="github" description="push to github">
<echo>git branch github</echo>
<echo>ant build</echo>
Expand Down
34 changes: 34 additions & 0 deletions config/export-entity.js
@@ -0,0 +1,34 @@
/**
* @fileoverview Export variables for sync module.
*/

goog.provide('ydn.db.sync.entity.exports');
goog.require('ydn.db.sync.Entity');

goog.exportSymbol('ydn.db.sync.Entity', ydn.db.sync.Entity);
goog.exportProperty(ydn.db.sync.Entity, 'schema', ydn.db.base.entitySchema);
goog.exportProperty(ydn.db.sync.Entity.prototype, 'add',
ydn.db.sync.Entity.prototype.add);
goog.exportProperty(ydn.db.sync.Entity.prototype, 'get',
ydn.db.sync.Entity.prototype.get);
goog.exportProperty(ydn.db.sync.Entity.prototype, 'getName',
ydn.db.sync.Entity.prototype.getName);

goog.exportProperty(ydn.db.sync.Entity.prototype, 'put',
ydn.db.sync.Entity.prototype.put);
goog.exportProperty(ydn.db.sync.Entity.prototype, 'remove',
ydn.db.sync.Entity.prototype.remove);
goog.exportProperty(ydn.db.sync.Entity.prototype, 'update',
ydn.db.sync.Entity.prototype.update);

goog.exportProperty(ydn.db.core.Storage.prototype, 'entity',
ydn.db.core.Storage.prototype.entity);

goog.exportProperty(goog.Disposable.prototype, 'dispose',
goog.Disposable.prototype.dispose);
goog.exportProperty(goog.events.EventTarget.prototype, 'listen',
goog.events.EventTarget.prototype.listen);
goog.exportProperty(goog.events.EventTarget.prototype, 'unlistenByKey',
goog.events.EventTarget.prototype.unlistenByKey);


0 comments on commit c7ae512

Please sign in to comment.