Skip to content
Snippets Groups Projects
Commit 37053702 authored by David Trattnig's avatar David Trattnig
Browse files

chore(make): add `dist` and `clean` targets

parent d41a4a02
No related branches found
No related tags found
No related merge requests found
/node_modules/ /node_modules/
/public/build/ /public/build/
/dist
.DS_Store .DS_Store
sync.sh sync.sh
...@@ -7,7 +7,9 @@ help:: ...@@ -7,7 +7,9 @@ help::
@echo " init.dev - init development environment" @echo " init.dev - init development environment"
@echo " lint - verify code style" @echo " lint - verify code style"
@echo " spell - check spelling of text" @echo " spell - check spelling of text"
@echo " clean - clean artifacts"
@echo " build - build a production bundle" @echo " build - build a production bundle"
@echo " dist - create a dist package"
@echo " run - start app in development mode" @echo " run - start app in development mode"
@echo " start - start app with sirv server (public)" @echo " start - start app with sirv server (public)"
$(call docker_help) $(call docker_help)
...@@ -39,9 +41,24 @@ lint:: ...@@ -39,9 +41,24 @@ lint::
spell:: spell::
npm run spell npm run spell
clean::
rm -rf dist
mkdir -p dist/assets
build:: build::
npm run build npm run build
dist::clean
dist::build
dist::
cp public/service-worker.js dist
cp public/manifest.json dist
cp public/build/smui-dark.css dist
cp public/build/smui.css dist
cp public/build/aura-player-bundle.* dist
cp public/assets/*.svg dist/assets
rm dist/assets/aura_fav.svg
run:: run::
npm run dev npm run dev
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment