Coder Social home page Coder Social logo

template-ts-webpack's Introduction

Excalibur TypeScript & Webpack Starter

This is a barebones Excalibur game engine starter built using Typescript 4 & Webpack 5. It's a great starting place to jumpstart building your game! This repo is a template and can be used to create your own repository in GitHub.

Check out our other samples while you build your game or ask us questions.

Get Started

Publishing

  • Run npm run build:dev to produce Javascript bundles for debugging in the dist/ folder
  • Run npm run build:prod to produce Javascript bundles for production (minified) in the dist/ folder

The dist/ folder can be deployed to a static web host. We recommend Netlify or GitHub Pages since they are free to use.

template-ts-webpack's People

Contributors

dependabot[bot] avatar dgparker avatar djcsdy avatar eonarheim avatar jedeen avatar jharrilim avatar kamranayub avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

template-ts-webpack's Issues

Images

Where need save textures/images? When i try add texture new ex.Texture('./textures/texture.png'), i got error [Error] : Failed to load resource ./textures/texture.png server responded with error code 404

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

template-ts-webpack: `npm run dev` does not work

This is for template-ts-webpack.

Two problems.

  1. npm run dev runs a server on localhost:8080, not on localhost:8082 as the documentation seems to suggest.
  2. Navigating to localhost:8080 yields an Uncaught TypeError: this.path.indexOf is not a function; stacktrace suggests this is in index.ts, line 31.

Environment: Windows 10, Cygwin, nodejs.org (14.15.3 LTS) install.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/node.js.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • excalibur 0.29.3
  • clean-webpack-plugin 4.0.0
  • compression-webpack-plugin 11.1.0
  • html-webpack-plugin 5.6.0
  • @excaliburjs/testing 0.25.1
  • source-map-loader 5.0.0
  • ts-loader 9.5.1
  • typescript 5.5.3
  • terser-webpack-plugin 5.3.10
  • webpack 5.93.0
  • webpack-cli 5.1.4
  • webpack-dev-server 5.0.4
  • webpack-merge 5.10.0
nvm
.nvmrc
  • node 20.15.1

  • Check this box to trigger a request for Renovate to run again on this repository

Enabling Github Template

Context

I want to use this template but I am not too keen on having to fork and clone this repository,

Proposal

One solution I can think of is enabling this repo as a Github template so people can just click "Use this template"

bug(webpack): npm start is failing with contentBase error

Steps to Reproduce

npm start

Expected Result

Dev server should boot up

Actual Result

I see this error:

[webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'contentBase'. These properties are valid:
   object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, setupExitSignals?, static?, watchFiles?, webSocketServer? }

Environment

  • browsers and versions:
  • operating system:
  • Excalibur versions:
  • (anything else that may be relevant)

Current Workaround

Bundle fails with dist/excalibur.d.ts is not a module.

When I run webpack, I get the following error:

ERROR in ./index.ts
(1,21): error TS2306: File '/[...]/node_modules/excalibur/dist/excalibur.d.ts' is not a module.

I found a workaround that requires manually editing the definition file, adding: export = ex; which seems less than ideal. Is this expected?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.