File: build/examples-tag.sh

Recommend this page to a friend!
  Classes of Dom Hastings  >  JS Webdav Client  >  build/examples-tag.sh  >  Download  
File: build/examples-tag.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: JS Webdav Client
Access files of a Webdav server
Author: By
Last change:
Date: 1 month ago
Size: 587 bytes
 

Contents

Class file image Download
[ ! -d ./tmp ] && mkdir -p ./tmp;

VERSION="$1";

node src/example.generator.js --cdn --version "$VERSION" > ./tmp/example-cdn.js;
npm run --silent terser -- ./tmp/example-cdn.js -c -m -e > ./tmp/example-cdn-min.js;

printf 'javascript:' > ./examples/bookmarklet/source-min.js;
cat ./tmp/example-cdn-min.js >> ./examples/bookmarklet/source-min.js;

printf '<script type="text/javascript">' > ./examples/apache-directory-list/header.html;
cat ./tmp/example-cdn-min.js >> ./examples/apache-directory-list/header.html;
printf '</script><!--' >> ./examples/apache-directory-list/header.html;