Skip to content

Commit 48bf374

Browse files
committed
chore(build): adjust build scripts
1 parent 94351dd commit 48bf374

4 files changed

Lines changed: 9 additions & 30 deletions

File tree

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ jobs:
2626
script:
2727
- npm run test:lib:coverage
2828
- npm run report-coverage:lib
29-
skip_cleanup: true
30-
- stage: build & deploy
29+
- stage: build & publish showcase
3130
script:
32-
- npm run build:lib
3331
- npm run build:demo
34-
- npm run publish
35-
skip_cleanup: true
32+
- npm run publish:demo
33+
- stage: build & publish lib
34+
script:
35+
- npm run build:lib
36+
- npm run publish:lib
3637
if: branch = master

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"build:lib": "ng build ng-sortgrid",
1616
"build:demo": "ng build ng-sortgrid-demo --base-href='https://kreuzerk.github.io/ng-sortgrid/'",
1717
"publish": "npm run publish:lib",
18-
"publish:demo": "npx angular-cli-ghpages --dir=./dist/ng-sortgrid-demo",
19-
"publish:lib": "cd dist/ng-sortgrid && npx semantic-release",
18+
"publish:demo": "npm run angular-cli-ghpages --dir=./dist/ng-sortgrid-demo",
19+
"publish:lib": "cd dist/ng-sortgrid && npm run semantic-release",
2020
"lint": "ng lint",
2121
"e2e": "ng e2e",
2222
"semantic-release": "semantic-release"

projects/ng-sortgrid-demo/src/app/examples/card/card.component.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.card {
1+
:host {
22
width: 200px;
33
height: 200px;
44
border: solid 1px #ccc;

projects/ng-sortgrid-demo/src/app/examples/memory-demo.css

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,3 @@
1818
width: 100%;
1919
justify-content: center;
2020
}
21-
22-
.example-box {
23-
width: 200px;
24-
height: 200px;
25-
border: solid 1px #ccc;
26-
font-size: 30pt;
27-
font-weight: bold;
28-
color: rgba(0, 0, 0, 0.87);
29-
cursor: move;
30-
display: flex;
31-
justify-content: center;
32-
align-items: center;
33-
text-align: center;
34-
background: #fff;
35-
border-radius: 4px;
36-
position: relative;
37-
z-index: 1;
38-
transition: box-shadow 200ms cubic-bezier(0, 0, 0.2, 1);
39-
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
40-
0 2px 2px 0 rgba(0, 0, 0, 0.14),
41-
0 1px 5px 0 rgba(0, 0, 0, 0.12);
42-
}

0 commit comments

Comments
 (0)