Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed May 27, 2021
1 parent dea6eca commit eac1e28
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 625 deletions.
58 changes: 4 additions & 54 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ module.exports = function(grunt) {
dest: './compiled/js/<%= pkg.name %>.user.js'
}
},

uglify: {
options: {
sourceMap: './compiled/js/<%= pkg.name %>.min.map',
Expand Down Expand Up @@ -101,57 +102,10 @@ module.exports = function(grunt) {
]
}
},
copy: {
main: {
files: [{
expand: true,
flatten: true,
src: ['./compiled/js/<%= pkg.name %>.min.js'],
dest: './src/WordPress/skipTo/js'
}, {
expand: true,
flatten: true,
src: ['./compiled/js/<%= pkg.name %>.min.js'],
dest: './src/Drupal/skipTo/js'
}

]
}

},
compress: {
WordPress: {
options: {
mode: 'zip',
archive: './compiled/WordPress/<%= pkg.name %>.zip'
},
files: [{
expand: true,
cwd: './src/WordPress/',
src: ['**'],
dest: '.',
filter: 'isFile'
}
]
},
Drupal: {
options: {
mode: 'tar',
archive: './compiled/Drupal/<%= pkg.name %>.tar'
},
files: [{
expand: true,
cwd: './src/Drupal/',
src: ['**'],
dest: '.',
filter: 'isFile'
}
]
}
},
clean: {
compiled: {
src: ["compiled/*", "./src/WordPress/skipTo/js/<%= pkg.name %>.min.js", "./src/Drupal/skipTo/js/<%= pkg.name %>.min.js"]
src: ["compiled/*"]
}
}

Expand All @@ -161,15 +115,11 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-replace');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-cssmin');

grunt.registerTask('test', ['jshint']);
grunt.registerTask('wordpress', ['compress:WordPress']);
grunt.registerTask('drupal', ['compress:Drupal']);
grunt.registerTask('gm', 'concat:gm');
grunt.registerTask('default', ['jshint', 'concat:core', 'uglify', 'cssmin', 'replace', 'copy','concat:gm']);
grunt.registerTask('all', ['jshint', 'concat:core', 'uglify', 'replace', 'copy', 'compress', 'concat:gm']);
grunt.registerTask('default', ['jshint', 'concat:core', 'uglify', 'cssmin', 'replace', 'concat:gm']);
grunt.registerTask('all', ['jshint', 'concat:core', 'uglify', 'replace', 'concat:gm']);
};
4 changes: 1 addition & 3 deletions build-win.bat
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
call npm install grunt-cli -g
call npm install grunt-cli -g
call npm install grunt
call npm install grunt-contrib-less
call npm install grunt-contrib-jshint
call npm install grunt-contrib-concat
call npm install grunt-contrib-uglify
call npm install grunt-replace
call npm install grunt-contrib-copy
call npm install grunt-contrib-compress
call npm install grunt-contrib-clean
call grunt
3 changes: 1 addition & 2 deletions compiled/js/skipto.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! skipto - v4.1.0 - 2021-05-18
/*! skipto - v4.1.0 - 2021-05-27
* https://github.com/paypal/skipto
* Copyright (c) 2021 PayPal Accessibility Team and University of Illinois; Licensed BSD */
/*@cc_on @*/
Expand Down Expand Up @@ -1473,7 +1473,6 @@
// Initialize skipto menu button with onload event
window.addEventListener('load', function() {
SkipTo.init(window.SkipToConfig ||
window.Wordpress ||
((typeof window.Joomla === 'object' && typeof window.Joomla.getOptions === 'function') ? window.Joomla.getOptions('skipto-settings', {}) : {})
);
});
Expand Down
4 changes: 2 additions & 2 deletions compiled/js/skipto.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion compiled/js/skipto.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions compiled/js/skipto.user.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@
"devDependencies": {
"grunt": "^1.0.4",
"grunt-contrib-clean": "~2.0.0",
"grunt-contrib-compress": "~1.4.3",
"grunt-contrib-concat": "~1.0.1",
"grunt-contrib-copy": "~1.0.0",
"grunt-contrib-cssmin": "^3.0.0",
"grunt-contrib-jshint": "~2.1.0",
"grunt-contrib-less": "~2.0.0",
"grunt-contrib-uglify": "~4.0.1",
"grunt-replace": "~1.0.1",
"grunt-replace": "^2.0.2",
"uglify-js": "~2.8.0"
},
"readmeFilename": "README.md",
Expand Down
8 changes: 0 additions & 8 deletions src/WordPress/skipTo/js/SkipTo.min.js

This file was deleted.

11 changes: 0 additions & 11 deletions src/WordPress/skipTo/js/wp-skipto-init.js

This file was deleted.

58 changes: 0 additions & 58 deletions src/WordPress/skipTo/readme.txt

This file was deleted.

Loading

0 comments on commit eac1e28

Please sign in to comment.