Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
fix building dist
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrjones committed Feb 17, 2016
1 parent 1cfd564 commit b2b9303
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 59 deletions.
57 changes: 3 additions & 54 deletions Gruntfile.js
Expand Up @@ -83,22 +83,11 @@ module.exports = function (grunt) {
dist: {
options: {
variables: {
'version': '<%= pkg.version %>',
'piwik': ''
'version': '<%= pkg.version %>'
}
},
files: {
'dist/': ['dist/index.html']
}
},
deploy: {
options: {
variables: {
'piwik': '<%= grunt.file.read("includes/piwik.html") %>'
}
},
files: {
'dist/': ['dist/index.html']
'dist/index.html': ['dist/index.html']
}
}
},
Expand Down Expand Up @@ -130,44 +119,6 @@ module.exports = function (grunt) {
src: ["**"]
}]
}
},
// secret.json contains the host, username and password for a server to
// scp to
secret: grunt.file.readJSON('secret.json'),
sftp: {
deploy: {
files: {
"./": "jquery-placeholder-plugin-<%= pkg.version %>.zip"
},
options: {
host: '<%= secret.host %>',
username: '<%= secret.username %>',
password: '<%= secret.password %>',
path: '<%= secret.path %>'
}
}
},
clean: ['dist', '*zip'],
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
browser: true,
globals: {
jQuery: true
}
},
files: {
src: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js']
}
}
});

Expand All @@ -176,7 +127,6 @@ module.exports = function (grunt) {
grunt.registerTask('test', ['connect', 'jshint', 'qunit']);
grunt.registerTask('build', ['jade', 'less', 'concat', 'uglify', 'cssmin', 'copy']);
grunt.registerTask('dist', ['build', 'replace:dist', 'compress']);
grunt.registerTask('deploy', ['build', 'replace:deploy', 'replace:dist', 'compress', 'sftp']);

grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
Expand All @@ -192,8 +142,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.loadNpmTasks('grunt-beautify');
grunt.loadNpmTasks('grunt-ssh');
grunt.loadNpmTasks('grunt-replace');

grunt.registerTask('tidy', 'beautify');
};
};
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -43,7 +43,6 @@
"grunt-contrib-less": "~0.5.0",
"grunt-contrib-cssmin": "*",
"grunt-contrib-watch": "*",
"grunt-ssh": "~0.2.0",
"grunt-replace" : "git://github.com/outaTiME/grunt-replace.git"
},
"scripts": {
Expand Down
7 changes: 3 additions & 4 deletions src/index.jade
@@ -1,4 +1,4 @@
!!! 5
doctype html
html(lang='en', xml:lang='en', xmlns='http://www.w3.org/1999/xhtml')
head
title jQuery Placeholder Plugin
Expand All @@ -15,7 +15,7 @@ head
link(href='jquery.placeholder.css?@@version', rel='stylesheet', type='text/css')
script(src='http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js', type='text/javascript')
link(href='http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css', rel='stylesheet', type='text/css')
script(type='text/javascript')
script.
jQuery(document).ready(function($) {
try {
prettyPrint();
Expand Down Expand Up @@ -148,5 +148,4 @@ head
footer
p
| © 2013
a(href='http://andrew-jones.com') Andrew Jones
@@piwik
a(href='http://andrew-jones.com') Andrew Jones

0 comments on commit b2b9303

Please sign in to comment.