aframevr-userland / aframe-cli Goto Github PK
View Code? Open in Web Editor NEW💻 A command-line tool for building :a: A-Frame WebVR scenes.
License: MIT License
💻 A command-line tool for building :a: A-Frame WebVR scenes.
License: MIT License
@caseyyee: see this section in the latest Docs on master
: https://aframe.io/docs/master/components/light.html#adding-real-time-shadows
It seems that any template alias with "-" in the name doesn't work.
Just using --template model
works though. Not sure why?
node index.js new my-3dmodel --template model-viewer
11:00:01 - log: Using template "aframevr-userland/aframe-model-viewer-template …
11:00:01 - log: Cloning git repo "git://github.com/aframevr-userland/aframe-model-viewer-template.git" to "/Users/casey/.brunch/skeletons/6ceaa9508869139f31c6a71eec0a73848ad6c483"...
/Users/casey/Developer/aframe-cli/index.js:3
throw err;
^
Error: Git clone error: Error: Command failed: git clone git://github.com/aframevr-userland/aframe-model-viewer-template.git "/Users/casey/.brunch/skeletons/6ceaa9508869139f31c6a71eec0a73848ad6c483"
Cloning into '/Users/casey/.brunch/skeletons/6ceaa9508869139f31c6a71eec0a73848ad6c483'...
fatal: remote error:
Repository not found.
at exec.then.error (/Users/casey/Developer/aframe-cli/node_modules/init-skeleton/lib/index.js:67:13)
just to be more consistent with where we want to head with this (dev environment)
As part of #17, I tried including the component script into it's own js/components/teleport.js
.
The bundler ends up concatenating the html itself. Not sure why.
Currently just creating a new project then working out of the project folder ie 'aframe new my-project' then editing files in 'aframe serve my-project'.
After changes I copy the working files back into the '/templates/default-template'.
Is there a better way to be doing this?
à la https://twitter.com/fifsilva/status/853308454089445376 🍪
@cvan I know you had these mocked up somewhere already. We should find a place for this to live.
à la Now's _src
Kind of throws me in a loop when looking for files. Maybe just in the root folder as per conventional web dev.
aframe cli page should parse readme for docs.
there's code for this in these (unmerged) branches:
default scene template:
regardless of whether a local Git repo is created during the aframe new
call.
for easy sharing of published aframe content.
this is the current list of glob patterns to ignore:
ignore: [
'.git/**',
'node_modules/**',
'ipfs/**'
]
developers should be able to pass patterns as comma-separated glob patterns to ignore directories from being deployed, like so:
aframe deploy --ignore file1.txt, some_directory/**
to launch with Salvas article.
after installing npm install -g aframe-cli
and running, i get this:
aframe new test-project
module.js:472
throw err;
^
Error: Cannot find module '../package.json'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/casey/.nvm/versions/node/v7.4.0/lib/node_modules/aframe-cli/index.js:19:13)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
aframe-cli projects are built using brunch but this is not indicated. When starting from a template but evolving the project, it could be convenient to hack into the build process. Add a link to the Brunch homepage to explicitly highlight the building technology and provide a point of entry for those developers that want to customise the building process.
aframe new my-360 --template 360-tour
cd my-360
aframe serve
multiple tabs open when livereloading.
image preview,
also fb meta.
https://github.com/caseyyee/aframe-multiuser-boilerplate
Based off the smasher work.
would be cool to include as dev environment the retain-camera
component:
https://github.com/caseyyee/aframe-dev-components/blob/master/src/retain-camera.js
The component basically retains the position of the camera while the page reloads making it easier to work with content.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.