diff --git a/.gitignore b/.gitignore index 9bfb672..adb36ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ node_modules -dist/bundle.js \ No newline at end of file +dist/**/bundle.js \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ec8f0a3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +# Compile the site +script: + - npm run build + +# Deploy the site - this hook comes from Travis integration +deploy: + # The output of our static site + local_dir: dist + # The repository we are deploying to + repo: MoonsideGames/moonsidegames.github.io + # The branch we are pushing the static repository + target_branch: master + # Information to use in the commit + email: evan@moonside.games + name: "Evan Hemsley" + provider: pages + # Recommended setting + skip_cleanup: true + # Set in Travis CI dashboard + github_token: $GITHUB_TOKEN + on: + branch: master \ No newline at end of file diff --git a/dist/index.html b/dist/exporter/index.html similarity index 100% rename from dist/index.html rename to dist/exporter/index.html diff --git a/webpack/dev.config.js b/webpack/dev.config.js index c0cd370..eb5a058 100644 --- a/webpack/dev.config.js +++ b/webpack/dev.config.js @@ -7,7 +7,7 @@ module.exports = { main: [ './index.ts' ] }, output: { - filename: 'bundle.js' + filename: 'exporter/bundle.js' }, resolve: { // Add `.ts` and `.tsx` as a resolvable extension. diff --git a/webpack/prod.config.js b/webpack/prod.config.js index 1af62ff..bb80eaf 100644 --- a/webpack/prod.config.js +++ b/webpack/prod.config.js @@ -4,7 +4,7 @@ module.exports = { mode: 'production', entry: './index.ts', output: { - filename: 'bundle.js' + filename: 'exporter/bundle.js' }, resolve: { // Add `.ts` and `.tsx` as a resolvable extension.