blob: bfda4982f7beced9cd2e2d798a2f3f09d4d930fc [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.
default: dev
utils_clean:
@echo "Cleaning utils modules..."
cd ../utils && rm -rf ./node_modules
utils_install:
@echo "Installing utils yarn modules..."
cd ../utils && yarn install
build:
@echo "Building production bundle..."
NODE_ENV="production" yarn run build
local_clean:
@echo "Cleaning modules and builds..."
rm -rf ./node_modules ./dist
clean: utils_clean local_clean
dev:
@echo "Starting dev web server..."
yarn start
server: build
@echo "Starting api proxy server..."
NODE_ENV="production" yarn start
local_install:
@echo "Installing node modules..."
yarn install
install: utils_install local_install
test:
@echo "Running tests..."
yarn test
setup: clean install
war:
mvn clean install
.PHONY: build utils_clean local_clean clean deploy dev utils_install local_install install server setup test war