Skip to content

Commit

Permalink
chore: lint, ci and tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Sep 11, 2023
1 parent 9208c7f commit 3672c17
Show file tree
Hide file tree
Showing 13 changed files with 5,734 additions and 426 deletions.
28 changes: 28 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# For more information about the properties used in
# this file, please see the EditorConfig documentation:
# http://editorconfig.org/

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,json}]
# The indent size used in the `package.json` file cannot be changed
# https://github.com/npm/npm/pull/3180#issuecomment-16336516
indent_size = 2

[composer.json]
indent_size = 4

[*.{js,vue,scss}]
indent_size = 2

[Makefile]
indent_style = tab
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/tests export-ignore
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:

jobs:
ci:
name: CI
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/vendor
/framework
/build
/composer.lock
/public
.phpunit.result.cache
8 changes: 0 additions & 8 deletions .php_cs

This file was deleted.

9 changes: 0 additions & 9 deletions _config.php

This file was deleted.

3 changes: 3 additions & 0 deletions _config/extensions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SilverStripe\CMS\Controllers\ContentController:
extensions:
- Heyday\HashPath\HashPathExtension
44 changes: 27 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
{
"name": "heyday/silverstripe-hashpath",
"type": "silverstripe-vendormodule",
"description": "Hash path provides a function in SilverStripe templates which given a path to an asset returns a path including a hash of the asset",
"license": "MIT",
"autoload": {
"psr-4": {
"Heyday\\HashPath\\": "src/"
"name": "heyday/silverstripe-hashpath",
"type": "silverstripe-vendormodule",
"description": "Hash path provides a function in SilverStripe templates which given a path to an asset returns a path including a hash of the asset",
"license": "MIT",
"autoload": {
"psr-4": {
"Heyday\\HashPath\\": "src/",
"Heyday\\HashPath\\Tests\\": "tests/"
}
},
"support": {
"issues": "https://github.com/heyday/silverstripe-hashpath/issues",
"source": "https://github.com/heyday/silverstripe-hashpath"
},
"require": {
"silverstripe/framework": "^5"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"prefer-stable": true,
"minimum-stability": "dev",
"config": {
"allow-plugins": {
"composer/installers": true,
"silverstripe/vendor-plugin": true
}
}
},
"support": {
"issues": "https://github.com/heyday/silverstripe-hashpath/issues",
"source": "https://github.com/heyday/silverstripe-hashpath"
},
"require": {
"silverstripe/framework": "^4 || ^5"
},
"prefer-stable": true,
"minimum-stability": "dev"
}
Loading

0 comments on commit 3672c17

Please sign in to comment.