mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
build: makefile
This commit is contained in:
parent
0458fc36f0
commit
0fc3b26337
3 changed files with 22 additions and 19 deletions
21
Makefile
Executable file
21
Makefile
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
build:
|
||||
rm -rf dist
|
||||
yarn build
|
||||
|
||||
upload-for-analytics:
|
||||
VERSION=v$(node scripts/get-version.js)
|
||||
# make sure sentry can retrieve current commit on remote
|
||||
git push --tags
|
||||
yarn sentry-cli releases new "$(VERSION)"
|
||||
yarn sentry-cli releases set-commits "$(VERSION)" --auto
|
||||
yarn sentry-cli releases files "$(VERSION)" upload-sourcemaps dist --no-rewrite
|
||||
yarn sentry-cli releases finalize "$(VERSION)"
|
||||
|
||||
compress:
|
||||
rm -f dist/gitako.zip
|
||||
cd dist && zip -r gitako.zip * -x *.map
|
||||
|
||||
release:
|
||||
$(MAKE) build
|
||||
$(MAKE) upload-for-analytics
|
||||
$(MAKE) compress
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
"analyse-bundle": "ANALYSE= NODE_ENV=production webpack",
|
||||
"build": "NODE_ENV=production webpack",
|
||||
"postversion": "node scripts/version.js",
|
||||
"roll": "./scripts/release.sh"
|
||||
"roll": "make release"
|
||||
},
|
||||
"dependencies": {
|
||||
"@primer/octicons": "^9.2.0",
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
#!/bin/sh
|
||||
rm -rf dist
|
||||
yarn build
|
||||
|
||||
GIT_SHA=$(git rev-parse HEAD)
|
||||
VERSION=v$(node scripts/get-version.js)
|
||||
echo "Got version $VERSION"
|
||||
|
||||
# sentry
|
||||
git push --tags # make sure sentry can retrieve current commit on remote
|
||||
yarn sentry-cli releases new "$VERSION"
|
||||
yarn sentry-cli releases set-commits "$VERSION" --auto
|
||||
yarn sentry-cli releases files "$VERSION" upload-sourcemaps dist --no-rewrite
|
||||
yarn sentry-cli releases finalize "$VERSION"
|
||||
|
||||
cd dist
|
||||
rm -f ./gitako.zip
|
||||
zip -r gitako.zip * -x *.map
|
||||
Loading…
Reference in a new issue