Skip to content

Commit

Permalink
Update build.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mosesag0813 committed Sep 13, 2016
1 parent cd3e0ba commit c678e74
Showing 1 changed file with 58 additions and 31 deletions.
89 changes: 58 additions & 31 deletions packages/comet-build/build.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,59 @@
#!/usr/bin/env node
import user from 'usr/repo/build';
import repository from 'repo/usr';

generateBuild = (function(){
var build = require('build');
const startup = new user;
build.status('on');
if(build.status === 'on'){
build.user = create({
tools:'./tools',
ices:'.ices'
});
}
})(generateBuild);

repo.build = (function(){
this.build = $(build);
user.find(user, repository);
$build.test(repository);

const newbuild = repo.add($build);
const generate = new $build;
})(repo.build);

module.exports = {
export build;
export repo.build;
export newbuild;
export generateBuild;
};
"use strict";
// Copyright 2015 CometJS. All Rights Reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and limitations under the License.
var build = require('.../tools/builder');
/**
* @description Use builder tool, and integrates with Gecko (XULRunner).
* @param {geckoStartup, build, ices}
* @requires gecko-dev, CometJS
**/
var geckoStartup = require('gecko-dev');
var comet = require('CometJS');
var ices = require('ices.js');



/** @protected **/
geckoStartup.prototype.build('app');

//------------------------------------//




/**
* @interface Gives status, then prompts for a new build.
* @instance
**/
const newBuild = ices.build.createElement('New Build');


if(typeof newBuild === 'New Build' && NewBuild.status === 'StartingStart'){
build.status.test('build', 'RunningState');
}
build.add(GeckoStartup.handle(newBuild), function(startBuild){
var on = this.on;
var generate = this.generate;
comet.load(geckoStartup, build);

/** @protected **/
while(comet.load(geckoStartup, build).status === 'ReadyState'){
build.add(this.on);
/** @fires {package} **/
package build, geckoStartup;
this.generate.createElement('generate-build');
this.on.add(this.generate);
}

})(startBuild);


0 comments on commit c678e74

Please sign in to comment.