This repository contains example applications built using Dojo 2.
For current progress on Dojo 2, contribution guidelines and other information, please visit dojo/meta
.
Currently, the examples assume you have a version of NodeJS 6 or later installed globally and available on the command line. Also, if you wish to see some of the examples, you will need a local web server installed.
First, clone the repository locally:
> git clone https://github.com/dojo/examples.git
Then change directory to the example you wish to work with and use npm to install the dependencies:
> cd todo-mvc
> npm install
If you don't have Grunt installed globally, you will need to do so:
> npm install -g grunt
To build a version of a web application you can access, the default task for Grunt will do so:
> grunt
Assuming that the root of this repository is available on your local web server under /examples
then the
application should be available on http://localhost/examples/todo-mvc/_build/src/
or http://localhost/examples/todo-mvc-kitchensink/_build/src/
Assuming that you are working on a clone of the repository on the branch that you would like to deploy (typically master
)
This assumes that npm & typings & dojo-cli have been installed for the example applications.
./scripts/gh-pages-publish.sh
The latest version(s) will now be available on github pages.
There are currently three examples:
- todo-mvc - A reference implementation of TodoMVC built with current Dojo 2 packages.
- todo-mvc-kitchensink - A feature-rich version of TodoMVC, built Dojo 2 packages.
- todo-mvc-tsx - A reference implementation of TodoMVC built using
tsx
, Redux and Dojo 2 packages. - dojo-cli-example - An example of working with
@dojo/cli
.
Application examples that are deployed to gh-pages:
We appreciate your interest! Please see the Dojo Meta Repository for the Contributing Guidelines and Style Guide.
Refer to each README.md
for details on installing the example.
Refer to each README.md
for details on testing the example.
© 2017 JS Foundation. New BSD license.