1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-01 07:36:18 +00:00
TiddlyWiki5/plugins/tiddlywiki/jasmine/update-packages.sh
Marica Odagaki 613f0b2559 Upgrade to Jasmine 3 (#4226)
* process.exit() only exist in a node.js environment

* updateInterval has been removed from upstream

From upstream commit:
b6eb9a4d5e

* Update Jasmine to 3.4.0

* Reuse the evalInContext helper

* Fix expected parse result to match the actual result

* 'describe' cannot be nested inside 'it' blocks

Jasmine started to explicitly raise an error in these cases since:
https://github.com/jasmine/jasmine/pull/1411

* Be consistent about how to refer to library files

* Update link to Jasmine's official website
2019-11-12 21:42:38 +00:00

31 lines
807 B
Bash
Executable File

#!/bin/bash
# Download jasmine packages from npm and unpack relevant files
# into files/.
set -exuo pipefail
JASMINE_VERSION=3.4.0
JASMINE_CORE_VERSION=3.4.0
rm -rf files/jasmine
mkdir -p files/jasmine
if [ ! -f "jasmine-$JASMINE_VERSION.tgz" ]; then
npm pack jasmine@$JASMINE_VERSION
fi
tar xfzv jasmine-$JASMINE_VERSION.tgz \
-C files/jasmine \
--strip-components=1 \
--wildcards "*/lib/*.js" "*/*.LICENSE" \
--exclude "example"
rm -rf files/jasmine-core
mkdir -p files/jasmine-core
if [ ! -f "jasmine-core-$JASMINE_CORE_VERSION.tgz" ]; then
npm pack jasmine-core@$JASMINE_CORE_VERSION
fi
tar xfzv jasmine-core-$JASMINE_CORE_VERSION.tgz \
-C files/jasmine-core \
--strip-components=1 \
--wildcards "*/lib/*.js" "*/lib/*.css" "*/*.LICENSE" \
--exclude "example"