Giter VIP home page Giter VIP logo

a-frame-ts-boilerplate's Introduction

A-FRAME-TS-BOILERPLATE

An A-Frame 1.3.0 boilerplate with Typescript, ESLint, and Webpack.

Hello World

Setup

To get started, you can fork this repository or use the 'Use this template' button up top.

After you have forked this repository, you can clone your fork locally and get it ready by following this example:

git clone https://github.com/PlinioDeVos/A-FRAME-TS-BOILERPLATE.git
cd A-FRAME-TS-BOILERPLATE
npm install

Commands

Development server

To start the Webpack development server, enter the following command in the terminal:

npm run start

If you'd like to change the server settings then you must modify devServer in webpack.config.js.

Bundling

To create the bundle file, you can enter the following command in the terminal:

npm run bundle

By default everything in main.ts will be bundled and placed in docs > scripts as bundle.js.
Every A-Frame component should be placed in the components folder, these will be bundled as well.

If you'd like to change bundle behaviour then you must modify the webpack.config.js file.

Linter

To run Typescript ESLint, enter the following command in the terminal:

npm run lint

Rules

You can find all the rules here and add/remove them in the .eslintrc.cjs file.

Ignoring files

To make ESLint ignore files you must add them in the .eslintignore file.

Hosting

This boilerplate is made in such a way that it can easily be hosted by making use of GitHub Pages.

License

This boilerplate is free software and is distributed under an MIT License.

a-frame-ts-boilerplate's People

Contributors

pliniodevos avatar

Watchers

 avatar

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.