Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9734e30e3 | ||
|
|
a91eaeae66 | ||
|
|
5fd9e31957 | ||
|
|
3a9c03a639 | ||
|
|
7c356bdccc | ||
|
|
dc78eb217c | ||
|
|
b98cea8adc | ||
|
|
470b94d722 | ||
|
|
acce7e61bc | ||
|
|
c2ce0737e9 | ||
|
|
a6cb9851d8 | ||
|
|
9d87cbc9e2 | ||
|
|
dfaa2c7ea5 | ||
|
|
a0bace7fd6 | ||
|
|
3da1e049db |
10
README.md
10
README.md
@@ -7,7 +7,7 @@
|
|||||||
<a href="#tada-php-support" title="PHP Versions Supported"><img alt="PHP Versions Supported" src="https://img.shields.io/badge/php-5.3%20to%208.1-777bb3.svg?logo=php&logoColor=white&labelColor=555555"></a>
|
<a href="#tada-php-support" title="PHP Versions Supported"><img alt="PHP Versions Supported" src="https://img.shields.io/badge/php-5.3%20to%208.1-777bb3.svg?logo=php&logoColor=white&labelColor=555555"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
Cache PHP extensions in [GitHub Actions](https://github.com/features/actions "GitHub Actions"). This action has to be used along with [shivammathur/setup-php](https://github.com/shivammathur/setup-php "Setup PHP") and [actions/cache](https://github.com/actions/cache "Cache in GitHub Actions") GitHub Actions. It configures the environment required to cache PHP extensions. Refer to [Usage](#memo-usage "How to use this") section to see how to use this.
|
Cache PHP extensions in [GitHub Actions](https://github.com/features/actions "GitHub Actions"). This action has to be used along with [shivammathur/setup-php](https://github.com/shivammathur/setup-php "Setup PHP") and [actions/cache](https://github.com/actions/cache "Cache in GitHub Actions") GitHub Actions. It configures the environment required to cache PHP extensions. Refer to [Usage](#memo-usage "How to use this") section for details and example workflow.
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ Cache PHP extensions in [GitHub Actions](https://github.com/features/actions "Gi
|
|||||||
|Ubuntu 18.04|`ubuntu-18.04`|
|
|Ubuntu 18.04|`ubuntu-18.04`|
|
||||||
|Ubuntu 16.04|`ubuntu-16.04`|
|
|Ubuntu 16.04|`ubuntu-16.04`|
|
||||||
|macOS Catalina 10.15|`macos-latest` or `macOS-10.15`|
|
|macOS Catalina 10.15|`macos-latest` or `macOS-10.15`|
|
||||||
|macOS Big Sur 11.0|`macOS-11.0`|
|
|macOS Big Sur 11.x|`macOS-11.0`|
|
||||||
|
|
||||||
## :memo: Usage
|
## :memo: Usage
|
||||||
|
|
||||||
@@ -57,14 +57,14 @@ Use this GitHub Action when the extensions you are adding in [setup-php](https:/
|
|||||||
|
|
||||||
#### `php-version` (required)
|
#### `php-version` (required)
|
||||||
|
|
||||||
- Specify the PHP version you want to set up.
|
- Specify the PHP version you want to set-up.
|
||||||
- Accepts a `string`. For example `'7.4'`.
|
- Accepts a `string`. For example `'7.4'`.
|
||||||
- See [PHP support](#tada-php-support) for supported PHP versions.
|
- See [PHP support](#tada-php-support) for supported PHP versions.
|
||||||
|
|
||||||
#### `extensions` (required)
|
#### `extensions` (required)
|
||||||
|
|
||||||
- Specify the extensions you want to add or remove.
|
- Specify the extensions you want to setup.
|
||||||
- Accepts a `string` in csv-format. For example `mbstring, , xdebug, :opcache`.
|
- Accepts a `string` in csv-format. For example `mbstring, xdebug, :opcache`.
|
||||||
- Extensions prefixed with `:` are ignored.
|
- Extensions prefixed with `:` are ignored.
|
||||||
|
|
||||||
#### `key` (required)
|
#### `key` (required)
|
||||||
|
|||||||
@@ -5,8 +5,7 @@ import * as utils from '../src/utils';
|
|||||||
* Mock cache.ts
|
* Mock cache.ts
|
||||||
*/
|
*/
|
||||||
jest.mock('../src/cache', () => ({
|
jest.mock('../src/cache', () => ({
|
||||||
run: jest.fn().mockImplementation(
|
run: jest.fn().mockImplementation(async (): Promise<string> => {
|
||||||
async (): Promise<string> => {
|
|
||||||
let version: string = process.env['php-version'] || '';
|
let version: string = process.env['php-version'] || '';
|
||||||
version = version.length > 1 ? version.slice(0, 3) : version + '.0';
|
version = version.length > 1 ? version.slice(0, 3) : version + '.0';
|
||||||
const extensions = await utils.filterExtensions(
|
const extensions = await utils.filterExtensions(
|
||||||
@@ -18,8 +17,7 @@ jest.mock('../src/cache', () => ({
|
|||||||
return (
|
return (
|
||||||
'bash ' + script_path + ' "' + extensions + '" ' + key + ' ' + version
|
'bash ' + script_path + ' "' + extensions + '" ' + key + ' ' + version
|
||||||
);
|
);
|
||||||
}
|
})
|
||||||
)
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
1937
dist/index.js
vendored
1937
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
9071
package-lock.json
generated
9071
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
36
package.json
36
package.json
@@ -3,13 +3,13 @@
|
|||||||
"version": "1.5.1",
|
"version": "1.5.1",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "Cache extensions in GitHub Actions",
|
"description": "Cache extensions in GitHub Actions",
|
||||||
"main": "dist/index.js",
|
"main": "lib/cache.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"lint": "eslint **/*.ts --cache",
|
"lint": "eslint **/*.ts --cache",
|
||||||
"format": "prettier --write **/*.ts && git add .",
|
"format": "prettier --write **/*.ts && git add .",
|
||||||
"format-check": "prettier --check **/*.ts",
|
"format-check": "prettier --check **/*.ts",
|
||||||
"release": "ncc build src/cache.ts -o dist && git add -f dist/",
|
"release": "ncc build -o dist && git add -f dist/",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -24,26 +24,26 @@
|
|||||||
"author": "shivammathur",
|
"author": "shivammathur",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.6",
|
"@actions/core": "^1.3.0",
|
||||||
"@actions/exec": "^1.0.4"
|
"@actions/exec": "^1.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^26.0.20",
|
"@types/jest": "^26.0.23",
|
||||||
"@types/node": "^14.14.34",
|
"@types/node": "^15.6.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.17.0",
|
"@typescript-eslint/eslint-plugin": "^4.25.0",
|
||||||
"@typescript-eslint/parser": "^4.17.0",
|
"@typescript-eslint/parser": "^4.25.0",
|
||||||
"@zeit/ncc": "^0.22.3",
|
"@vercel/ncc": "^0.28.6",
|
||||||
"eslint": "^7.21.0",
|
"eslint": "^7.27.0",
|
||||||
"eslint-config-prettier": "^8.1.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-import": "^2.22.1",
|
"eslint-plugin-import": "^2.23.4",
|
||||||
"eslint-plugin-jest": "^24.2.1",
|
"eslint-plugin-jest": "^24.3.6",
|
||||||
"eslint-plugin-prettier": "^3.3.1",
|
"eslint-plugin-prettier": "^3.4.0",
|
||||||
"husky": "^4.3.8",
|
"husky": "^4.3.8",
|
||||||
"jest": "^26.6.3",
|
"jest": "^27.0.3",
|
||||||
"jest-circus": "^26.6.3",
|
"jest-circus": "^27.0.3",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.3.0",
|
||||||
"ts-jest": "^26.5.3",
|
"ts-jest": "^27.0.1",
|
||||||
"typescript": "^4.2.3"
|
"typescript": "^4.3.2"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"skipCI": true,
|
"skipCI": true,
|
||||||
|
|||||||
@@ -50,9 +50,7 @@ get_package_link() {
|
|||||||
|
|
||||||
linux_extension_dir() {
|
linux_extension_dir() {
|
||||||
api_version=$1
|
api_version=$1
|
||||||
if [[ "$version" =~ $old_versions ]]; then
|
if [[ "$version" =~ $old_versions|$nightly_versions ]]; then
|
||||||
echo "/usr/lib/php5/$api_version"
|
|
||||||
elif [[ "$version" =~ 5.3|$nightly_versions ]]; then
|
|
||||||
echo "/usr/local/php/$version/lib/php/extensions/no-debug-non-zts-$api_version"
|
echo "/usr/local/php/$version/lib/php/extensions/no-debug-non-zts-$api_version"
|
||||||
else
|
else
|
||||||
echo "/usr/lib/php/$api_version"
|
echo "/usr/lib/php/$api_version"
|
||||||
@@ -61,8 +59,7 @@ linux_extension_dir() {
|
|||||||
|
|
||||||
darwin_extension_dir() {
|
darwin_extension_dir() {
|
||||||
api_version=$1
|
api_version=$1
|
||||||
old_versions_darwin="5.[3-5]"
|
if [[ "$version" =~ $old_versions ]]; then
|
||||||
if [[ "$version" =~ $old_versions_darwin ]]; then
|
|
||||||
echo "/opt/local/lib/php${version/./}/extensions/no-debug-non-zts-$api_version"
|
echo "/opt/local/lib/php${version/./}/extensions/no-debug-non-zts-$api_version"
|
||||||
else
|
else
|
||||||
if [[ "$(sysctl -n hw.optional.arm64 2>/dev/null)" == "1" ]]; then
|
if [[ "$(sysctl -n hw.optional.arm64 2>/dev/null)" == "1" ]]; then
|
||||||
@@ -196,8 +193,9 @@ version=$3
|
|||||||
tick="✓"
|
tick="✓"
|
||||||
cross="✗"
|
cross="✗"
|
||||||
os=$(uname -s)
|
os=$(uname -s)
|
||||||
old_versions="5.[4-5]"
|
old_versions="5.[3-5]"
|
||||||
nightly_versions="8.[1-9]"
|
nightly_versions="8.[1-9]"
|
||||||
|
date='20210313'
|
||||||
if [ "$os" = "Linux" ]; then
|
if [ "$os" = "Linux" ]; then
|
||||||
. /etc/lsb-release
|
. /etc/lsb-release
|
||||||
os=$os-$DISTRIB_CODENAME
|
os=$os-$DISTRIB_CODENAME
|
||||||
@@ -209,11 +207,13 @@ elif [ "$os" = "Darwin" ]; then
|
|||||||
api_version=$(get_api_version)
|
api_version=$(get_api_version)
|
||||||
dir=$(darwin_extension_dir "$api_version")
|
dir=$(darwin_extension_dir "$api_version")
|
||||||
sudo mkdir -p "$dir" && fix_ownership "$dir"
|
sudo mkdir -p "$dir" && fix_ownership "$dir"
|
||||||
|
[[ "$extensions" == *"imagick"* ]] && date='20210622'
|
||||||
else
|
else
|
||||||
os="Windows"
|
os="Windows"
|
||||||
dir='C:\\tools\\php\\ext'
|
dir='C:\\tools\\php\\ext'
|
||||||
|
[[ "$extensions" == *"imagick"* ]] && date='20210512'
|
||||||
fi
|
fi
|
||||||
key="$os"-ext-"$version"-$(echo -n "$extensions-$key" | openssl dgst -sha256 | cut -d ' ' -f 2)
|
key="$os"-ext-"$version"-$(echo -n "$extensions-$key" | openssl dgst -sha256 | cut -d ' ' -f 2)
|
||||||
key="$key-20210313"
|
key="$key-$date"
|
||||||
echo "::set-output name=dir::$dir"
|
echo "::set-output name=dir::$dir"
|
||||||
echo "::set-output name=key::$key"
|
echo "::set-output name=key::$key"
|
||||||
|
|||||||
@@ -70,15 +70,12 @@ libcgi-fast-perl
|
|||||||
libcgi-pm-perl
|
libcgi-pm-perl
|
||||||
libcgroup1
|
libcgroup1
|
||||||
libcilkrts5
|
libcilkrts5
|
||||||
libclang-common-6.0-dev
|
|
||||||
libclang-common-8-dev
|
|
||||||
libclang-common-9-dev
|
libclang-common-9-dev
|
||||||
libclang-cpp9
|
libclang-cpp9
|
||||||
libclang1-6.0
|
|
||||||
libclang1-8
|
|
||||||
libclang1-9
|
libclang1-9
|
||||||
libcolord2
|
libcolord2
|
||||||
libcom-err2
|
libcom-err2
|
||||||
|
libcommon-sense-perl
|
||||||
libcroco3
|
libcroco3
|
||||||
libcryptsetup12
|
libcryptsetup12
|
||||||
libcups2
|
libcups2
|
||||||
@@ -153,7 +150,6 @@ libgbm1
|
|||||||
libgc1c2
|
libgc1c2
|
||||||
libgcc-10-dev
|
libgcc-10-dev
|
||||||
libgcc-7-dev
|
libgcc-7-dev
|
||||||
libgcc-8-dev
|
|
||||||
libgcc-9-dev
|
libgcc-9-dev
|
||||||
libgcc-s1
|
libgcc-s1
|
||||||
libgcc1
|
libgcc1
|
||||||
@@ -170,7 +166,6 @@ libgeoip1
|
|||||||
libgflags2.2
|
libgflags2.2
|
||||||
libgfortran-10-dev
|
libgfortran-10-dev
|
||||||
libgfortran-7-dev
|
libgfortran-7-dev
|
||||||
libgfortran-8-dev
|
|
||||||
libgfortran-9-dev
|
libgfortran-9-dev
|
||||||
libgfortran4
|
libgfortran4
|
||||||
libgfortran5
|
libgfortran5
|
||||||
@@ -274,7 +269,8 @@ libjs-jquery
|
|||||||
libjson-c3
|
libjson-c3
|
||||||
libjson-glib-1.0-0
|
libjson-glib-1.0-0
|
||||||
libjson-glib-1.0-common
|
libjson-glib-1.0-common
|
||||||
libjsoncpp1
|
libjson-perl
|
||||||
|
libjson-xs-perl
|
||||||
libjte1
|
libjte1
|
||||||
libk5crypto3
|
libk5crypto3
|
||||||
libkeyutils1
|
libkeyutils1
|
||||||
@@ -291,12 +287,9 @@ liblcms2-dev
|
|||||||
libldap-2.4-2
|
libldap-2.4-2
|
||||||
libldap-common
|
libldap-common
|
||||||
libldb1
|
libldb1
|
||||||
liblldb-6.0
|
|
||||||
liblldb-8
|
|
||||||
liblldb-9
|
liblldb-9
|
||||||
libllvm10
|
libllvm10
|
||||||
libllvm6.0
|
libllvm6.0
|
||||||
libllvm8
|
|
||||||
libllvm9
|
libllvm9
|
||||||
liblmdb0
|
liblmdb0
|
||||||
liblocale-gettext-perl
|
liblocale-gettext-perl
|
||||||
@@ -639,7 +632,6 @@ libssl1.0.0
|
|||||||
libssl1.1
|
libssl1.1
|
||||||
libstdc++-10-dev
|
libstdc++-10-dev
|
||||||
libstdc++-7-dev
|
libstdc++-7-dev
|
||||||
libstdc++-8-dev
|
|
||||||
libstdc++-9-dev
|
libstdc++-9-dev
|
||||||
libstdc++6
|
libstdc++6
|
||||||
libstemmer0d
|
libstemmer0d
|
||||||
@@ -673,6 +665,7 @@ libtommath1
|
|||||||
libtool
|
libtool
|
||||||
libtry-tiny-perl
|
libtry-tiny-perl
|
||||||
libtsan0
|
libtsan0
|
||||||
|
libtypes-serialiser-perl
|
||||||
libu2f-udev
|
libu2f-udev
|
||||||
libubsan0
|
libubsan0
|
||||||
libubsan1
|
libubsan1
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ libapt-pkg6.0
|
|||||||
libarchive13
|
libarchive13
|
||||||
libargon2-1
|
libargon2-1
|
||||||
libaria2-0
|
libaria2-0
|
||||||
libasan4
|
|
||||||
libasan5
|
libasan5
|
||||||
libasan6
|
libasan6
|
||||||
libasn1-8-heimdal
|
libasn1-8-heimdal
|
||||||
@@ -75,16 +74,18 @@ libcc1-0
|
|||||||
libcgi-fast-perl
|
libcgi-fast-perl
|
||||||
libcgi-pm-perl
|
libcgi-pm-perl
|
||||||
libcgroup1
|
libcgroup1
|
||||||
libcilkrts5
|
|
||||||
libclang-common-10-dev
|
libclang-common-10-dev
|
||||||
libclang-common-8-dev
|
libclang-common-11-dev
|
||||||
libclang-common-9-dev
|
libclang-common-12-dev
|
||||||
libclang-cpp10
|
libclang-cpp10
|
||||||
libclang-cpp9
|
libclang-cpp11
|
||||||
|
libclang-cpp12
|
||||||
libclang1-10
|
libclang1-10
|
||||||
libclang1-8
|
libclang1-11
|
||||||
|
libclang1-12
|
||||||
libcolord2
|
libcolord2
|
||||||
libcom-err2
|
libcom-err2
|
||||||
|
libcommon-sense-perl
|
||||||
libcrypt-dev
|
libcrypt-dev
|
||||||
libcrypt1
|
libcrypt1
|
||||||
libcryptsetup12
|
libcryptsetup12
|
||||||
@@ -166,8 +167,6 @@ libgbm1
|
|||||||
libgc1c2
|
libgc1c2
|
||||||
libgcab-1.0-0
|
libgcab-1.0-0
|
||||||
libgcc-10-dev
|
libgcc-10-dev
|
||||||
libgcc-7-dev
|
|
||||||
libgcc-8-dev
|
|
||||||
libgcc-9-dev
|
libgcc-9-dev
|
||||||
libgcc-s1
|
libgcc-s1
|
||||||
libgconf-2-4
|
libgconf-2-4
|
||||||
@@ -182,7 +181,6 @@ libgdk-pixbuf2.0-common
|
|||||||
libgdk-pixbuf2.0-dev
|
libgdk-pixbuf2.0-dev
|
||||||
libgflags2.2
|
libgflags2.2
|
||||||
libgfortran-10-dev
|
libgfortran-10-dev
|
||||||
libgfortran-8-dev
|
|
||||||
libgfortran-9-dev
|
libgfortran-9-dev
|
||||||
libgfortran5
|
libgfortran5
|
||||||
libgif7
|
libgif7
|
||||||
@@ -272,6 +270,8 @@ libjs-xmlextras
|
|||||||
libjson-c4
|
libjson-c4
|
||||||
libjson-glib-1.0-0
|
libjson-glib-1.0-0
|
||||||
libjson-glib-1.0-common
|
libjson-glib-1.0-common
|
||||||
|
libjson-perl
|
||||||
|
libjson-xs-perl
|
||||||
libjte2
|
libjte2
|
||||||
libk5crypto3
|
libk5crypto3
|
||||||
libkeyutils1
|
libkeyutils1
|
||||||
@@ -288,11 +288,11 @@ liblcms2-dev
|
|||||||
libldap-2.4-2
|
libldap-2.4-2
|
||||||
libldap-common
|
libldap-common
|
||||||
liblldb-10
|
liblldb-10
|
||||||
liblldb-8
|
liblldb-11
|
||||||
liblldb-9
|
liblldb-12
|
||||||
libllvm10
|
libllvm10
|
||||||
libllvm11
|
libllvm11
|
||||||
libllvm8
|
libllvm12
|
||||||
libllvm9
|
libllvm9
|
||||||
liblmdb0
|
liblmdb0
|
||||||
liblocale-gettext-perl
|
liblocale-gettext-perl
|
||||||
@@ -481,7 +481,6 @@ libmount1
|
|||||||
libmpc3
|
libmpc3
|
||||||
libmpdec2
|
libmpdec2
|
||||||
libmpfr6
|
libmpfr6
|
||||||
libmpx2
|
|
||||||
libmspack0
|
libmspack0
|
||||||
libmysqlclient-dev
|
libmysqlclient-dev
|
||||||
libmysqlclient21
|
libmysqlclient21
|
||||||
@@ -515,13 +514,12 @@ libnss-systemd
|
|||||||
libnss3
|
libnss3
|
||||||
libntfs-3g883
|
libntfs-3g883
|
||||||
libnuma1
|
libnuma1
|
||||||
libobjc-8-dev
|
|
||||||
libobjc-9-dev
|
libobjc-9-dev
|
||||||
libobjc4
|
libobjc4
|
||||||
libodbc1
|
libodbc1
|
||||||
libogg0
|
libogg0
|
||||||
libomp-10-dev
|
libomp-11-dev
|
||||||
libomp5-10
|
libomp5-11
|
||||||
libonig5
|
libonig5
|
||||||
libopenexr-dev
|
libopenexr-dev
|
||||||
libopenexr24
|
libopenexr24
|
||||||
@@ -636,8 +634,6 @@ libssh2-1
|
|||||||
libssl-dev
|
libssl-dev
|
||||||
libssl1.1
|
libssl1.1
|
||||||
libstdc++-10-dev
|
libstdc++-10-dev
|
||||||
libstdc++-7-dev
|
|
||||||
libstdc++-8-dev
|
|
||||||
libstdc++-9-dev
|
libstdc++-9-dev
|
||||||
libstdc++6
|
libstdc++6
|
||||||
libstemmer0d
|
libstemmer0d
|
||||||
@@ -672,8 +668,8 @@ libtool
|
|||||||
libtry-tiny-perl
|
libtry-tiny-perl
|
||||||
libtsan0
|
libtsan0
|
||||||
libtss2-esys0
|
libtss2-esys0
|
||||||
|
libtypes-serialiser-perl
|
||||||
libu2f-udev
|
libu2f-udev
|
||||||
libubsan0
|
|
||||||
libubsan1
|
libubsan1
|
||||||
libuchardet0
|
libuchardet0
|
||||||
libucl1
|
libucl1
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ libapt-pkg5.0
|
|||||||
libarchive13
|
libarchive13
|
||||||
libargon2-1
|
libargon2-1
|
||||||
libasan2
|
libasan2
|
||||||
libasan4
|
|
||||||
libasan5
|
libasan5
|
||||||
libasn1-8-heimdal
|
libasn1-8-heimdal
|
||||||
libasound2
|
libasound2
|
||||||
@@ -76,14 +75,11 @@ libcgi-pm-perl
|
|||||||
libcgraph6
|
libcgraph6
|
||||||
libcgroup1
|
libcgroup1
|
||||||
libcilkrts5
|
libcilkrts5
|
||||||
libclang-common-6.0-dev
|
|
||||||
libclang-common-8-dev
|
|
||||||
libclang-common-9-dev
|
libclang-common-9-dev
|
||||||
libclang-cpp9
|
libclang-cpp9
|
||||||
libclang1-6.0
|
|
||||||
libclang1-8
|
|
||||||
libcolord2
|
libcolord2
|
||||||
libcomerr2
|
libcomerr2
|
||||||
|
libcommon-sense-perl
|
||||||
libcroco3
|
libcroco3
|
||||||
libcryptsetup4
|
libcryptsetup4
|
||||||
libcups2
|
libcups2
|
||||||
@@ -154,8 +150,6 @@ libgbm-dev
|
|||||||
libgbm1
|
libgbm1
|
||||||
libgc1c2
|
libgc1c2
|
||||||
libgcc-5-dev
|
libgcc-5-dev
|
||||||
libgcc-7-dev
|
|
||||||
libgcc-8-dev
|
|
||||||
libgcc-9-dev
|
libgcc-9-dev
|
||||||
libgcc1
|
libgcc1
|
||||||
libgconf-2-4
|
libgconf-2-4
|
||||||
@@ -169,7 +163,6 @@ libgdk-pixbuf2.0-dev
|
|||||||
libgeoip1
|
libgeoip1
|
||||||
libgflags2v5
|
libgflags2v5
|
||||||
libgfortran-5-dev
|
libgfortran-5-dev
|
||||||
libgfortran-8-dev
|
|
||||||
libgfortran-9-dev
|
libgfortran-9-dev
|
||||||
libgfortran3
|
libgfortran3
|
||||||
libgfortran5
|
libgfortran5
|
||||||
@@ -260,7 +253,8 @@ libjs-jquery
|
|||||||
libjson-c2
|
libjson-c2
|
||||||
libjson-glib-1.0-0
|
libjson-glib-1.0-0
|
||||||
libjson-glib-1.0-common
|
libjson-glib-1.0-common
|
||||||
libjsoncpp1
|
libjson-perl
|
||||||
|
libjson-xs-perl
|
||||||
libjte1
|
libjte1
|
||||||
libk5crypto3
|
libk5crypto3
|
||||||
libkeyutils1
|
libkeyutils1
|
||||||
@@ -276,11 +270,8 @@ liblcms2-2
|
|||||||
liblcms2-dev
|
liblcms2-dev
|
||||||
libldap-2.4-2
|
libldap-2.4-2
|
||||||
libldb1
|
libldb1
|
||||||
liblldb-6.0
|
|
||||||
liblldb-8
|
|
||||||
liblldb-9
|
liblldb-9
|
||||||
libllvm6.0
|
libllvm6.0
|
||||||
libllvm8
|
|
||||||
libllvm9
|
libllvm9
|
||||||
liblmdb0
|
liblmdb0
|
||||||
liblocale-gettext-perl
|
liblocale-gettext-perl
|
||||||
@@ -474,7 +465,6 @@ libmpc3
|
|||||||
libmpdec2
|
libmpdec2
|
||||||
libmpfr4
|
libmpfr4
|
||||||
libmpx0
|
libmpx0
|
||||||
libmpx2
|
|
||||||
libmspack0
|
libmspack0
|
||||||
libmysqlclient-dev
|
libmysqlclient-dev
|
||||||
libmysqlclient20
|
libmysqlclient20
|
||||||
@@ -617,8 +607,6 @@ libssl-doc
|
|||||||
libssl1.0.0
|
libssl1.0.0
|
||||||
libssl1.1
|
libssl1.1
|
||||||
libstdc++-5-dev
|
libstdc++-5-dev
|
||||||
libstdc++-7-dev
|
|
||||||
libstdc++-8-dev
|
|
||||||
libstdc++-9-dev
|
libstdc++-9-dev
|
||||||
libstdc++6
|
libstdc++6
|
||||||
libstemmer0d
|
libstemmer0d
|
||||||
@@ -650,6 +638,7 @@ libtinyxml2-2v5
|
|||||||
libtk8.6
|
libtk8.6
|
||||||
libtool
|
libtool
|
||||||
libtsan0
|
libtsan0
|
||||||
|
libtypes-serialiser-perl
|
||||||
libubsan0
|
libubsan0
|
||||||
libubsan1
|
libubsan1
|
||||||
libucl1
|
libucl1
|
||||||
|
|||||||
@@ -1,63 +1,18 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
/* Basic Options */
|
"esModuleInterop": true,
|
||||||
// "incremental": true, /* Enable incremental compilation */
|
"lib": [
|
||||||
"target": "ES2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
|
"ESNext"
|
||||||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
],
|
||||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
"module": "commonjs",
|
||||||
// "checkJs": true, /* Report errors in .js files. */
|
"moduleResolution": "node",
|
||||||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
"noImplicitAny": true,
|
||||||
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
"outDir": "./lib",
|
||||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
"removeComments": true,
|
||||||
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
"rootDir": "./src",
|
||||||
// "outFile": "./", /* Concatenate and emit output to single file. */
|
"sourceMap": true,
|
||||||
"outDir": "./lib", /* Redirect output structure to the directory. */
|
"strict": true,
|
||||||
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
"target": "ESNext"
|
||||||
// "composite": true, /* Enable project compilation */
|
|
||||||
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
|
||||||
// "removeComments": true, /* Do not emit comments to output. */
|
|
||||||
// "noEmit": true, /* Do not emit outputs. */
|
|
||||||
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
||||||
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
||||||
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
||||||
|
|
||||||
/* Strict Type-Checking Options */
|
|
||||||
"strict": true, /* Enable all strict type-checking options. */
|
|
||||||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
||||||
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
||||||
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
||||||
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
||||||
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
||||||
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
||||||
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
||||||
|
|
||||||
/* Additional Checks */
|
|
||||||
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
||||||
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
||||||
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
||||||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
||||||
|
|
||||||
/* Module Resolution Options */
|
|
||||||
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
|
||||||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
|
||||||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
||||||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
||||||
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
||||||
// "types": [], /* Type declaration files to be included in compilation. */
|
|
||||||
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
||||||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
||||||
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
||||||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
||||||
|
|
||||||
/* Source Map Options */
|
|
||||||
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
||||||
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
||||||
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
||||||
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
||||||
|
|
||||||
/* Experimental Options */
|
|
||||||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
||||||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "**/*.test.ts"]
|
"exclude": ["__tests__", "lib", "node_modules"]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user