Skip to content

Instantly share code, notes, and snippets.

@kaustubhmalgaonkar
kaustubhmalgaonkar / autodeploy.sh
Last active June 30, 2017 09:18
Autodeploy Laravel Application
# git current release id
RELEASEID=$1
USERNAME=$2
PASSWORD=$3
APPNAME="trualta"
cd $APPNAME
if [ ! -d "releases" ]; then
mkdir releases
fi
@kaustubhmalgaonkar
kaustubhmalgaonkar / package.json
Created October 9, 2014 06:06
package.json file to specify Grunt version and add development dependencies
{
"name": "learning-grunt",
"version": "0.0.1",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "^0.8.0",
"grunt-contrib-concat": "^0.3.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-cssmin": "^0.10.0",
"grunt-contrib-less": "^0.11.4",
@kaustubhmalgaonkar
kaustubhmalgaonkar / Gruntfile.js
Last active August 29, 2015 14:07
Grunt File to minify and compress js file into one folder wise. Compile less file to css file and minify css file.
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-cssmin');
var devPath = 'public/js/dev';
var prodPath = 'public/js/prod';