I am trying to write automation script using js
- what i am trying to achieve is I have packages in one machine and install those packages in another machine..i need to write a script for it..
- will grunt work for it..
- packages has config and jar files...
- I need to unzip and zip it too..
- not sure how to achieve...
- can you guys give some inputs
- is there any js file would you guys like to suggest
providing a sample grunt file code below
module.exports = function(grunt) {
// Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, build: { src: 'src/<%= pkg.name %>.js', dest: 'build/<%= pkg.name %>.min.js' } } });
// Load the plugin that provides the "uglify" task. grunt.loadNpmTasks('grunt-contrib-uglify');
// Default task(s). grunt.registerTask('default', ['uglify']);
};
samedi 4 avril 2015
to write automation script using js
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire