Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
aframe-core
Advanced tools
A DOM based [Entity Component System](https://en.wikipedia.org/wiki/Entity_component_system) to declaratively create 3D worlds in the browser.
A DOM based Entity Component System to declaratively create 3D worlds in the browser.
It's an architectural pattern commonly used in game engines like Unity, Playcanvas or Unreal Engine 4+.
There's only one basic element called entity that defines a scale, a position and a rotation in the scene. Components encapsulate logic and data that can be attached to entities to extend their functionality, appearance and behaviour. In AFrame, entities are represented by a-entity
DOM elements and components as their attributes. This is what a simple scene with a cube and a camera looks like:
<a-scene>
<a-entity camera="fov: 45"></a-entity>
<a-entity position="0 0 -10" rotation="45 30 0"
geometry="primitive: box; height: 4; width: 4; depth: 4;"
material="color: green;"></a-entity>
</a-scene>
NOTE: For folks creating scenes and third-party components + elements, we recommend getting started by instead using the aframe
library, a set of core resuable elements.
Proceed below if you would like to use the minimal set of primitive components and elements available here in aframe-core
.
If you want to get hacking immediately, just fire up this CodePen example scene!
To get started, simply include these files in your project:
Or for local development you can use the unminified bundles (with source maps for the JS):
Also, be sure to check out these awesome examples:
First install from npm:
npm install @mozvr/aframe-core
And in your Browserify/Webpack modules, simply require the module:
require('@mozvr/aframe-core')
git clone https://github.com/aframevr/aframe-core.git
cd aframe-core
npm install
npm start
open http://localhost:9001/examples/
If you'd like to hack on this project and don't have access to the npm repos, contact @cvan and he'll give you the info you'll need to log in:
npm login
aframe
libraryIf you want to make changes to the aframe
library and test with aframe-core
, you'll need to run these commands to link things up correctly.
When you are in the directory of your aframe-core
repo checkout:
npm link
When you are in the directory of your aframe
repo checkout:
npm link @mozvr/aframe-core
Now when you make changes to aframe-core
, those changes will get reflected when a bundle gets built (the page is refreshed or a aframe
file is changed), so you can test the aframe-core
dependency against aframe
without having to manually push things to npm
for testing (which is a big no no!).
You'll need to npm unlink
when you are done testing things and want to actually use the npm-published versions, not your versions that are locally linked.
From your aframe-core
directory:
npm unlink
From your aframe
directory:
npm unlink @mozvr/aframe-core
If you'd like to see helpful logs, warnings, and errors, you can enable logging from the console of your favourite developer tools:
localStorage.logs = 1
And to disable:
localStorage.logs = 0
npm test
git checkout dev
git pull --rebase
npm install
npm start
open http://localhost:9001/examples/
Assuming you want to publish a version of dev
to the private package for testing:
npm run release
And to push the tags to GitHub:
git push --tags
dist
filesnpm run dist
git commit -am 'Bump dist'
To publish to https://aframevr.github.io/aframe-core/:
npm run ghpages
To publish to https://cvan.github.io/aframe-core/:
npm run ghpages cvan
This program is free software and is distributed under an MIT License.
FAQs
> `aframe-core` has merged into [aframe dev branch](https://github.com/aframevr/aframe/tree/dev) and all development has moved to the [aframe repo](https://github.com/aframevr/aframe). This repository will be removed later.
The npm package aframe-core receives a total of 6 weekly downloads. As such, aframe-core popularity was classified as not popular.
We found that aframe-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.