Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/POC/jquery3-upgrade'
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Makarenko committed Apr 27, 2022
2 parents c16c083 + 3efd950 commit 53e46bd
Show file tree
Hide file tree
Showing 55 changed files with 45,798 additions and 17,974 deletions.
22 changes: 5 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
language: php

php:
- 5.5
- 5.6
- 7.2
- hhvm

matrix:
fast_finish: true
include:
- php: 5.6
env: SYMFONY_VERSION=2.6.*
- php: 5.6
env: SYMFONY_VERSION=2.7.*
- php: 5.6
env: SYMFONY_VERSION=2.8.*
allow_failures:
- php: hhvm

Expand All @@ -25,16 +17,12 @@ cache:

before_install:
- composer selfupdate
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;

install: composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
install: composer install --prefer-dist --no-interaction $COMPOSER_FLAGS

script:
- phpunit --coverage-text --coverage-clover=coverage.clover
- ./vendor/phpunit/phpunit/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

notifications:
email: [email protected]
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
2 changes: 1 addition & 1 deletion DataTable/Table/AbstractTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function getFilterForm()
if (null===$this->filterForm) {
$this->filterForm = $this->buildFilterForm(
$this->formFactory->createNamedBuilder($this->getTableId().'_filter')
->add('dofilter', 'button')
->add('dofilter', \Symfony\Component\Form\Extension\Core\Type\ButtonType::class)
)->getForm();
}

Expand Down
12 changes: 6 additions & 6 deletions Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:

crossKnowledge.datatable.twig_extension:
class: CrossKnowledge\DataTableBundle\Twig\DataTableExtension
arguments: [@crossknowledge_datatable.twig_renderer]
arguments: ['@crossknowledge_datatable.twig_renderer']
tags:
- { name: twig.extension }

Expand All @@ -17,10 +17,10 @@ services:
crossknowledge_datatable.classic_table:
abstract: true
arguments:
- @form.factory
- @security.authorization_checker
- @router
- @crossknowledge_datatable.default_formatter
- '@form.factory'
- '@security.authorization_checker'
- '@router'
- '@crossknowledge_datatable.default_formatter'

crossknowledge_datatable.default_renderer:
alias: crossknowledge_datatable.twig_renderer
Expand All @@ -30,5 +30,5 @@ services:

crossknowledge_datatable.twig_renderer:
class: CrossKnowledge\DataTableBundle\DataTable\Renderer\TwigRenderer
arguments: [@twig]
arguments: ['@twig']

9 changes: 9 additions & 0 deletions Resources/gulp/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [
"@babel/react",
"@babel/env"
],
"plugins": [
"@babel/plugin-proposal-class-properties"
]
}
2 changes: 1 addition & 1 deletion Resources/gulp/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"bower_components"
],
"dependencies": {
"datatables": "1.10.10"
"datatables.net": "1.11.5"
}
}
28 changes: 9 additions & 19 deletions Resources/gulp/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var debug = require('gulp-debug');
var plumber = require('gulp-plumber');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var sass = require('gulp-sass');
var sass = require('gulp-sass')(require('sass'));

var browserify = require('browserify');
var babelify = require('babelify');
Expand Down Expand Up @@ -45,7 +45,7 @@ gulp.task('scripts-ie8', function () {

var tmpFile = moduleconfig.tmp + '/main.js';

return browserify(tmpFile, {debug: true}).transform("babelify", {presets: ["es2015"]})
return browserify(tmpFile, {debug: true}).transform("babelify", {presets: ["@babel/env"]})
.bundle().on('error', function (err) {
gutil.log('Error in ' + tmpFile + ':');
gutil.log(gutil.colors.red(err));
Expand All @@ -59,7 +59,7 @@ gulp.task('scripts-ie8', function () {
gulp.task('scripts-other', function () {
var sourceFile = moduleconfig.srcRoot + '/scripts/main.js';

return browserify(sourceFile, {debug: true}).transform("babelify", {presets: ["es2015"]})
return browserify(sourceFile, {debug: true}).transform("babelify", {presets: ["@babel/env"]})
.bundle().on('error', function (err) {
gutil.log('Error in ' + sourceFile + ':');
gutil.log(gutil.colors.red(err));
Expand All @@ -73,8 +73,7 @@ gulp.task('scripts-other', function () {
});


gulp.task('scripts', ['scripts-ie8', 'scripts-other']);

gulp.task('scripts', gulp.series('scripts-ie8', 'scripts-other'));

gulp.task('standalone-libs', function() {
var standaloneVendors = ['datatables'];
Expand Down Expand Up @@ -109,20 +108,9 @@ gulp.task('sass', function () {
.pipe(gulp.dest(moduleconfig.compiledRoot + '/css'))
});

gulp.task('build', function (callback) {
runSequence(
'clean',
'clean-tmp',
['sass', 'scripts', 'standalone-libs'],
'clean-tmp',
callback
);
}
);

gulp.task('watch', function () {
gulp.watch(moduleconfig.styles, ['sass']);
gulp.watch(moduleconfig.scripts, ['scripts']);
gulp.watch(moduleconfig.styles, gulp.series('sass'));
gulp.watch(moduleconfig.scripts, gulp.series('scripts'));
});

gulp.task('clean', function () {
Expand All @@ -137,4 +125,6 @@ gulp.task('clean-tmp', function () {
});
});

gulp.task('default', ['build', 'watch']);
gulp.task('build', gulp.series('clean', 'clean-tmp', ['sass', 'scripts', 'standalone-libs'], 'clean-tmp'));

gulp.task('default', gulp.series('build', 'watch'));
Loading

0 comments on commit 53e46bd

Please sign in to comment.