-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/develop'
- Loading branch information
Showing
14 changed files
with
237 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>App Works!</h1> | ||
<h2>This demo is being worked on as we speak and will be available soon.</h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:host { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'my-app', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./app.component.scss'] | ||
}) | ||
export class AppComponent { | ||
|
||
constructor() { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { AppComponent } from './app.component'; | ||
import { ScrollToModule } from '../../src/scroll-to.module'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
ScrollToModule.forRoot(), | ||
BrowserModule | ||
], | ||
declarations: [ | ||
AppComponent | ||
], | ||
bootstrap: [ | ||
AppComponent | ||
] | ||
}) | ||
export class AppModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Demo</title> | ||
</head> | ||
<body> | ||
<my-app> | ||
loading... | ||
</my-app> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import 'core-js'; | ||
import 'zone.js/dist/zone'; | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
import { AppModule } from './app/app.module'; | ||
|
||
platformBrowserDynamic().bootstrapModule(AppModule); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"angularCompilerOptions": { | ||
"entryModule": "./app/app.module#AppModule" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"declaration": true, | ||
"stripInternal": true, | ||
"experimentalDecorators": true, | ||
"strictNullChecks": false, | ||
"noImplicitAny": true, | ||
"module": "es2015", | ||
"moduleResolution": "node", | ||
"paths": { | ||
"@angular/core": [ | ||
"node_modules/@angular/core" | ||
], | ||
"@angular/common": [ | ||
"node_modules/@angular/common" | ||
], | ||
"@angular/platform-browser": [ | ||
"node_modules/@angular/platform-browser" | ||
], | ||
"rxjs/*": [ | ||
"node_modules/rxjs/*" | ||
] | ||
}, | ||
"rootDir": "../src", | ||
"outDir": "../dist", | ||
"sourceMap": true, | ||
"inlineSources": true, | ||
"target": "es5", | ||
"skipLibCheck": true, | ||
"lib": [ | ||
"es2015", | ||
"dom" | ||
] | ||
}, | ||
"files": [ | ||
"../src/index.ts" | ||
], | ||
"angularCompilerOptions": { | ||
"genDir": "../.tmp", | ||
"strictMetadataEmit": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,16 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"declaration": true, | ||
"stripInternal": true, | ||
"experimentalDecorators": true, | ||
"strictNullChecks": false, | ||
"noImplicitAny": true, | ||
"module": "es2015", | ||
"moduleResolution": "node", | ||
"paths": { | ||
"@angular/core": [ | ||
"node_modules/@angular/core" | ||
], | ||
"@angular/common": [ | ||
"node_modules/@angular/common" | ||
], | ||
"@angular/platform-browser": [ | ||
"node_modules/@angular/platform-browser" | ||
], | ||
"rxjs/*": [ | ||
"node_modules/rxjs/*" | ||
] | ||
}, | ||
"rootDir": "src", | ||
"outDir": "dist", | ||
"sourceMap": true, | ||
"inlineSources": true, | ||
"target": "es5", | ||
"skipLibCheck": true, | ||
"lib": [ | ||
"es2015", | ||
"dom" | ||
] | ||
}, | ||
"files": [ | ||
"./src/index.ts" | ||
], | ||
"angularCompilerOptions": { | ||
"genDir": ".tmp", | ||
"strictMetadataEmit": true | ||
} | ||
"compilerOptions": { | ||
"moduleResolution": "node", | ||
"target": "es5", | ||
"noImplicitAny": false, | ||
"sourceMap": false, | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
"lib": [ | ||
"es2016", | ||
"dom" | ||
], | ||
"skipLibCheck": true, | ||
"noStrictGenericChecks": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import * as webpack from 'webpack'; | ||
import { resolve } from 'path'; | ||
import { AotPlugin } from '@ngtools/webpack'; | ||
import * as HtmlWebpackPlugin from 'html-webpack-plugin'; | ||
|
||
/** | ||
* @todo generic 'stats' | ||
* @todo seperate files | ||
* @todo webpack helper file | ||
*/ | ||
export = function () { | ||
|
||
let config: webpack.Configuration = { | ||
entry: { | ||
main: './demo/main.ts' | ||
}, | ||
output: { | ||
path: resolve(__dirname, './', './dist'), | ||
filename: '[name].bundle.js' | ||
}, | ||
resolve: { | ||
extensions: ['.js', '.ts', '.json'] | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.ts$/, | ||
loader: '@ngtools/webpack' | ||
}, | ||
{ | ||
test: /\.html$/, | ||
loader: 'raw-loader' | ||
}, | ||
{ | ||
test: /\.scss$/, | ||
include: [ | ||
resolve(__dirname, './', './demo/app') | ||
], | ||
use: [ | ||
{ | ||
loader: 'raw-loader' | ||
}, | ||
{ | ||
loader: 'sass-loader' | ||
} | ||
] | ||
}, | ||
] | ||
}, | ||
devtool: 'inline-source-map', | ||
stats: { | ||
colors: true, | ||
hash: true, | ||
timings: true, | ||
chunks: true, | ||
chunkModules: false, | ||
children: false, | ||
modules: false, | ||
reasons: false, | ||
warnings: true, | ||
assets: false, | ||
version: false | ||
}, | ||
plugins: [ | ||
new AotPlugin({ | ||
tsConfigPath: resolve(__dirname, './', './demo/tsconfig.demo.json'), | ||
skipCodeGeneration: true | ||
}), | ||
new HtmlWebpackPlugin({ | ||
template: resolve(__dirname, './', './demo/index.html') | ||
}) | ||
], | ||
devServer: { | ||
publicPath: '/', | ||
contentBase: resolve(__dirname, './', './demo'), | ||
port: 3000, | ||
stats: { | ||
colors: true, | ||
hash: true, | ||
timings: true, | ||
chunks: true, | ||
chunkModules: false, | ||
children: false, | ||
modules: false, | ||
reasons: false, | ||
warnings: true, | ||
assets: false, | ||
version: false | ||
} | ||
} | ||
}; | ||
|
||
return config; | ||
}; |