Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions eform-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "protractor",
"build": "ng build --aot -prod",
"server": "node server.js"
"server": "node server.js",
"winserver-install": "node svc.js install",
"winserver-uninstall": "node svc.js uninstall"
},
"private": true,
"dependencies": {
Expand All @@ -35,7 +37,7 @@
"ng2-dnd": "^4.2.0",
"ngx-bootstrap": "^1.6.6",
"pnotify": "^3.2.0",
"rxjs": "^5.1.0",
"rxjs": "^5.4.2",
"trumbowyg": "^2.5.1",
"ts-helpers": "^1.1.1",
"wowjs": "^1.1.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {Component, EventEmitter, Input, OnChanges, OnInit, Output} from '@angular/core';
import {Observable} from 'rxjs/Observable';
import 'rxjs/add/observable/range';
import { Observable } from 'rxjs/Rx';

@Component({
selector: 'entity-search-pagination',
Expand Down
34 changes: 34 additions & 0 deletions eform-client/svc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
var Service = require('node-windows').Service;

// Create a new service object
var svc = new Service({
name: 'eForm angular',
description: 'eForm angular frontend application',
script: 'server.js'
});

// Listen for the "install" event, which indicates the
// process is available as a service.
svc.on('install', function () {
console.log('Installation complete.');
console.log('The service exists: ', svc.exists);
svc.start();
});

// Listen for the "uninstall" event so we know when it's done.
svc.on('uninstall', function () {
console.log('Uninstall complete.');
console.log('The service exists: ', svc.exists);
});

var args = process.argv.slice(2);
switch (args[0]) {
case 'install':
console.log('Service will be installed');
svc.install();
break;
case 'uninstall':
console.log('Service will be uninstalled');
svc.uninstall();
break;
}