Copying data folder to hosted examples directory
We need to copy all of the examples directory, because we need the data subdirectory.
This commit is contained in:
3
build.py
3
build.py
@@ -626,7 +626,8 @@ def host_examples(t):
|
|||||||
t.makedirs(examples_dir)
|
t.makedirs(examples_dir)
|
||||||
t.rm_rf(build_dir)
|
t.rm_rf(build_dir)
|
||||||
t.makedirs(build_dir)
|
t.makedirs(build_dir)
|
||||||
t.cp(EXAMPLES, examples_dir)
|
t.rm_rf(examples_dir)
|
||||||
|
t.cp_r('examples', examples_dir)
|
||||||
for example in [path.replace('.html', '.js') for path in EXAMPLES]:
|
for example in [path.replace('.html', '.js') for path in EXAMPLES]:
|
||||||
split_example_file(example, examples_dir % vars(variables))
|
split_example_file(example, examples_dir % vars(variables))
|
||||||
t.cp('bin/loader_hosted_examples.js', examples_dir + '/loader.js')
|
t.cp('bin/loader_hosted_examples.js', examples_dir + '/loader.js')
|
||||||
|
|||||||
Reference in New Issue
Block a user