1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

chore: flarum-cli audit infra --fix

This commit is contained in:
Alexander Skvortsov
2022-03-11 18:02:51 -05:00
parent 693da58c41
commit 5fc0b4963a
96 changed files with 793 additions and 62 deletions

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -78,10 +78,12 @@
"require-dev": {
"flarum/testing": "^1.0.0"
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -5,13 +5,14 @@
"scripts": {
"dev": "webpack --mode development --watch",
"build": "webpack --mode production",
"analyze": "cross-env ANALYZER=true yarn build",
"analyze": "cross-env ANALYZER=true yarn run build",
"format": "prettier --write src",
"format-check": "prettier --check src",
"check-typings": "tsc --noEmit --emitDeclarationOnly false",
"check-typings-coverage": "typescript-coverage-report",
"clean-typings": "npx rimraf dist-typings && mkdir dist-typings",
"build-typings": "npm run clean-typings && tsc && [ -e src/@types ] && cp -r src/@types dist-typings/@types"
"build-typings": "yarn run clean-typings && [ -e src/@types ] && cp -r src/@types dist-typings/@types && tsc && yarn run post-build-typings",
"post-build-typings": "find dist-typings -type f -name '*.d.ts' -print0 | xargs -0 sed -i 's,../src/@types,@types,g'"
},
"devDependencies": {
"@flarum/prettier-config": "^1.0.0",

View File

@@ -19,6 +19,7 @@
<testsuites>
<testsuite name="Flarum Integration Tests">
<directory suffix="Test.php">./integration</directory>
<exclude>./integration/tmp</exclude>
</testsuite>
</testsuites>
</phpunit>

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -58,10 +58,12 @@
}
}
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -14,6 +14,6 @@
"build": "webpack --mode production",
"format": "prettier --write src",
"format-check": "prettier --check src",
"analyze": "cross-env ANALYZER=true yarn build"
"analyze": "cross-env ANALYZER=true yarn run build"
}
}

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -52,10 +52,12 @@
}
}
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -57,10 +57,12 @@
}
}
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -17,6 +17,6 @@
"build": "webpack --mode production",
"format": "prettier --write src",
"format-check": "prettier --check src",
"analyze": "cross-env ANALYZER=true yarn build"
"analyze": "cross-env ANALYZER=true yarn run build"
}
}

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -51,10 +51,12 @@
}
}
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -21,7 +21,7 @@
"build": "webpack --mode production",
"format": "prettier --write src",
"format-check": "prettier --check src",
"analyze": "cross-env ANALYZER=true yarn build",
"analyze": "cross-env ANALYZER=true yarn run build",
"clean-typings": "npx rimraf dist-typings && mkdir dist-typings",
"build-typings": "npm run clean-typings && cp -r src/@types dist-typings/@types && tsc",
"check-typings": "tsc --noEmit --emitDeclarationOnly false",

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -77,10 +77,12 @@
"flarum/tags": "*@dev",
"flarum/testing": "^1.0.0"
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -24,7 +24,7 @@
"build": "webpack --mode production",
"format": "prettier --write src",
"format-check": "prettier --check src",
"analyze": "cross-env ANALYZER=true yarn build",
"analyze": "cross-env ANALYZER=true yarn run build",
"clean-typings": "npx rimraf dist-typings && mkdir dist-typings",
"build-typings": "npm run clean-typings && cp -r src/@types dist-typings/@types && tsc",
"check-typings": "tsc --noEmit --emitDeclarationOnly false",

View File

