Skip to content

Commit 7d5fe4f

Browse files
committed
Uninstaller application #1041
1 parent 2b957dd commit 7d5fe4f

20 files changed

Lines changed: 637 additions & 176 deletions

uninstaller/.angular-cli.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"project": {
4+
"name": "uninstaller"
5+
},
6+
"apps": [
7+
{
8+
"root": "src",
9+
"outDir": "dist",
10+
"assets": [
11+
"assets",
12+
"favicon.ico"
13+
],
14+
"index": "index.html",
15+
"main": "main.ts",
16+
"polyfills": "polyfills.ts",
17+
"test": "test.ts",
18+
"tsconfig": "tsconfig.app.json",
19+
"testTsconfig": "tsconfig.spec.json",
20+
"prefix": "app",
21+
"styles": [
22+
"styles.css"
23+
],
24+
"scripts": [],
25+
"environmentSource": "environments/environment.ts",
26+
"environments": {
27+
"dev": "environments/environment.ts",
28+
"prod": "environments/environment.prod.ts"
29+
}
30+
}
31+
],
32+
"e2e": {
33+
"protractor": {
34+
"config": "./protractor.conf.js"
35+
}
36+
},
37+
"lint": [
38+
{
39+
"project": "src/tsconfig.app.json",
40+
"exclude": "**/node_modules/**"
41+
},
42+
{
43+
"project": "src/tsconfig.spec.json",
44+
"exclude": "**/node_modules/**"
45+
},
46+
{
47+
"project": "e2e/tsconfig.e2e.json",
48+
"exclude": "**/node_modules/**"
49+
}
50+
],
51+
"test": {
52+
"karma": {
53+
"config": "./karma.conf.js"
54+
}
55+
},
56+
"defaults": {
57+
"styleExt": "css",
58+
"component": {}
59+
}
60+
}

uninstaller/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["angular"]
3+
}

uninstaller/.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

uninstaller/.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
node_modules
2+
dist
3+
jspm_packages
4+
transpiled
5+
package
6+
build
7+
tools
8+
browser/config.js
9+
test/jspm-config.js
10+
.idea
11+
xunit.xml
12+
browser-tests.xml
13+
ui-tests.xml
14+
system-tests.xml
15+
requirements-cache/
16+
coverage/
17+
.DS_Store
18+
screenshots
19+
npm-debug.log

uninstaller/README.md

Whitespace-only changes.

uninstaller/browser/.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true
4+
},
5+
"globals": {
6+
"angular": true,
7+
"menu": true,
8+
"MenuItem": true,
9+
"restoreMenu": true
10+
}
11+
};

uninstaller/browser/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>let's get started</title>
6+
</head>
7+
<body>
8+
<h1>with electron.....................</h1>
9+
</body>
10+
</html>

uninstaller/create-uninstaller.ps1

Lines changed: 0 additions & 26 deletions
This file was deleted.

uninstaller/gulp-tasks/common.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
'use strict';
2+
3+
let path = require('path'),
4+
fs = require('fs-extra');
5+
6+
// Create default callback for exec
7+
function createExecCallback(cb, quiet) {
8+
return function(err, stdout, stderr) {
9+
if (!quiet) {
10+
console.log(stdout);
11+
}
12+
console.log(stderr);
13+
cb(err);
14+
};
15+
}
16+
17+
18+
module.exports = {
19+
createExecCallback
20+
};

uninstaller/gulp-tasks/config.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
'use strict';
2+
3+
const path = require('path');
4+
5+
let config = {
6+
artifactName : 'devsuite',
7+
artifactPlatform : process.platform,
8+
artifactArch : process.arch,
9+
buildFolderRoot : '',
10+
buildFileNamePrefix : '',
11+
// use folder outside buildFolder so that a 'clean' task won't wipe out the cache
12+
prefetchFolder : 'requirements-cache',
13+
buildFolderPath : '',
14+
configIcon : ''
15+
};
16+
17+
config.buildFolderRoot = path.join('dist', config.artifactPlatform + '-' + config.artifactArch );
18+
config.buildFileNamePrefix = config.artifactName;
19+
config.buildFolderPath = path.resolve(config.buildFolderRoot);
20+
config.configIcon = path.resolve(path.join('resources', config.artifactName + '.ico'));
21+
22+
module.exports = config;

0 commit comments

Comments
 (0)