Skip to content

Commit

Permalink
feat(demo): fixed index for bs4 theme
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Dec 2, 2016
1 parent c9d447f commit a26eb23
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions demo/bs-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"port": 4200,
"server": { "baseDir": "./demo/dist" }
}
2 changes: 1 addition & 1 deletion demo/src/app/common/main-menu/main-menu.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="menu-content" *ngIf="routes && routes.length">
<div class="section">
<h3 *ngIf="isBs3"><a href="./index-bs4.html#{{hash}}">View in Bootstrap 4</a></h3>
<h3 *ngIf="!isBs3"><a href="#{{hash}}">View in Bootstrap 3</a></h3>
<h3 *ngIf="!isBs3"><a href="./#{{hash}}">View in Bootstrap 3</a></h3>
</div>
<div class="section"
*ngFor="let route of routes | SearchFilter:search.text"
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "angular2 bootstrap components",
"private": true,
"scripts": {
"lite-server": "lite-server -c -c demo/bs-config.json",
"typedoc": "typedoc --exclude '**/*.spec.ts' ./src/",
"demo.serve": "run-s build demo.build lite-server",
"demo.gh-pages": "run-s build demo.build demo.deploy",
"demo.build": "ng build -p --aot && npm run generate-bs4",
"demo.deploy": "gh-pages -d demo/dist",
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate-bs4.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const fs = require('fs');

const files = {
initial: 'demo/src/index.html',
generated: 'demo/src/index-bs4.html'
initial: 'demo/dist/index.html',
generated: 'demo/dist/index-bs4.html'
};

const toReplace = [
Expand Down

0 comments on commit a26eb23

Please sign in to comment.