Skip to content

Commit

Permalink
Merge pull request #1699 from watchdogpolska/dev
Browse files Browse the repository at this point in the history
v1.2.20 donate popup and frontend updates
  • Loading branch information
PiotrIw authored Feb 6, 2025
2 parents 735f3a5 + 3dc9043 commit 949c545
Show file tree
Hide file tree
Showing 14 changed files with 310 additions and 278 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ repos:
args:
- --py3-only
- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 6.0.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.31.0
rev: 0.31.1
hooks:
- id: check-github-workflows
- id: check-readthedocs
Expand All @@ -41,7 +41,7 @@ repos:
hooks:
- id: yamllint
- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black
args:
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ build:
docker compose build web

gulp:
docker compose run web python manage.py collectstatic --no-input
docker compose up gulp
docker compose run web python manage.py collectstatic --no-input
docker compose run --remove-orphans web python manage.py collectstatic --no-input
docker compose up --remove-orphans gulp
docker compose run --remove-orphans web python manage.py collectstatic --no-input

test: wait_mysql
docker compose exec -t db mysql --user=root --password=password -e "DROP DATABASE IF EXISTS test_poradnia;"
Expand Down
34 changes: 9 additions & 25 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ var fs = require('fs'),
concat = require('gulp-concat'),
livereload = require('gulp-livereload'),
cleanCSS = require('gulp-clean-css'),
prefix = require('gulp-autoprefixer'),
rename = require('gulp-rename'),
sass = require('gulp-sass')(require('sass')),
uglify = require('gulp-uglify'),
postcss = require('gulp-postcss'),
autoprefixer = require('autoprefixer'),
watch = require('gulp-watch'),
json = JSON.parse(fs.readFileSync('./package.json'));

Expand Down Expand Up @@ -35,7 +36,7 @@ var config = (function () {
include: [
path.npm,
path.npm + '/pikaday-time/scss/',
path.npm + '/bootstrap/scss/',
// path.npm + '/bootstrap/scss/',
path.staticfiles,
path.assets + '/scss/'
],
Expand Down Expand Up @@ -97,8 +98,6 @@ var config = (function () {
};
}());

console.log(config.script);

gulp.task('icons', function () {
return gulp.src(config.icons.input)
.pipe(gulp.dest(config.icons.output));
Expand All @@ -122,13 +121,11 @@ gulp.task('js', function () {

gulp.task('scss', function () {
return gulp.src(config.scss.input)
.pipe(sass(
{
style: 'expanded',
includePaths: config.scss.include
}
))
.pipe(prefix())
.pipe(sass({
style: 'expanded',
includePaths: config.scss.include
}))
.pipe(postcss([autoprefixer()]))
.pipe(concat(config.scss.output.filename))
.pipe(gulp.dest(config.scss.output.dir))
.pipe(livereload())
Expand All @@ -138,19 +135,6 @@ gulp.task('scss', function () {
.pipe(livereload());
});

// Rerun the task when a file changes
// TODO - fix watch task - it doesn't work
// gulp.task('watch', function () {
// livereload.listen();
// config.scss.watch.forEach(function (path) {
// gulp.watch(path, ['scss']);
// });
// config.script.watch.forEach(function (path) {
// gulp.watch(path, ['js']);
// });
// });

gulp.task('build', gulp.series('images','icons', 'js', 'scss'));
gulp.task('build', gulp.series('images', 'icons', 'js', 'scss'));

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

0 comments on commit 949c545

Please sign in to comment.