Skip to content

Commit

Permalink
Merge pull request #8 from bamadesigner/1.0.3
Browse files Browse the repository at this point in the history
Version 1.0.3
  • Loading branch information
bamadesigner authored Sep 9, 2020
2 parents 86996cf + 7ae53ea commit c76cb6f
Show file tree
Hide file tree
Showing 13 changed files with 5,841 additions and 407 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
admin-edit-post.min.css
admin-options-page.min.css
node_modules
vendor
node_modules
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@

}

#wa11y-wave-eval-no-SSL {
background: #f8f8f8;
padding: 21px 20px 26px 20px !important;
margin: 0 0 5px 0!important;
}

iframe#wa11y-wave-evaluation-mb-iframe {
width: 100%;
min-height: 600px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ $wave-gray: #363636;
&.tota11y-tool-settings {

.tool-header {
background: url( '../../assets/images/tota11y-circle-glasses.png' ) 20px 20px no-repeat #252525;
background: url('../images/tota11y-circle-glasses.png') 20px 20px no-repeat #252525;
background-size: 80px auto;
color: #fff;

Expand Down Expand Up @@ -221,7 +221,7 @@ $wave-gray: #363636;

// Customize the WAVE header
.tool-header {
background: url( '../../assets/images/wave-logo.png' ) 18px 18px no-repeat #f0f6ee;
background: url('../images/wave-logo.png') 18px 18px no-repeat #f0f6ee;
background-size: 81px 81px;
border-bottom-color: #d3e3ce;
}
Expand Down
19 changes: 0 additions & 19 deletions composer.json

This file was deleted.

133 changes: 0 additions & 133 deletions composer.lock

This file was deleted.

108 changes: 46 additions & 62 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,85 +5,69 @@ const mergeMediaQueries = require('gulp-merge-media-queries');
const notify = require('gulp-notify');
const rename = require('gulp-rename');
const sass = require('gulp-sass');
const shell = require('gulp-shell');
const sort = require('gulp-sort');
const wp_pot = require('gulp-wp-pot');

// Define the source paths for each file type.
const src = {
php: ['**/*.php','!vendor/**','!node_modules/**'],
sass: ['assets/scss/**/*']
php: ['**/*.php', '!node_modules/**'],
sass: ['assets/css/src/**/*']
};

// Define the destination paths for each file type.
const dest = {
sass: 'assets/css',
translate: 'languages'
sass: 'assets/css',
translate: 'languages'
};

// Take care of SASS.
gulp.task('sass', function() {
return gulp.src(src.sass)
.pipe(sass({
outputStyle: 'expanded'
}).on('error', sass.logError))
.pipe(mergeMediaQueries())
.pipe(autoprefixer({
browsers: ['last 2 versions'],
cascade: false
}))
.pipe(cleanCSS({
compatibility: 'ie8'
}))
.pipe(rename({
suffix: '.min'
}))
.pipe(gulp.dest(dest.sass))
.pipe(notify('wA11y SASS compiled'));
});

// "Sniff" our PHP.
gulp.task('php', function() {
// TODO: Clean up. Want to run command and show notify for sniff errors.
return gulp.src('wa11y.php', {read: false})
.pipe(shell(['composer sniff'], {
ignoreErrors: true,
verbose: false
}))
.pipe(notify('wA11y PHP sniffed'), {
onLast: true,
emitError: true
});
gulp.task('sass', function (done) {
return gulp.src(src.sass)
.pipe(sass({
outputStyle: 'expanded'
}).on('error', sass.logError))
.pipe(mergeMediaQueries())
.pipe(autoprefixer({
cascade: false
}))
.pipe(cleanCSS({
compatibility: 'ie8'
}))
.pipe(rename({
suffix: '.min'
}))
.pipe(gulp.dest(dest.sass))
.pipe(notify('wA11y SASS compiled'))
.on('end', done);
});

// Create the .pot translation file.
gulp.task('translate', function() {
gulp.src(src.php)
.pipe(sort())
.pipe(wp_pot({
domain: 'wa11y',
destFile: 'wa11y.pot',
package: 'wA11y',
bugReport: 'https://github.com/bamadesigner/wa11y/issues',
lastTranslator: 'Rachel Cherry <[email protected]>',
team: 'Rachel Cherry <[email protected]>',
headers: false
}))
.pipe(gulp.dest(dest.translate))
.pipe(notify('wA11y translated'));
gulp.task('translate', function (done) {
return gulp.src(src.php)
.pipe(sort())
.pipe(wp_pot({
domain: 'wa11y',
destFile: 'wa11y.pot',
package: 'wA11y',
bugReport: 'https://github.com/bamadesigner/wa11y/issues',
lastTranslator: 'Rachel Cherry',
team: 'Rachel Cherry',
headers: false
}))
.pipe(gulp.dest(dest.translate))
.pipe(notify('wA11y translated'))
.on('end', done);
});

// Test our files.
gulp.task('test',['php']);

// Compile all the things.
gulp.task('compile',['sass']);

// I've got my eyes on you(r file changes).
gulp.task('watch',function() {
gulp.watch(src.sass,['sass']);
gulp.watch(src.php,['php','translate']);
});
gulp.task('compile', gulp.series('sass'));

// Let's get this party started.
gulp.task('default',['compile','test','translate']);
gulp.task('default', gulp.series('compile', 'translate'));

// I've got my eyes on you(r file changes).
gulp.task('watch', gulp.series('default', function (done) {
gulp.watch(src.sass, gulp.series('sass'));
gulp.watch(src.php, gulp.series('translate'));
return done();
}));
Loading

0 comments on commit c76cb6f

Please sign in to comment.