Unverified Commit 0d42b0b2 authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻
Browse files

remove bogus --exclude, add index to build folder

parent fa9ef2b6
Pipeline #11463 passed with stages
in 3 minutes and 10 seconds
......@@ -15,3 +15,5 @@ yarn.lock
src/js/*.compiled.js
src/sass/_vars.scss
*.swp
# vscode settings.json
settings.json
......@@ -169,7 +169,7 @@ module.exports = (grunt) ->
]
dest: '<%= settings.dev.build_folder %><%= settings.dev.html_path %>'
} ]
index:
serverIndex:
options:
pretty: true
data: (dst, src) ->
......@@ -179,6 +179,16 @@ module.exports = (grunt) ->
packageName: grunt.file.readJSON('package.json').name
}
files: '<%= settings.dev.build_folder %><%= settings.dev.html_path %>index.html': 'src/index.pug'
buildIndex:
options:
pretty: true
data: (dst, src) ->
{
problems: grunt.file.expand(
{'cwd': "#{settings.build.build_folder}"}, "#{settings.build.html_path}**/problem*.html")
packageName: grunt.file.readJSON('package.json').name
}
files: '<%= settings.build.build_folder %><%= settings.build.html_path %>index.html': 'src/index.pug'
copy:
server:
files: [
......@@ -261,7 +271,7 @@ module.exports = (grunt) ->
'newer:sass:server'
'newer:browserify:server'
'newer:i18n_pug:server'
'i18n_pug:index'
'i18n_pug:serverIndex'
'connect'
'watch'
]
......@@ -277,4 +287,5 @@ module.exports = (grunt) ->
'uglify:build'
'clean:js_tmp'
'i18n_pug:build'
'i18n_pug:buildIndex'
]
......@@ -11,5 +11,5 @@ mkdir -p ~/.ssh
[[ -f /.dockerenv ]] && echo "$SSH_SERVER_HOSTKEYS" > ~/.ssh/known_hosts
# Upload site.
rsync -avz --delete --exclude js-components ./build/ \
rsync -avz --delete ./build/ \
"${FTP_USER}@ftp.greenhost.nl:${DOMAIN_NAME}/${SUBDOMAIN}/js-components"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment