Fix CI build

pull/56/head
Romain 7 years ago
parent 6772e9c9d9
commit 596fe1babc

@ -2,4 +2,4 @@ language: node_js
node_js:
- '4'
- '6'
script: npm test
script: scripts/cibuild

@ -67,7 +67,7 @@ Options:
--albums-from How to group media into albums [choices: "folders", "date"] [default: "folders"]
--albums-date-format How albums are named in <date> mode [moment.js pattern] [default: "YYYY-MM"]
--sort-folders How to sort albums [deprecated] [choices: "name", "date"]
--sort-albums-by How to sort albums [choices: "title", "start-date", "end-date"] [default: "date"]
--sort-albums-by How to sort albums [choices: "title", "start-date", "end-date"] [default: "start-date"]
--sort-albums-direction Album sorting direction [choices: "asc", "desc"] [default: "asc"]
--sort-media-by How to sort photos and videos [choices: "filename", "date"] [default: "date"]
--sort-media-direction Media sorting direction [choices: "asc", "desc"] [default: "asc"]
@ -75,6 +75,7 @@ Options:
--css Path to a CSS/LESS file for styling [string]
--config Path to JSON config file [string]
--google-analytics Code for Google Analytics tracking [string]
--footer Text or HTML footer [default: null]
The optional JSON config should contain a single object with one key per argument, not including the leading "--". For example:

@ -36,40 +36,40 @@ var opts = yargs
'index': {
description: 'Filename of the home page, without extension',
default: 'index'
'default': 'index'
},
'title': {
description: 'Website title',
default: 'Photo album'
'default': 'Photo album'
},
'thumb-size': {
description: 'Pixel size of the square thumbnails',
type: 'number',
default: 120
'default': 120
},
'large-size': {
description: 'Pixel height of the fullscreen photos',
type: 'number',
default: 1000
'default': 1000
},
'original-photos': {
description: 'Allow download of full-size photos',
type: 'boolean',
default: false
'default': false
},
'original-videos': {
description: 'Allow download of full-size videos',
type: 'boolean',
default: false
'default': false
},
'albums-from': {
description: 'How to group media into albums',
choices: ['folders', 'date'],
default: 'folders'
'default': 'folders'
},
'albums-date-format': {
description: 'How albums are named in <date> mode [moment.js pattern]',
default: 'YYYY-MM'
'default': 'YYYY-MM'
},
// Deprecated for <sort-albums>
'sort-folders': {
@ -79,34 +79,34 @@ var opts = yargs
'sort-albums-by': {
description: 'How to sort albums',
choices: ['title', 'start-date', 'end-date'],
default: 'start-date'
'default': 'start-date'
},
'sort-albums-direction': {
description: 'Album sorting direction',
choices: ['asc', 'desc'],
default: 'asc'
'default': 'asc'
},
'sort-media-by': {
description: 'How to sort photos and videos',
choices: ['filename', 'date'],
default: 'date'
'default': 'date'
},
'sort-media-direction': {
description: 'Media sorting direction',
choices: ['asc', 'desc'],
default: 'asc'
'default': 'asc'
},
'theme': {
description: 'Name of the gallery theme to apply',
choices: ['classic', 'cards', 'mosaic'],
default: 'classic'
'default': 'classic'
},
'css': {
description: 'Path to a CSS/LESS file for styling',
normalize: true
},
'config': {
description: 'Optional JSON config file (one key per argument)',
description: 'JSON config file (one key per argument)',
normalize: true
},
'google-analytics': {
@ -114,8 +114,9 @@ var opts = yargs
type: 'string'
},
'footer': {
description: 'Optional text or HTML footer',
default: null
description: 'Text or HTML footer',
'default': null
},
}
})
.config('config')

@ -4,7 +4,7 @@
set -eou pipefail
# Make sure binary package.json dependencies are available
PATH=$(pwd)/node-modules/.bin:$PATH
PATH=$(pwd)/node_modules/.bin:$PATH
echo "--- Check all dependencies in package.json"
require-lint --src bin/thumbsup.js --ignore-extra lightgallery

Loading…
Cancel
Save