Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 039dd9a

Browse files
tinayuangaojelbourn
authored andcommitted
Add a script to copy example files to assets folder. Change the example path (#69)
1 parent 82e0739 commit 039dd9a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/app/examples/example-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class ExampleData {
1919

2020
constructor(example: string) {
2121
if (example && EXAMPLE_COMPONENTS[example]) {
22-
this.examplePath = `/app/examples/${example}/`;
22+
this.examplePath = `/assets/plunker/examples/${example}/`;
2323
// TODO(tinayuangao): Do not hard-code extensions
2424
this.exampleFiles = ['html', 'ts', 'css']
2525
.map((extension) => `${example}-example.${extension}`);

tools/plunker-example.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
cp src/app/examples src/assets/plunker -r

0 commit comments

Comments
 (0)