Skip to content
This repository has been archived by the owner on Nov 22, 2019. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'beetle-repo/master' into NEW_BEETLE
Browse files Browse the repository at this point in the history
  • Loading branch information
rareddy committed Oct 31, 2018
2 parents 7188f63 + f5cea9c commit 2f2c704
Show file tree
Hide file tree
Showing 382 changed files with 47,153 additions and 0 deletions.
60 changes: 60 additions & 0 deletions ui/.angular-cli.json
@@ -0,0 +1,60 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "beetle-studio"
},
"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"
}
},
"defaults": {
"styleExt": "css",
"component": {}
}
}
13 changes: 13 additions & 0 deletions ui/.editorconfig
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
32 changes: 32 additions & 0 deletions ui/README.md
@@ -0,0 +1,32 @@
# BeetleStudio

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.3.2.

## Running with [Nodejs](https://nodejs.org)

Execute `npm start` to serve the Angular app using nodejs. Navigate to `http://localhost:8080`. This command is meant for production and the files in the `dist` directory will have to be recompiled for code changes to be displayed.

## Development server

Execute `npm start -- -d` for a development server. Navigate to `http://localhost:8080/`. The app will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
Before running the tests make sure you are serving the app via `ng serve`.

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
16 changes: 16 additions & 0 deletions ui/e2e/app.e2e-spec.ts
@@ -0,0 +1,16 @@
import { AppPage } from "./app.po";

describe("beetle-studio App", () => {
let page: AppPage;

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

it("should display welcome message", () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual("Welcome to app!").then(() => {
// nothing to do
});
});
});
12 changes: 12 additions & 0 deletions ui/e2e/app.po.ts
@@ -0,0 +1,12 @@
import { browser, by, element } from "protractor";
import { promise } from "selenium-webdriver";

export class AppPage {
public navigateTo(): promise.Promise< any > {
return browser.get("/");
}

public getParagraphText(): promise.Promise<string> {
return element(by.css("app-root h1")).getText();
}
}
14 changes: 14 additions & 0 deletions ui/e2e/tsconfig.e2e.json
@@ -0,0 +1,14 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/e2e",
"baseUrl": "./",
"module": "commonjs",
"target": "es5",
"types": [
"jasmine",
"jasminewd2",
"node"
]
}
}
26 changes: 26 additions & 0 deletions ui/karma.conf.js
@@ -0,0 +1,26 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular/cli'],
plugins: [
require('karma-jasmine'),
require('karma-phantomjs-launcher' ),
require('karma-junit-reporter'),
require('@angular/cli/plugins/karma')
],
junitReporter : {
// .../beetle-studio/target/karma-reports/*.xml
outputDir : '../../target/karma-reports/'
},
angularCli: {
environment: 'dev'
},
reporters: ['junit', 'progress'],
autoWatch: false,
browsers: [ 'PhantomJS' ],
singleRun: true
});
};
1 change: 1 addition & 0 deletions ui/locale/README.md
@@ -0,0 +1 @@
* messages.{languageCode}.xlf files go here

0 comments on commit 2f2c704

Please sign in to comment.