-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package examples in the build (dev2) #77
Comments
Right, due to the requirejs stuff (and how we use it atm.) this particular aspect of the build is kind of tricky. We want the examples to work while developing locally in requirejs mode with Here are my suggested steps how to accomplish nice and developer friendly system. Moving /examples
Dynamic example indexing No one want to start upkeeping a file manually that lists all the examples a`la http://threejs.org/examples/ (not sure if they upkeep this manually, just an example, though I've noticed they upkeep lot of the docs by hand [no jsdoc etc. omg]). We need to make this page visually appealing with screenshots and short descs of each examples. Easy one click run of the example. I'm thinking it should look something like the three.js landing page at http://threejs.org/ with some text and link on top what this thing actually is and what it can do. Each example should be sharable as a link so it just works when you share it (think facebook, email, slack).
Build automation to strip requirejs This is where it gets a bit tricky, but it's pretty much the same thing we are now doing for any requirejs module under After build completes and
The above thing is and looks complex, but at the end of the day its not that hard to automate with grunt. I've done exactly this with our Too much complexity? The other option is to only provide examples a) for dev mode b) for build mode But not for both, if you don't want to manually upkeep two versions of index.html+main.js. At Admino our current example system is only for the build env. This is very annoying while you are developing the examples as a developer, if you do changes to core/plugins etc. you need to roll the complete build (that lets face it, is slow as shit). I would really like to do this properly this time :) Do note that this is a task for Adminotech. Me and @cvetan5 will work on this. I'm just letting you know the plan and what the rationale and challenges are behind this. |
The new grunt stuff @cvetan5 has already ported should bring the build steps for |
This came up in a discussion with @jonnenauha . The current build system is missing a nice way to package the demos / examples along with the build.
The text was updated successfully, but these errors were encountered: