mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00

* fix the crash * chore: update MaterialComponents pod (#8176) * chore: update MaterialComponents pod * chore: remove copy of pod file in build script * chore: cut the 6.3.0 release (#8174) * hore: cut the 6.3.1 release * fix: handle fake attach after FragMgr is destroyed (#8200) * fix: check is disposed fragment is in the FragmentManager (#8201) * release: cut the 6.3.2 release * release: cut the 6.4.0 release * chore(build): always use local typescript * fix: flipLeft and flipRight on Android (#8307) * fix(android): tap-trip-item title disappearing * fix(andoid): crash when setting font on tab-item with no image * fix(build): Add platforms/android to NPM package (#8312) Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com> Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com> * release: cut the 6.4.1 release * chore: bump tns-core-modules-widgets version (#8352) Co-authored-by: hamidbsd <50081218+hamidbsd@users.noreply.github.com> Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com> Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com> Co-authored-by: Nick Iliev <nikolay.iliev@telerik.com> Co-authored-by: Martin Bektchiev <martin.bektchiev@progress.com> Co-authored-by: Rosen Vladimirov <rosen-vladimirov@users.noreply.github.com>
80 lines
1.7 KiB
Bash
Executable File
80 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
##
|
|
# Prepares the tns-platform-declarations and @nativescript/core packages inside dist folder
|
|
##
|
|
|
|
set -x
|
|
set -e
|
|
|
|
DIST=dist;
|
|
ROOT_DIR=$(cd `dirname $0` && pwd)/..;
|
|
cd "$ROOT_DIR"
|
|
|
|
mkdir -p "$DIST"
|
|
|
|
## NPM INSTALL
|
|
(
|
|
echo "NPM install in root of the repo"
|
|
cd "$ROOT_DIR"
|
|
npm install
|
|
)
|
|
|
|
## Prepare Platfrom Declarations
|
|
(
|
|
PACKAGE=tns-platform-declarations;
|
|
|
|
echo "Clearing $DIST/$PACKAGE"
|
|
npx rimraf "$DIST/$PACKAGE"
|
|
npx rimraf "$DIST/$PACKAGE*.tgz"
|
|
|
|
echo "Copying $PACKAGE $DIST/$PACKAGE..."
|
|
npx ncp "$PACKAGE" "$DIST/$PACKAGE"
|
|
|
|
echo "Copying README and LICENSE to $DIST/$PACKAGE"
|
|
npx ncp LICENSE "$DIST/$PACKAGE"/LICENSE
|
|
|
|
cd "$DIST/$PACKAGE"
|
|
|
|
echo 'Running npm install...'
|
|
npm install
|
|
|
|
echo 'Running npm test...'
|
|
npm test
|
|
)
|
|
|
|
## Prepare Core Modules
|
|
(
|
|
PACKAGE=nativescript-core;
|
|
|
|
echo "Clearing $DIST/$PACKAGE"
|
|
npx rimraf "$DIST/$PACKAGE"
|
|
npx rimraf "$DIST/$PACKAGE*.tgz"
|
|
|
|
npm run api-extractor-ci
|
|
|
|
echo "Copying $PACKAGE $DIST/$PACKAGE..."
|
|
npx ncp "$PACKAGE" "$DIST/$PACKAGE"
|
|
|
|
echo "Cleaning inner readme.md-s ..."
|
|
npx rimraf "$DIST/$PACKAGE/**/README.md"
|
|
npx rimraf "$DIST/$PACKAGE/**/Readme.md"
|
|
|
|
echo "Copying README and LICENSE to $DIST/$PACKAGE"
|
|
npx ncp LICENSE "$DIST"/"$PACKAGE"/LICENSE
|
|
npx ncp README.md "$DIST"/"$PACKAGE"/README.md
|
|
|
|
(
|
|
cd "$DIST/$PACKAGE"
|
|
npm install
|
|
)
|
|
|
|
# Aways execute npx tsc from repo root to use the local typescript
|
|
echo 'TypeScript transpile...'
|
|
npx tsc -v
|
|
npx tsc -p "$DIST/$PACKAGE"
|
|
|
|
echo "Clearing typescript definitions from private APIs..."
|
|
npx ts-node --project ./build/tsconfig.json build/clear-private-definitions "$DIST/$PACKAGE"
|
|
)
|