blob: 903e18598d970e7986790d5a7492b67598426a59 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/usr/bin/env bash
set -e
# build
rm -rf ./target
mkdir target
cp -R ./src/demo-app/ ./target/demo-app
cp -R ./src/platform/ ./target/platform
cp package.json ./target/package.json
cp package-lock.json ./target/package-lock.json
cp ./src/demo-app/index.html ./target/index.html
cp ./test/karma.conf.js ./target/karma.conf.js
cp ./test/karma-test-shim.js ./target/karma-test-shim.js
cp Gruntfile.js ./target/Gruntfile.js
cp ./src/demo-app/gh-pages.* ./target/
cd ./target
npm install
npm run build:demo-app
npm run build:platform