Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@edsilv/aframe

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edsilv/aframe

An experiment to see if it's possible to update A-Frame to use webpack, esmodules, types (via TypeScript), and custom elements v1.

  • 0.0.1-pre.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

aframe-ts-webpack

An experiment to see if it's possible to update A-Frame to use webpack, esmodules, types (via TypeScript), and custom elements v1.

Creates commonsjs, esmodule, UMD, and var dist builds. UMD would be the conventional method of use, i.e. window.AFRAME.

Transpiles TypeScript to es5. Includes @webcomponents/custom-elements/custom-elements (16k) and @webcomponents/webcomponentsjs/custom-elements-es5-adapter (1.3k) polyfills (tested in IE11). custom-elements-es5-adapter is necessary for modern browsers using custom elements transpiled to es5. Eventually when browsers are all "modern" we can change the tsconfig to "target": "es6" without needing to change anything else.

es6 class syntax with optional static typing can be used for development. Any plain js file is a valid ts file.

Uses dts-bundle-generator to generate a single namespaced type definition.

Generates documentation using typedoc from code comments.

examples

npm run examples

todo

  • Set up TypeScript and webpack with UMD, esmodule, commonjs, and var dist builds
  • Generate type definition on build
  • Format with prettier on build
  • Generate documentation on build
  • Bare-bones a-scene, a-entity, a-node using customElements.define() console logging connectedCallback
  • AFRAME.utils.isIE11 example
  • Set up Jest unit testing

FAQs

Package last updated on 02 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc