File: /var/www/vhosts/miroglu.net/httpdocs/wp-content/plugins/the-landscaper-toolkit/Gruntfile.js
'use strict';
module.exports = function(grunt) {
// load all grunt tasks matching the `grunt-*` pattern
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pgk: grunt.file.readJSON( 'package.json' ),
// https://github.com/sindresorhus/grunt-sass
// sass: {
// dist: {
// options: {
// style: 'expanded',
// sourcemap: 'none',
// },
// files: {
// 'style.css': 'assets/sass/style.scss',
// 'assets/css/woocommerce.css': 'assets/sass/woocommerce.scss',
// 'assets/css/bootstrap.css': 'assets/sass/bootstrap.scss',
// 'rtl.css': 'assets/sass/rtl.scss',
// 'assets/css/editor-style.css': 'assets/sass/editor-style.scss',
// }
// }
// },
// https://github.com/gruntjs/grunt-contrib-jshint
jshint: {
options: {
"bitwise": true,
"browser": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"es5": true,
"esnext": true,
"immed": true,
"jquery": true,
"latedef": true,
"newcap": true,
"noarg": true,
"node": true,
"strict": false,
"undef": true,
"globals": {
"jQuery": true,
"alert": true,
"google": true,
"InfoBox": true,
"themeajax": true,
"ajaxurl": true,
"Favico": true,
"BackgroundCheck": true,
"smoothScroll": true
}
}
},
// uglify: {
// dist: {
// files: {
// 'includes/assets/js/main.min.js': 'includes/assets/js/main.js',
// }
// }
// },
copy: {
main: {
expand: true,
dot: false,
flatten: false,
src: [
'*.css',
'*.php',
'includes/**',
'assets/**',
'languages/**',
'Gruntfile.js',
'package.json',
'readme.txt',
],
dest: 'the-landscaper-toolkit/',
},
},
compress: {
main: {
options: {
archive: 'the-landscaper-toolkit.zip',
mode: 'zip'
},
src: 'the-landscaper-toolkit/**'
}
},
makepot: {
target: {
options: {
domainPath: '/languages/',
potFilename: 'the-landscaper-toolkit.pot',
type: 'wp-plugin',
exclude: [
'node_modules/.*',
]
}
}
},
});
grunt.registerTask( 'build', [ 'makepot', 'copy', 'compress' ] );
};