Skip to content

Commit

Permalink
Change folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhirverma committed Apr 10, 2018
1 parent 82997c8 commit 32295e4
Show file tree
Hide file tree
Showing 38 changed files with 457 additions and 219 deletions.
45 changes: 45 additions & 0 deletions uninstall/.angular-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,51 @@
"project": {
"name": "uninstall"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
}
],
"e2e": {
"protractor": {
"config": "./protractor.conf.js"
}
},
"lint": [
{
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
},
{
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**"
},
{
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
}
],
"test": {
"karma": {
"config": "./karma.conf.js"
Expand Down
3 changes: 0 additions & 3 deletions uninstall/.babelrc

This file was deleted.

61 changes: 43 additions & 18 deletions uninstall/.gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,44 @@
node_modules
dist
jspm_packages
transpiled
package
build
tools
browser/config.js
test/jspm-config.js
.idea
xunit.xml
browser-tests.xml
ui-tests.xml
system-tests.xml
requirements-cache/
coverage/
.DS_Store
screenshots
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/dist-server
/tmp
/out-tsc

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map

# System Files
.DS_Store
Thumbs.db
1 change: 0 additions & 1 deletion uninstall/README.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# Uninstall
11 changes: 0 additions & 11 deletions uninstall/browser/.eslintrc.ts

This file was deleted.

10 changes: 0 additions & 10 deletions uninstall/browser/index.html

This file was deleted.

14 changes: 14 additions & 0 deletions uninstall/e2e/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { AppPage } from './app.po';

describe('uninstall App', () => {
let page: AppPage;

beforeEach(() => {
page = new AppPage();
});

it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to app!');
});
});
11 changes: 11 additions & 0 deletions uninstall/e2e/app.po.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { browser, by, element } from 'protractor';

export class AppPage {
navigateTo() {
return browser.get('/');
}

getParagraphText() {
return element(by.css('app-root h1')).getText();
}
}
14 changes: 14 additions & 0 deletions uninstall/e2e/tsconfig.e2e.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/e2e",
"baseUrl": "./",
"module": "commonjs",
"target": "es5",
"types": [
"jasmine",
"jasminewd2",
"node"
]
}
}
20 changes: 0 additions & 20 deletions uninstall/gulp-tasks/common.ts

This file was deleted.

22 changes: 0 additions & 22 deletions uninstall/gulp-tasks/config.ts

This file was deleted.

102 changes: 0 additions & 102 deletions uninstall/gulpfile.ts

This file was deleted.

4 changes: 2 additions & 2 deletions uninstall/main/index.ts → uninstall/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
import { app, ipcMain, BrowserWindow, dialog, Menu, globalShortcut } from 'electron';
const { app, ipcMain, BrowserWindow, dialog, Menu, globalShortcut } = require('electron');

// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
Expand Down Expand Up @@ -32,7 +32,7 @@ app.on('ready', function() {
let baseLocation = encodeURI(__dirname.replace(/\\/g, '/')).replace(/#/g, '%23');

// Load the index.html of the app
mainWindow.loadURL(`file://${baseLocation}/../browser/index.html`);
mainWindow.loadURL(`file://${baseLocation}/dist/index.html`);

mainWindow.once('ready-to-show', () => {
mainWindow.show();
Expand Down
Loading

0 comments on commit 32295e4

Please sign in to comment.