%PDF- %PDF-
Direktori : /var/www/projetos/stb.ind.br/wp-content/themes/stb_old/ |
Current File : //var/www/projetos/stb.ind.br/wp-content/themes/stb_old/Gruntfile.js |
module.exports = function( grunt ) { 'use strict'; // Project configuration grunt.initConfig( { pkg: grunt.file.readJSON( 'package.json' ), addtextdomain: { options: { textdomain: 'stb', }, update_all_domains: { options: { updateDomains: true }, src: [ '*.php', '**/*.php', '!\.git/**/*', '!bin/**/*', '!node_modules/**/*', '!tests/**/*' ] } }, wp_readme_to_markdown: { your_target: { files: { 'README.md': 'readme.txt' } }, }, sass: { dist: { options: { style: 'expanded', compress: false, sourcemap: 'none' }, files: { 'assets/css/stb.css': 'assets/css/scss/main.scss' } } }, watch: { sass: { files: ['assets/css/scss/**/*.scss'], tasks: ['sass'] } }, makepot: { target: { options: { domainPath: '/languages', exclude: [ '\.git/*', 'bin/*', 'node_modules/*', 'tests/*' ], mainFile: 'index.php', potFilename: 'stb.pot', potHeaders: { poedit: true, 'x-poedit-keywordslist': true }, type: 'wp-plugin', updateTimestamp: true } } }, } ); grunt.loadNpmTasks( 'grunt-wp-i18n' ); grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' ); grunt.loadNpmTasks( 'grunt-contrib-sass' ); grunt.loadNpmTasks( 'grunt-contrib-watch' ); grunt.registerTask( 'css', ['sass'] ); grunt.registerTask( 'compile', ['css', 'makepot'] ); grunt.registerTask( 'default', [ 'i18n','readme' ] ); grunt.registerTask( 'i18n', ['addtextdomain', 'makepot'] ); grunt.registerTask( 'readme', ['wp_readme_to_markdown'] ); grunt.util.linefeed = '\n'; };