Skip to content

Commit

Permalink
Fix bug into dist directory adding html and scss files
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitdam2001 committed Dec 6, 2016
1 parent c57382d commit 7874966
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
6 changes: 6 additions & 0 deletions dist/src/component/searchbar/searchbar.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div>
<input placeholder="Search a town" [formControl]="term" type="text" />
<ul ng-if="items.length > 0">
<li *ngFor="let item of items" (click)="select(item)">{{item.formatted_address}}</li>
</ul>
</div>
41 changes: 41 additions & 0 deletions dist/src/component/searchbar/searchbar.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
$backgroundListItem: #fff;
$backgroundListItemOver: #416399;


:host {
padding: 10px;

input {
width: 100%;
padding: 0 5px;
border-radius: 5px;
height: 35px;
font-size: 20px;
box-shadow: 5px 1px black;
line-height: 35px;
}
ul {
list-style: none;
padding: 0;
display: block;
border: solid 1px #aaa;
border-radius: 0 0 3px 3px;
margin-top: 0;

li {
border-bottom: solid 1px #999;
padding: 3px;
background: $backgroundListItem;
height: 30px;
line-height: 30px;
}
li:last-child {
border-bottom: none;
}
li:hover {
background: $backgroundListItemOver;
cursor: pointer;
color: #fff;
}
}
}
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"postinstall": "typings install",
"prepublish": "tsc",
"tsc": "tsc",
"typings": "typings"
"typings": "typings",
"htmlcopy": "copyfiles src/**/*.html dist",
"scsscopy": "copyfiles src/**/*.scss dist",
"dist": "rm -Rf dist && npm run tsc && npm run htmlcopy && npm run scsscopy"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -37,7 +40,8 @@
"tslint": "^3.15.1",
"typescript": "2.0.2",
"typings":"^1.0.4",
"zone.js": "0.6.23"
"zone.js": "0.6.23",
"copyfiles": "1.0.0"
},
"engines": {
"node": ">=0.8.0"
Expand Down

0 comments on commit 7874966

Please sign in to comment.