This commit is contained in:
wassname
2023-02-24 21:30:09 +08:00
parent d4e97d5867
commit 16ca856ef0
4 changed files with 31 additions and 3 deletions
+3
View File
@@ -2,3 +2,6 @@
/build-min
/node_modules
side-by-side.zip
.ftppass
.vscode/settings.json
sftpCache.json
+20 -2
View File
@@ -240,21 +240,39 @@ module.exports = (grunt) ->
options: { compress: false }
}]])
grunt.config 'sftp-deploy', add([['build', {
auth: {
host: 'ssh.phx.nearlyfreespeech.net',
port: 22,
authKey: 'key1'
},
cache: 'sftpCache.json',
src: './build-min/',
dest: '/home/public/sbs',
# exclusions: ['/path/to/source/folder/**/.DS_Store', '/path/to/source/folder/**/Thumbs.db', 'dist/tmp'],
serverSep: '/',
localSep: '/',
concurrency: 4,
progress: true
}]])
# Load tasks
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.loadNpmTasks('grunt-contrib-qunit');
# grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-sftp-deploy');
# Register tasks
grunt.registerTask 'default', [ 'coffee:main', 'copy:main', 'copy:fonts', 'jade:main', 'stylus:main' ]
grunt.registerTask 'min', [ 'jade:min', 'copy:min', 'copy:min_readme', 'copy:min_fonts', 'uglify:min', 'cssmin:min' ]
grunt.registerTask 'test', [ 'default', 'connect:main', 'qunit' ]
grunt.registerTask 'upload', ['min', 'sftp-deploy']
# grunt.registerTask 'test', [ 'default', 'connect:main', 'qunit' ]
grunt.registerTask 'serve', () ->
grunt.task.run 'default'
+2 -1
View File
@@ -2,7 +2,7 @@
"title": "Tao Te Ching translation comparison",
"description": "The tao that can be told is not the eternal tao. The name that can be named is not the eternal name.",
"heading": "Translator",
"display": { "Code": ["gff", "jhmd", "jc", "rh", "rp"] },
"display": { "Code": ["gff", "rh", "rp", "ah"] },
"files": [
"1972-gia-fu-feng.md",
"1988-stephen-mitchell.md",
@@ -16,6 +16,7 @@
"2005-agnieszka-solska.md",
"2009-red-pine.md",
"2010-ames-and-hall.md"
],
"metaKeys": [ "Translator", "Year", "Source" ]
}
+6
View File
@@ -38,6 +38,12 @@ html(ng-app="sideBySide" ng-controller="AppController")
svg.icon
use(xlink:href="/fonts/icons.svg#icon-star")
span About
li
a(href="content/tao") Tao
li
a(href="content/enchiridion") Enchiridion
li
a(href="content/meditations-book-2") Meditations book 2
div(ng-controller="ComparisonController" class="cols-{{columns}}")
include includes/comparison.html.jade