diff --git a/.gitignore b/.gitignore index 9e28a06..30cf731 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +dist/ diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 69ea64c..0000000 --- a/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -from node:13 as builder -workdir /app -copy . /app -run npm install . -run npm run build - -from nginx:latest -copy --from=builder /app/build /usr/share/nginx/html -copy ./nginx.conf /etc/nginx/conf.d/default.conf -expose 80 diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index 06af601..0000000 --- a/Gruntfile.js +++ /dev/null @@ -1,46 +0,0 @@ -module.exports = function(grunt) { - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - sed: { - relativePaths: { - path: './build/index.html', - pattern: '="/', - replacement: '="./' - } - }, - compress: { - main: { - createEmptyArchive: false, - options: { - archive: 'DrowningAmongStars_<%= pkg.version %>.zip' - }, - files: [{ - expand: true, - cwd: './build/', - src: [ - './index.html', - './static/**' - ], - dest: '/' - }] - } - }, - run: { - publish: { - cmd: 'butler', - args: [ - 'push', - 'DrowningAmongStars_<%= pkg.version %>.zip', - 'tempest-dawn/drowning-among-stars:web' - ] - } - } - }) - - grunt.loadNpmTasks('grunt-sed') - grunt.loadNpmTasks('grunt-contrib-compress') - grunt.loadNpmTasks('grunt-run') - - grunt.registerTask('build', ['sed', 'compress']) - grunt.registerTask('publish', ['run:publish']) -} diff --git a/public/index.html b/index.html similarity index 89% rename from public/index.html rename to index.html index 61b6d0b..fe57e98 100644 --- a/public/index.html +++ b/index.html @@ -10,5 +10,6 @@
+