Migrate to garage

This commit is contained in:
Quentin 2021-01-19 13:31:23 +01:00
parent 8a374d3402
commit 8f3b18f628
5 changed files with 12 additions and 7 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
static/
node_modules/
*.swp
.awsclirc

View file

@ -1,3 +0,0 @@
#!/bin/bash
npm install
node render.js

7
deploy Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
shopt -s expand_aliases
source .awsclirc
npm install
node render.js
awsdf s3 sync static s3://deuxfleurs.fr

6
package-lock.json generated
View file

@ -252,9 +252,9 @@
}
},
"lodash": {
"version": "4.17.15",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A=="
"version": "4.17.20",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz",
"integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA=="
},
"longest": {
"version": "1.0.1",

View file

@ -98,7 +98,7 @@ const propagate_nice_name = prefix => tree => {
if (splitted.length > 0) {
tree.nice_path = splitted.slice(0, -1)
tree.nice_name = splitted[splitted.length - 1].split('.')[0]
tree.url = without_prefix
tree.url = tree.type == 'folder' ? without_prefix + '/' : without_prefix
log('[propagate_nice_name]', [...tree.nice_path, tree.nice_name].join('|'))
}