configure for deploy

master
evan 2019-10-08 16:34:18 -07:00
parent b7af447f17
commit 9cd7a4d045
5 changed files with 25 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
node_modules node_modules
dist/bundle.js dist/**/bundle.js

22
.travis.yml Normal file
View File

@ -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

View File

@ -7,7 +7,7 @@ module.exports = {
main: [ './index.ts' ] main: [ './index.ts' ]
}, },
output: { output: {
filename: 'bundle.js' filename: 'exporter/bundle.js'
}, },
resolve: { resolve: {
// Add `.ts` and `.tsx` as a resolvable extension. // Add `.ts` and `.tsx` as a resolvable extension.

View File

@ -4,7 +4,7 @@ module.exports = {
mode: 'production', mode: 'production',
entry: './index.ts', entry: './index.ts',
output: { output: {
filename: 'bundle.js' filename: 'exporter/bundle.js'
}, },
resolve: { resolve: {
// Add `.ts` and `.tsx` as a resolvable extension. // Add `.ts` and `.tsx` as a resolvable extension.