mirror of
https://github.com/flarum/framework.git
synced 2025-04-11 09:56:14 +08:00
chore: flarum-cli audit infra --fix
This commit is contained in:
parent
1bb5c2a609
commit
99033734e2
@ -15,5 +15,5 @@ indent_size = 2
|
|||||||
[*.{diff,md}]
|
[*.{diff,md}]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
[*.php]
|
[*.{php,xml,json}]
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
15
extensions/embed/.gitattributes
vendored
15
extensions/embed/.gitattributes
vendored
@ -1,5 +1,18 @@
|
|||||||
.gitattributes export-ignore
|
.gitattributes export-ignore
|
||||||
.gitignore export-ignore
|
.gitignore export-ignore
|
||||||
|
.gitmodules export-ignore
|
||||||
|
.github export-ignore
|
||||||
|
.travis export-ignore
|
||||||
.travis.yml export-ignore
|
.travis.yml export-ignore
|
||||||
|
.editorconfig export-ignore
|
||||||
|
.styleci.yml export-ignore
|
||||||
|
|
||||||
js/*/dist/*.js -diff
|
phpunit.xml export-ignore
|
||||||
|
tests export-ignore
|
||||||
|
|
||||||
|
js/dist/* -diff
|
||||||
|
js/dist/* linguist-generated
|
||||||
|
js/dist-typings/* linguist-generated
|
||||||
|
js/yarn.lock -diff
|
||||||
|
|
||||||
|
* text=auto eol=lf
|
||||||
|
15
extensions/embed/.github/workflows/backend.yml
vendored
Normal file
15
extensions/embed/.github/workflows/backend.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
name: Embed PHP
|
||||||
|
|
||||||
|
on: [workflow_dispatch, push, pull_request]
|
||||||
|
|
||||||
|
# The reusable workflow definitions will be moved to the `flarum/framework` repo soon.
|
||||||
|
# This will break your current script.
|
||||||
|
# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure.
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run:
|
||||||
|
uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main
|
||||||
|
with:
|
||||||
|
enable_backend_testing: false
|
||||||
|
|
||||||
|
backend_directory: .
|
17
extensions/embed/.github/workflows/build.yml
vendored
17
extensions/embed/.github/workflows/build.yml
vendored
@ -1,17 +0,0 @@
|
|||||||
name: JavaScript
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- uses: flarum/action-build@master
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
21
extensions/embed/.github/workflows/frontend.yml
vendored
Normal file
21
extensions/embed/.github/workflows/frontend.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: Embed JS
|
||||||
|
|
||||||
|
on: [workflow_dispatch, push, pull_request]
|
||||||
|
|
||||||
|
# The reusable workflow definitions will be moved to the `flarum/framework` repo soon.
|
||||||
|
# This will break your current script.
|
||||||
|
# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure.
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run:
|
||||||
|
uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main
|
||||||
|
with:
|
||||||
|
enable_bundlewatch: false
|
||||||
|
enable_prettier: true
|
||||||
|
enable_typescript: false
|
||||||
|
|
||||||
|
frontend_directory: ./js
|
||||||
|
main_git_branch: master
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
|
10
extensions/embed/.gitignore
vendored
10
extensions/embed/.gitignore
vendored
@ -1,6 +1,12 @@
|
|||||||
/vendor
|
/vendor
|
||||||
|
composer.lock
|
||||||
composer.phar
|
composer.phar
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
bower_components
|
tests/.phpunit.result.cache
|
||||||
node_modules
|
/tests/integration/tmp
|
||||||
|
.vagrant
|
||||||
|
.idea/*
|
||||||
|
.vscode
|
||||||
|
js/coverage-ts
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
"name": "flarum/embed",
|
"name": "flarum/embed",
|
||||||
"description": "Embed Flarum discussions as comments for your blog.",
|
"description": "Embed Flarum discussions as comments for your blog.",
|
||||||
"type": "flarum-extension",
|
"type": "flarum-extension",
|
||||||
"keywords": ["discussion"],
|
"keywords": [
|
||||||
|
"discussion"
|
||||||
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/flarum/core/issues",
|
"issues": "https://github.com/flarum/core/issues",
|
||||||
@ -36,6 +38,23 @@
|
|||||||
"backgroundColor": "#B9D233",
|
"backgroundColor": "#B9D233",
|
||||||
"color": "#fff"
|
"color": "#fff"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"flarum-cli": {
|
||||||
|
"modules": {
|
||||||
|
"admin": false,
|
||||||
|
"forum": true,
|
||||||
|
"js": true,
|
||||||
|
"jsCommon": false,
|
||||||
|
"css": true,
|
||||||
|
"gitConf": true,
|
||||||
|
"githubActions": true,
|
||||||
|
"prettier": true,
|
||||||
|
"typescript": false,
|
||||||
|
"bundlewatch": false,
|
||||||
|
"backendTesting": false,
|
||||||
|
"editorConfig": true,
|
||||||
|
"styleci": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
9
extensions/embed/js/.gitignore
vendored
Normal file
9
extensions/embed/js/.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
.pnp.*
|
||||||
|
.yarn/*
|
||||||
|
!.yarn/patches
|
||||||
|
!.yarn/plugins
|
||||||
|
!.yarn/releases
|
||||||
|
!.yarn/sdks
|
||||||
|
!.yarn/versions
|
||||||
|
|
||||||
|
node_modules
|
@ -1,10 +1 @@
|
|||||||
/*
|
|
||||||
* This file is part of Flarum.
|
|
||||||
*
|
|
||||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
|
||||||
*
|
|
||||||
* For the full copyright and license information, please view the LICENSE
|
|
||||||
* file that was distributed with this source code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
export * from './src/forum';
|
export * from './src/forum';
|
||||||
|
11611
extensions/embed/js/package-lock.json
generated
11611
extensions/embed/js/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -3,20 +3,20 @@
|
|||||||
"name": "@flarum/embed",
|
"name": "@flarum/embed",
|
||||||
"prettier": "@flarum/prettier-config",
|
"prettier": "@flarum/prettier-config",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@flarum/prettier-config": "^1.0.0",
|
"iframe-resizer": "^4.3.2"
|
||||||
"iframe-resizer": "^4.3.2",
|
|
||||||
"flarum-tsconfig": "^1.0.2",
|
|
||||||
"flarum-webpack-config": "^1.0.0",
|
|
||||||
"webpack": "^4.46.0",
|
|
||||||
"webpack-cli": "^4.9.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"prettier": "^2.5.1"
|
"prettier": "^2.5.1",
|
||||||
|
"flarum-webpack-config": "^2.0.0",
|
||||||
|
"webpack": "^5.65.0",
|
||||||
|
"webpack-cli": "^4.9.1",
|
||||||
|
"@flarum/prettier-config": "^1.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "webpack --mode development --watch",
|
"dev": "webpack --mode development --watch",
|
||||||
"build": "webpack --mode production",
|
"build": "webpack --mode production",
|
||||||
"format": "prettier --write src",
|
"format": "prettier --write src",
|
||||||
"format-check": "prettier --check src"
|
"format-check": "prettier --check src",
|
||||||
|
"analyze": "cross-env ANALYZER=true yarn build"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
// Use Flarum's tsconfig as a starting point
|
|
||||||
"extends": "flarum-tsconfig",
|
|
||||||
// This will match all .ts, .tsx, .d.ts, .js, .jsx files in your `src` folder
|
|
||||||
// and also tells your Typescript server to read core's global typings for
|
|
||||||
// access to `dayjs` and `$` in the global namespace.
|
|
||||||
"include": ["src/**/*", "../vendor/flarum/core/js/dist-typings/@types/**/*"],
|
|
||||||
"compilerOptions": {
|
|
||||||
// This will output typings to `dist-typings`
|
|
||||||
"declarationDir": "./dist-typings",
|
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
|
||||||
"flarum/*": ["../vendor/flarum/core/js/dist-typings/*"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,3 +1 @@
|
|||||||
const config = require('flarum-webpack-config');
|
module.exports = require('flarum-webpack-config')();
|
||||||
|
|
||||||
module.exports = config();
|
|
||||||
|
2843
extensions/embed/js/yarn.lock
Normal file
2843
extensions/embed/js/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user