Skip to content

Commit 1b9d0f1

Browse files
committed
chore: flarum-cli audit infra --fix
1 parent f08274a commit 1b9d0f1

File tree

20 files changed

+2482
-11673
lines changed

20 files changed

+2482
-11673
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ indent_size = 2
1515
[*.{diff,md}]
1616
trim_trailing_whitespace = false
1717

18-
[*.php]
18+
[*.{php,xml,json}]
1919
indent_size = 4

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
.gitattributes export-ignore
22
.gitignore export-ignore
3+
.gitmodules export-ignore
4+
.github export-ignore
5+
.travis export-ignore
36
.travis.yml export-ignore
7+
.editorconfig export-ignore
8+
.styleci.yml export-ignore
9+
10+
phpunit.xml export-ignore
11+
tests export-ignore
412

513
js/dist/* -diff
14+
js/dist/* linguist-generated
15+
js/dist-typings/* linguist-generated
16+
js/yarn.lock -diff
17+
18+
* text=auto eol=lf

.github/workflows/backend.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Statistics PHP
2+
3+
on: [workflow_dispatch, push, pull_request]
4+
5+
# The reusable workflow definitions will be moved to the `flarum/framework` repo soon.
6+
# This will break your current script.
7+
# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure.
8+
9+
jobs:
10+
run:
11+
uses: flarum/.github/.github/workflows/REUSABLE_backend.yml@main
12+
with:
13+
enable_backend_testing: true
14+
15+
backend_directory: .

.github/workflows/build.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/frontend.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Statistics JS
2+
3+
on: [workflow_dispatch, push, pull_request]
4+
5+
# The reusable workflow definitions will be moved to the `flarum/framework` repo soon.
6+
# This will break your current script.
7+
# When this happens, run `flarum-cli audit infra --fix` to update your infrastructure.
8+
9+
jobs:
10+
run:
11+
uses: flarum/.github/.github/workflows/REUSABLE_frontend.yml@main
12+
with:
13+
enable_bundlewatch: false
14+
enable_prettier: true
15+
enable_typescript: false
16+
17+
frontend_directory: ./js
18+
main_git_branch: master
19+
20+
secrets:
21+
bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
/vendor
2+
composer.lock
23
composer.phar
4+
35
.DS_Store
46
Thumbs.db
5-
node_modules
6-
js/dist/*
7+
tests/.phpunit.result.cache
8+
/tests/integration/tmp
9+
.vagrant
10+
.idea/*
11+
.vscode
12+
js/coverage-ts

composer.json

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"name": "flarum/statistics",
33
"description": "Add a basic statistics widget on the Dashboard.",
44
"type": "flarum-extension",
5-
"keywords": ["administration"],
5+
"keywords": [
6+
"administration"
7+
],
68
"license": "MIT",
79
"support": {
810
"issues": "https://github.com/flarum/core/issues",
@@ -36,6 +38,41 @@
3638
"backgroundColor": "#6932d1",
3739
"color": "#fff"
3840
}
41+
},
42+
"flarum-cli": {
43+
"modules": {
44+
"admin": true,
45+
"forum": false,
46+
"js": true,
47+
"jsCommon": false,
48+
"css": true,
49+
"gitConf": true,
50+
"githubActions": true,
51+
"prettier": true,
52+
"typescript": false,
53+
"bundlewatch": false,
54+
"backendTesting": true,
55+
"editorConfig": true,
56+
"styleci": true
57+
}
3958
}
59+
},
60+
"scripts": {
61+
"test": [
62+
"@test:unit",
63+
"@test:integration"
64+
],
65+
"test:unit": "phpunit -c tests/phpunit.unit.xml",
66+
"test:integration": "phpunit -c tests/phpunit.integration.xml",
67+
"test:setup": "@php tests/integration/setup.php"
68+
},
69+
"scripts-descriptions": {
70+
"test": "Runs all tests.",
71+
"test:unit": "Runs all unit tests.",
72+
"test:integration": "Runs all integration tests.",
73+
"test:setup": "Sets up a database for use with integration tests. Execute this only once."
74+
},
75+
"require-dev": {
76+
"flarum/testing": "^1.0.0"
4077
}
4178
}

js/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.pnp.*
2+
.yarn/*
3+
!.yarn/patches
4+
!.yarn/plugins
5+
!.yarn/releases
6+
!.yarn/sdks
7+
!.yarn/versions
8+
9+
node_modules

js/admin.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1 @@
1-
/*
2-
* This file is part of Flarum.
3-
*
4-
* (c) Toby Zerner <toby.zerner@gmail.com>
5-
*
6-
* For the full copyright and license information, please view the LICENSE
7-
* file that was distributed with this source code.
8-
*/
9-
101
export * from './src/admin';

0 commit comments

Comments
 (0)