-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default configuration when using assets
- Loading branch information
1 parent
d9010be
commit eaeb0d4
Showing
9 changed files
with
189 additions
and
61 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 |
---|---|---|
@@ -1,74 +1,73 @@ | ||
admin-bundle: | ||
phpstan: true | ||
psalm: true | ||
|
||
custom_gitignore_part: | | ||
# clean up some non bower ready package | ||
src/Resources/public/vendor/admin-lte/bootstrap | ||
src/Resources/public/vendor/admin-lte/build | ||
src/Resources/public/vendor/admin-lte/dist/img | ||
!src/Resources/public/vendor/admin-lte/dist/img/boxed-bg.jpg # Only image called in AdminLTE.css | ||
src/Resources/public/vendor/admin-lte/dist/js/app.js | ||
src/Resources/public/vendor/admin-lte/dist/js/demo.js | ||
src/Resources/public/vendor/admin-lte/dist/js/pages | ||
src/Resources/public/vendor/admin-lte/documentation | ||
src/Resources/public/vendor/admin-lte/pages | ||
src/Resources/public/vendor/admin-lte/plugins | ||
src/Resources/public/vendor/admin-lte/*.html | ||
src/Resources/public/vendor/admin-lte/Gruntfile.js | ||
src/Resources/public/vendor/iCheck/skins/all.css | ||
src/Resources/public/vendor/iCheck/skins/*/* | ||
!src/Resources/public/vendor/iCheck/skins/square/blue.css | ||
!src/Resources/public/vendor/iCheck/skins/square/blue.png | ||
!src/Resources/public/vendor/iCheck/skins/square/[email protected] | ||
src/Resources/public/vendor/iCheck/icheck.js | ||
src/Resources/public/vendor/slimScroll/examples | ||
src/Resources/public/vendor/slimScroll/jquery.slimscroll.js | ||
src/Resources/public/vendor/bootstrap/grunt | ||
src/Resources/public/vendor/bootstrap/less | ||
src/Resources/public/vendor/bootstrap/test-infra | ||
src/Resources/public/vendor/bootstrap/Gruntfile.js | ||
src/Resources/public/vendor/jqueryui/themes/black-tie | ||
src/Resources/public/vendor/jqueryui/themes/blitzer | ||
src/Resources/public/vendor/jqueryui/themes/cupertino | ||
src/Resources/public/vendor/jqueryui/themes/dark-hive | ||
src/Resources/public/vendor/jqueryui/themes/dot-luv | ||
src/Resources/public/vendor/jqueryui/themes/eggplant | ||
src/Resources/public/vendor/jqueryui/themes/excite-bike | ||
src/Resources/public/vendor/jqueryui/themes/hot-sneaks | ||
src/Resources/public/vendor/jqueryui/themes/humanity | ||
src/Resources/public/vendor/jqueryui/themes/le-frog | ||
src/Resources/public/vendor/jqueryui/themes/mint-choc | ||
src/Resources/public/vendor/jqueryui/themes/overcast | ||
src/Resources/public/vendor/jqueryui/themes/pepper-grinder | ||
src/Resources/public/vendor/jqueryui/themes/redmond | ||
src/Resources/public/vendor/jqueryui/themes/smoothness | ||
src/Resources/public/vendor/jqueryui/themes/south-street | ||
src/Resources/public/vendor/jqueryui/themes/start | ||
src/Resources/public/vendor/jqueryui/themes/sunny | ||
src/Resources/public/vendor/jqueryui/themes/swanky-purse | ||
src/Resources/public/vendor/jqueryui/themes/trontastic | ||
src/Resources/public/vendor/jqueryui/themes/ui-darkness | ||
src/Resources/public/vendor/jqueryui/themes/ui-lightness | ||
src/Resources/public/vendor/jqueryui/themes/vader | ||
src/Resources/public/vendor/jquery/src | ||
src/Resources/public/vendor/jquery.scrollTo/demo | ||
src/Resources/public/vendor/jquery.scrollTo/tests | ||
branches: | ||
master: | ||
php: ['7.3', '7.4', '8.0'] | ||
assets: true | ||
variants: | ||
symfony/symfony: ['4.4', '5.2'] | ||
sonata-project/block-bundle: ['4'] | ||
3.x: | ||
php: ['7.3', '7.4', '8.0'] | ||
custom_gitignore_part: | | ||
# clean up some non bower ready package | ||
src/Resources/public/vendor/admin-lte/bootstrap | ||
src/Resources/public/vendor/admin-lte/build | ||
src/Resources/public/vendor/admin-lte/dist/img | ||
!src/Resources/public/vendor/admin-lte/dist/img/boxed-bg.jpg # Only image called in AdminLTE.css | ||
src/Resources/public/vendor/admin-lte/dist/js/app.js | ||
src/Resources/public/vendor/admin-lte/dist/js/demo.js | ||
src/Resources/public/vendor/admin-lte/dist/js/pages | ||
src/Resources/public/vendor/admin-lte/documentation | ||
src/Resources/public/vendor/admin-lte/pages | ||
src/Resources/public/vendor/admin-lte/plugins | ||
src/Resources/public/vendor/admin-lte/*.html | ||
src/Resources/public/vendor/admin-lte/Gruntfile.js | ||
src/Resources/public/vendor/iCheck/skins/all.css | ||
src/Resources/public/vendor/iCheck/skins/*/* | ||
!src/Resources/public/vendor/iCheck/skins/square/blue.css | ||
!src/Resources/public/vendor/iCheck/skins/square/blue.png | ||
!src/Resources/public/vendor/iCheck/skins/square/[email protected] | ||
src/Resources/public/vendor/iCheck/icheck.js | ||
src/Resources/public/vendor/slimScroll/examples | ||
src/Resources/public/vendor/slimScroll/jquery.slimscroll.js | ||
src/Resources/public/vendor/bootstrap/grunt | ||
src/Resources/public/vendor/bootstrap/less | ||
src/Resources/public/vendor/bootstrap/test-infra | ||
src/Resources/public/vendor/bootstrap/Gruntfile.js | ||
src/Resources/public/vendor/jqueryui/themes/black-tie | ||
src/Resources/public/vendor/jqueryui/themes/blitzer | ||
src/Resources/public/vendor/jqueryui/themes/cupertino | ||
src/Resources/public/vendor/jqueryui/themes/dark-hive | ||
src/Resources/public/vendor/jqueryui/themes/dot-luv | ||
src/Resources/public/vendor/jqueryui/themes/eggplant | ||
src/Resources/public/vendor/jqueryui/themes/excite-bike | ||
src/Resources/public/vendor/jqueryui/themes/hot-sneaks | ||
src/Resources/public/vendor/jqueryui/themes/humanity | ||
src/Resources/public/vendor/jqueryui/themes/le-frog | ||
src/Resources/public/vendor/jqueryui/themes/mint-choc | ||
src/Resources/public/vendor/jqueryui/themes/overcast | ||
src/Resources/public/vendor/jqueryui/themes/pepper-grinder | ||
src/Resources/public/vendor/jqueryui/themes/redmond | ||
src/Resources/public/vendor/jqueryui/themes/smoothness | ||
src/Resources/public/vendor/jqueryui/themes/south-street | ||
src/Resources/public/vendor/jqueryui/themes/start | ||
src/Resources/public/vendor/jqueryui/themes/sunny | ||
src/Resources/public/vendor/jqueryui/themes/swanky-purse | ||
src/Resources/public/vendor/jqueryui/themes/trontastic | ||
src/Resources/public/vendor/jqueryui/themes/ui-darkness | ||
src/Resources/public/vendor/jqueryui/themes/ui-lightness | ||
src/Resources/public/vendor/jqueryui/themes/vader | ||
src/Resources/public/vendor/jquery/src | ||
src/Resources/public/vendor/jquery.scrollTo/demo | ||
src/Resources/public/vendor/jquery.scrollTo/tests | ||
variants: | ||
symfony/symfony: ['4.4'] | ||
sonata-project/block-bundle: ['3'] | ||
|
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
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
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
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,3 @@ | ||
{ | ||
"presets": ["@babel/preset-env"] | ||
} |
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,21 @@ | ||
{ | ||
"parser": "@babel/eslint-parser", | ||
"extends": ["airbnb-base"], | ||
"env": { | ||
"browser": true, | ||
"jquery": true | ||
}, | ||
"plugins": ["header"], | ||
"rules": { | ||
"header/header": [2, "block", [ | ||
"!", | ||
" * This file is part of the Sonata Project package.", | ||
" *", | ||
" * (c) Thomas Rabaix <[email protected]>", | ||
" *", | ||
" * For the full copyright and license information, please view the LICENSE", | ||
" * file that was distributed with this source code.", | ||
" " | ||
], 2] | ||
} | ||
} |
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,48 @@ | ||
# DO NOT EDIT THIS FILE! | ||
# | ||
# It's auto-generated by sonata-project/dev-kit package. | ||
|
||
name: Frontend | ||
|
||
on: | ||
push: | ||
branches: | ||
{% for branch in project.branchesReverse|filter(branch => branch.usesAssets) %} | ||
- {{ branch.name }} | ||
{% endfor %} | ||
paths: | ||
- assets/** | ||
- package.json | ||
- yarn.lock | ||
pull_request: | ||
paths: | ||
- assets/** | ||
- package.json | ||
- yarn.lock | ||
|
||
jobs: | ||
webpack-encore: | ||
name: Webpack Encore | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Node 14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Install NPM dependencies | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: Run Eslint | ||
run: yarn run eslint assets/js | ||
|
||
- name: Run Stylelint | ||
run: yarn run stylelint assets/scss | ||
|
||
- name: Run Webpack Encore | ||
run: yarn encore production |
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
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,13 @@ | ||
{ | ||
"extends": "stylelint-config-standard", | ||
"plugins": ["stylelint-scss", "stylelint-order"], | ||
"rules": { | ||
"at-rule-no-unknown": null, | ||
"scss/at-rule-no-unknown": true, | ||
"order/order": [ | ||
"custom-properties", | ||
"declarations" | ||
], | ||
"order/properties-alphabetical-order": true | ||
} | ||
} |