@@ -19,6 +19,7 @@
<testsuites>
<testsuite name="Flarum Integration Tests">
<directory suffix="Test.php">./integration</directory>
<exclude>./integration/tmp</exclude>
</testsuite>
</testsuites>
</phpunit>

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -50,10 +50,12 @@
}
}
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -57,10 +57,12 @@
}
}
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -14,6 +14,6 @@
"build": "webpack --mode production",
"format": "prettier --write src",
"format-check": "prettier --check src",
"analyze": "cross-env ANALYZER=true yarn build"
"analyze": "cross-env ANALYZER=true yarn run build"
}
}

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -57,10 +57,12 @@
}
}
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -17,7 +17,7 @@
"build": "webpack --mode production",
"format": "prettier --write src",
"format-check": "prettier --check src",
"analyze": "cross-env ANALYZER=true yarn build",
"analyze": "cross-env ANALYZER=true yarn run build",
"clean-typings": "npx rimraf dist-typings && mkdir dist-typings",
"build-typings": "npm run clean-typings && cp -r src/@types dist-typings/@types && tsc",
"check-typings": "tsc --noEmit --emitDeclarationOnly false",

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -55,10 +55,12 @@
}
}
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -12,7 +12,7 @@
"build": "webpack --mode production",
"format": "prettier --write src",
"format-check": "prettier --check src",
"analyze": "cross-env ANALYZER=true yarn build"
"analyze": "cross-env ANALYZER=true yarn run build"
},
"packageManager": "yarn@3.1.1",
"devDependencies": {

View File

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -76,10 +76,12 @@
"flarum/core": "*@dev",
"flarum/testing": "^1.0.0"
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -14,6 +14,6 @@
"build": "webpack --mode production",
"format": "prettier --write src",
"format-check": "prettier --check src",
"analyze": "cross-env ANALYZER=true yarn build"
"analyze": "cross-env ANALYZER=true yarn run build"
}
}

View File

@@ -19,6 +19,7 @@
<testsuites>
<testsuite name="Flarum Integration Tests">
<directory suffix="Test.php">./integration</directory>
<exclude>./integration/tmp</exclude>
</testsuite>
</testsuites>
</phpunit>

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -76,10 +76,12 @@
"test:integration": "Runs all integration tests.",
"test:setup": "Sets up a database for use with integration tests. Execute this only once."
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -15,6 +15,6 @@
"build": "webpack --mode production",
"format": "prettier --write src",
"format-check": "prettier --check src",
"analyze": "cross-env ANALYZER=true yarn build"
"analyze": "cross-env ANALYZER=true yarn run build"
}
}

View File

@@ -19,6 +19,7 @@
<testsuites>
<testsuite name="Flarum Integration Tests">
<directory suffix="Test.php">./integration</directory>
<exclude>./integration/tmp</exclude>
</testsuite>
</testsuites>
</phpunit>

View File

@@ -97,8 +97,10 @@
},
"minimum-stability": "dev",
"prefer-stable": true,
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}]
}
]
}

View File

