configure for deploy
							parent
							
								
									b7af447f17
								
							
						
					
					
						commit
						9cd7a4d045
					
				| 
						 | 
				
			
			@ -1,2 +1,2 @@
 | 
			
		|||
node_modules
 | 
			
		||||
dist/bundle.js
 | 
			
		||||
dist/**/bundle.js
 | 
			
		||||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			@ -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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue