Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Removing usage of pugjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Plum-Crazy committed Sep 12, 2017
1 parent ec1343f commit 5f18da0
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 17 deletions.
4 changes: 0 additions & 4 deletions config/build/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ module.exports = {
test: /\.html$/,
use: 'html-loader'
},
{
test: /\.pug$/,
use: [ 'raw-loader', 'pug-html-loader' ]
},
{
test: /\.scss$/,
exclude: /node_modules/,
Expand Down
4 changes: 0 additions & 4 deletions config/test/webpack.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ module.exports = {
test: /\.html$/,
use: 'html-loader'
},
{
test: /\.pug$/,
use: [ 'raw-loader', 'pug-html-loader' ]
},
{
test: /\.scss$/,
exclude: /node_modules/,
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
"loader-utils": "^1.1.0",
"node-sass": "^4.5.3",
"protractor": "~5.1.2",
"pug": "^2.0.0-beta12",
"pug-html-loader": "^1.1.4",
"raw-loader": "^0.5.1",
"reflect-metadata": "^0.1.10",
"sass-loader": "^6.0.6",
Expand Down
5 changes: 5 additions & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="tyn-app">
<main>
<router-outlet></router-outlet>
</main>
</div>
3 changes: 0 additions & 3 deletions src/app/app.component.pug

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, OnInit, ViewEncapsulation } from "@angular/core";

@Component({
selector: "tyn-app",
template: require("./app.component.pug"),
templateUrl: './app.component.html',
styleUrls: [ "./app.component.scss" ],
encapsulation: ViewEncapsulation.None
})
Expand Down
3 changes: 3 additions & 0 deletions src/app/route/home/home.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="tyn-home">
<p>Hello World!</p>
</div>
2 changes: 0 additions & 2 deletions src/app/route/home/home.component.pug

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/route/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component } from "@angular/core";

@Component({
selector: "tyn-home",
template: require("./home.component.pug"),
templateUrl: './home.component.html',
styleUrls: [ "./home.component.scss" ]
})
export class HomeComponent {
Expand Down

0 comments on commit 5f18da0

Please sign in to comment.