-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All the meta things: screenshots, Readmes, GH actions, packaging
Signed-off-by: Arthur Schiwon <[email protected]>
- Loading branch information
Showing
19 changed files
with
3,748 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 4 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
globals: { | ||
appName: true, | ||
}, | ||
extends: [ | ||
'@nextcloud' | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/js/* binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- stable* | ||
|
||
jobs: | ||
php: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php-versions: ['7.3', '7.4'] | ||
|
||
name: php${{ matrix.php-versions }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up php ${{ matrix.php-versions }} | ||
uses: shivammathur/setup-php@v1 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
coverage: none | ||
|
||
- name: Lint | ||
run: composer run lint | ||
|
||
php-cs-fixer: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php-versions: ['7.4'] | ||
|
||
name: cs php${{ matrix.php-versions }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up php | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: composer i | ||
|
||
- name: Run coding standards check | ||
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 ) | ||
|
||
node: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-versions: [12.x] | ||
|
||
name: eslint node${{ matrix.node-versions }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up node ${{ matrix.node-versions }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-versions }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
stylelint: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-versions: [12.x] | ||
|
||
name: stylelint node${{ matrix.node-versions }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up node ${{ matrix.node-versions }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-versions }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Lint | ||
run: npm run stylelint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Node | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- stable* | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-versions: [12.x] | ||
|
||
name: node${{ matrix.node-versions }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up node ${{ matrix.node-versions }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-versions }} | ||
|
||
- name: Install dependencies & build | ||
run: | | ||
npm ci | ||
npm run build --if-present | ||
- name: Check webpack build changes | ||
run: | | ||
bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && git status && exit 1 )" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
node_modules | ||
js | ||
.php_cs.cache | ||
/build/ | ||
/vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
composer.* | ||
.drone.yml | ||
.editorconfig | ||
.eslintrc.js | ||
.git | ||
.gitattributes | ||
.github | ||
.gitignore | ||
issue_template.md | ||
krankerl.toml | ||
Makefile | ||
.nextcloudignore | ||
node_modules | ||
.php_cs.cache | ||
.php_cs.dist | ||
phpunit.* | ||
package.json | ||
package-lock.json | ||
screenshots | ||
.scrutinizer.yml | ||
src | ||
stylelint.config.js | ||
tests | ||
.travis.yml | ||
.tx | ||
webpack.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require_once './vendor/autoload.php'; | ||
|
||
use Nextcloud\CodingStandard\Config; | ||
|
||
$config = new Config(); | ||
$config | ||
->getFinder() | ||
->notPath('build') | ||
->notPath('l10n') | ||
->notPath('src') | ||
->notPath('vendor') | ||
->in(__DIR__); | ||
return $config; |
Oops, something went wrong.