mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-11-08 14:08:22 +01:00
fix: Allow passing Global version number and build ID to frontend build
All checks were successful
gitea-sync/antos-frontend/pipeline/head This commit looks good
All checks were successful
gitea-sync/antos-frontend/pipeline/head This commit looks good
This commit is contained in:
parent
8c20cfec5e
commit
04da2a9d39
11
Makefile
11
Makefile
@ -8,9 +8,8 @@ TSC=./node_modules/typescript/bin/tsc
|
|||||||
UGLIFYJS=./node_modules/terser/bin/terser
|
UGLIFYJS=./node_modules/terser/bin/terser
|
||||||
UGLIFYCSS=./node_modules/uglifycss/uglifycss
|
UGLIFYCSS=./node_modules/uglifycss/uglifycss
|
||||||
|
|
||||||
VERSION=2.0.0
|
VERSION?=2.0.0-b
|
||||||
BRANCH = a
|
BUILDID?=master
|
||||||
BUILDID=$(shell git rev-parse --short HEAD)
|
|
||||||
|
|
||||||
GSED=sed
|
GSED=sed
|
||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
@ -122,7 +121,7 @@ build_javascripts: ts
|
|||||||
(cat "$${f}"; echo) >> dist/antos.js;\
|
(cat "$${f}"; echo) >> dist/antos.js;\
|
||||||
rm "$${f}";\
|
rm "$${f}";\
|
||||||
done
|
done
|
||||||
echo 'OS.VERSION.version_string = "$(VERSION)-$(BRANCH)-$(BUILDID)";' >> dist/antos.js
|
echo 'OS.VERSION.version_string = "$(VERSION)-$(BUILDID)";' >> dist/antos.js
|
||||||
cp dist/antos.js $(BUILDDIR)/scripts/
|
cp dist/antos.js $(BUILDDIR)/scripts/
|
||||||
echo "if(exports){ exports.__esModule = true;exports.OS = OS; }" >> dist/antos.js
|
echo "if(exports){ exports.__esModule = true;exports.OS = OS; }" >> dist/antos.js
|
||||||
rm -r dist/core
|
rm -r dist/core
|
||||||
@ -229,8 +228,8 @@ release: main uglify
|
|||||||
doc:
|
doc:
|
||||||
# npm install typedoc --save-dev
|
# npm install typedoc --save-dev
|
||||||
# npm install typedoc-plugin-merge-modules --save-dev
|
# npm install typedoc-plugin-merge-modules --save-dev
|
||||||
# ./node_modules/.bin/typedoc --mode file --excludeNotExported --hideGenerator --name "AntOS $(VERSION)-$(BRANCH)-$(BUILDID) API" --out $(DOCDIR)
|
# ./node_modules/.bin/typedoc --mode file --excludeNotExported --hideGenerator --name "AntOS $(VERSION)-$(BUILDID) API" --out $(DOCDIR)
|
||||||
./node_modules/.bin/typedoc --hideGenerator --plugin typedoc-plugin-merge-modules --entryPointStrategy expand --name "AntOS $(VERSION)-$(BRANCH)-$(BUILDID) API" --out $(DOCDIR)
|
./node_modules/.bin/typedoc --hideGenerator --plugin typedoc-plugin-merge-modules --entryPointStrategy expand --name "AntOS $(VERSION)-$(BUILDID) API" --out $(DOCDIR)
|
||||||
|
|
||||||
test: build_javascripts
|
test: build_javascripts
|
||||||
jest
|
jest
|
||||||
|
@ -885,7 +885,7 @@ namespace OS {
|
|||||||
* Variable represents the current AntOS source code repository
|
* Variable represents the current AntOS source code repository
|
||||||
* is an instance of string
|
* is an instance of string
|
||||||
*/
|
*/
|
||||||
export const REPOSITORY: string = "https://github.com/lxsang/antos";
|
export const REPOSITORY: string = "https://github.com/antos-rde/antos";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicate whether the current de
|
* Indicate whether the current de
|
||||||
|
Loading…
Reference in New Issue
Block a user