@@ -21,8 +21,9 @@
"ci": "yarn install --immutable --immutable-cache",
"analyze": "cross-env ANALYZER=true yarn run build",
"clean-typings": "npx rimraf dist-typings && mkdir dist-typings",
"build-typings": "yarn run clean-typings && tsc && [ -e src/@types ] && cp -r src/@types dist-typings/@types",
"build-typings": "yarn run clean-typings && [ -e src/@types ] && cp -r src/@types dist-typings/@types && tsc && yarn run post-build-typings",
"check-typings": "tsc --noEmit --emitDeclarationOnly false",
"check-typings-coverage": "typescript-coverage-report"
"check-typings-coverage": "typescript-coverage-report",
"post-build-typings": "find dist-typings -type f -name '*.d.ts' -print0 | xargs -0 sed -i 's,../src/@types,@types,g'"
}
}

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -61,10 +61,12 @@
}
}
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -5,13 +5,14 @@
"scripts": {
"dev": "webpack --mode development --watch",
"build": "webpack --mode production",
"analyze": "cross-env ANALYZER=true yarn build",
"analyze": "cross-env ANALYZER=true yarn run build",
"format": "prettier --write src",
"format-check": "prettier --check src",
"clean-typings": "npx rimraf dist-typings && mkdir dist-typings",
"build-typings": "npm run clean-typings && tsc && [ -e src/@types ] && cp -r src/@types dist-typings/@types",
"build-typings": "yarn run clean-typings && [ -e src/@types ] && cp -r src/@types dist-typings/@types && tsc && yarn run post-build-typings",
"check-typings": "tsc --noEmit --emitDeclarationOnly false",
"check-typings-coverage": "typescript-coverage-report"
"check-typings-coverage": "typescript-coverage-report",
"post-build-typings": "find dist-typings -type f -name '*.d.ts' -print0 | xargs -0 sed -i 's,../src/@types,@types,g'"
},
"devDependencies": {
"@flarum/prettier-config": "^1.0.0",

View File

@@ -78,10 +78,12 @@
"require-dev": {
"flarum/testing": "^1.0.0"
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -23,9 +23,10 @@
"format-check": "prettier --check src",
"analyze": "cross-env ANALYZER=true yarn run build",
"clean-typings": "npx rimraf dist-typings && mkdir dist-typings",
"build-typings": "yarn run clean-typings && tsc && [ -e src/@types ] && cp -r src/@types dist-typings/@types",
"build-typings": "yarn run clean-typings && [ -e src/@types ] && cp -r src/@types dist-typings/@types && tsc && yarn run post-build-typings",
"check-typings": "tsc --noEmit --emitDeclarationOnly false",
"check-typings-coverage": "typescript-coverage-report",
"ci": "yarn install --immutable --immutable-cache"
"ci": "yarn install --immutable --immutable-cache",
"post-build-typings": "find dist-typings -type f -name '*.d.ts' -print0 | xargs -0 sed -i 's,../src/@types,@types,g'"
}
}

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -57,10 +57,12 @@
}
}
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -14,6 +14,6 @@
"build": "webpack --mode production",
"format": "prettier --write src",
"format-check": "prettier --check src",
"analyze": "cross-env ANALYZER=true yarn build"
"analyze": "cross-env ANALYZER=true yarn run build"
}
}

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -57,10 +57,12 @@
}
}
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -14,6 +14,6 @@
"build": "webpack --mode production",
"format": "prettier --write src",
"format-check": "prettier --check src",
"analyze": "cross-env ANALYZER=true yarn build"
"analyze": "cross-env ANALYZER=true yarn run build"
}
}

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -57,10 +57,12 @@
}
}
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -6,7 +6,7 @@
"dev": "webpack --mode development --watch",
"build": "webpack --mode production",
"format": "prettier --write src",
"analyze": "cross-env ANALYZER=true yarn build",
"analyze": "cross-env ANALYZER=true yarn run build",
"format-check": "prettier --check src"
},
"devDependencies": {

View File

@@ -14,5 +14,6 @@ js/dist/* -diff
js/dist/* linguist-generated
js/dist-typings/* linguist-generated
js/yarn.lock -diff
js/package-lock.json -diff
* text=auto eol=lf

View File

@@ -81,10 +81,12 @@
"flarum/core": "*@dev",
"flarum/testing": "^1.0.0"
},
"repositories": [{
"repositories": [
{
"type": "path",
"url": "../../*/*"
}],
}
],
"minimum-stability": "dev",
"prefer-stable": true
}

View File

@@ -7,7 +7,7 @@
"scripts": {
"dev": "webpack --mode development --watch",
"build": "webpack --mode production",
"analyze": "cross-env ANALYZER=true yarn build"
"analyze": "cross-env ANALYZER=true yarn run build"
},
"devDependencies": {
"flarum-webpack-config": "^2.0.0",

View File

@@ -19,6 +19,7 @@
<testsuites>
<testsuite name="Flarum Integration Tests">
<directory suffix="Test.php">./integration</directory>
<exclude>./integration/tmp</exclude>
</testsuite>
</testsuites>
</phpunit>