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

Add a script to copy example files to assets folder. #69

Merged
merged 1 commit into from
Dec 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/examples/example-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class ExampleData {

constructor(example: string) {
if (example && EXAMPLE_COMPONENTS[example]) {
this.examplePath = `/app/examples/${example}/`;
this.examplePath = `/assets/plunker/examples/${example}/`;
// TODO(tinayuangao): Do not hard-code extensions
this.exampleFiles = ['html', 'ts', 'css']
.map((extension) => `${example}-example.${extension}`);
Expand Down
2 changes: 2 additions & 0 deletions tools/plunker-example.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
cp src/app/examples src/assets/plunker -r