Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/queuepro/node_modules/list.pagination.js/ drwxrwxr-x | |
| Viewing file: Select action/file-type: module.exports = function(grunt) {
"use strict";
grunt.initConfig({
pkg: require("./package.json"),
watch: {
scripts: {
files: ['*.js', 'test/*.html', 'test/*.js'],
tasks: ['default'],
options: {
spawn: false,
},
},
},
shell: {
install: {
command: 'component install --dev',
options: {
stderr: true
}
},
build: {
command: 'component build --dev',
options: {
stderr: true
}
},
installProd: {
command: 'component install',
options: {
stderr: true
}
},
buildProd: {
command: 'component build',
options: {
stderr: true
}
},
standalone: {
command: 'component build --standalone ListPagination -n list.pagination.standalone'
},
mkdir: {
command: 'mkdir -p dist'
},
move: {
command: 'mv build/list.pagination.standalone.js dist/list.pagination.js'
},
remove: {
command: 'rm -fr build components dist'
}
},
jshint: {
code: {
src: ['Gruntfile.js', '*.js', 'src/*.js'],
options: {
expr: true,
multistr: false,
globals: {
module: true
}
}
},
tests: {
src: ['test/(*|!mocha).js'],
options: {
expr: true,
multistr: true,
globals: {
jQuery: true,
module: true
}
}
}
},
uglify: {
target: {
files: {
'dist/list.pagination.min.js': ['dist/list.pagination.js']
}
}
},
mocha: {
cool: {
src: [ 'test/index.html' ],
options: {
run: true,
timeout: 10000,
bail: false,
log: true,
reporter: 'Nyan',
mocha: {
ignoreLeaks: false
}
}
}
}
});
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-mocha');
grunt.registerTask('default', ['jshint:code', 'jshint:tests', 'shell:install', 'shell:build']);
grunt.registerTask('prod', ['jshint:code', 'jshint:tests', 'shell:installProd', 'shell:buildProd']);
grunt.registerTask('dist', ['default', 'shell:standalone', 'shell:mkdir', 'shell:move', 'uglify']);
grunt.registerTask('clean', ['shell:remove']);
grunt.registerTask('test', ['mocha']);
return grunt;
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0042 ]-- |