Skip to content

Commit

Permalink
Adapt files to dev-kit (sonata-project#7139)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 authored May 1, 2021
1 parent d24b2f4 commit 85d5b0f
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 97 deletions.
18 changes: 18 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*!
* 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.
*/

/*
* DO NOT EDIT THIS FILE!
*
* It's auto-generated by sonata-project/dev-kit package.
*/

module.exports = {
presets: ['@babel/preset-env'],
};
3 changes: 0 additions & 3 deletions .babelrc.json

This file was deleted.

36 changes: 36 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*!
* 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.
*/

/*
* DO NOT EDIT THIS FILE!
*
* It's auto-generated by sonata-project/dev-kit package.
*/

module.exports = {
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],
},
};
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

11 changes: 10 additions & 1 deletion .github/workflows/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,26 @@ name: Frontend
on:
push:
branches:
- 3.x
- master
paths:
- assets/**
- webpack.config.js
- package.json
- yarn.lock
- .babelrc.js
- .eslintrc.js
- .stylelintrc.js
- postcss.config.js
pull_request:
paths:
- assets/**
- webpack.config.js
- package.json
- yarn.lock
- .babelrc.js
- .eslintrc.js
- .stylelintrc.js
- postcss.config.js

jobs:
webpack-encore:
Expand Down
60 changes: 1 addition & 59 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,62 +11,4 @@ phpunit.xml
phpstan.neon
/.phpunit.result.cache
/docs/_build/

# 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

yarn-error.log
28 changes: 28 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*!
* 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.
*/

/*
* DO NOT EDIT THIS FILE!
*
* It's auto-generated by sonata-project/dev-kit package.
*/

module.exports = {
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,
},
};
13 changes: 0 additions & 13 deletions .stylelintrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
* file that was distributed with this source code.
*/

/*
* DO NOT EDIT THIS FILE!
*
* It's auto-generated by sonata-project/dev-kit package.
*/

module.exports = {
plugins: {
autoprefixer: {},
Expand Down

0 comments on commit 85d5b0f

Please sign in to comment.