This repository contains example applications built using Dojo.
For current progress on Dojo, contribution guidelines and other information, please visit dojo/meta.
Here is a table of the current examples available in this repository complete with code and a hosted demonstration:
We appreciate your interest!
To add an example to the project, create the example in the packages directory. In order to build and deploy the application there are a few required.
There are two required npm scripts:
The build:deploy script needs to install node modules at the beginning and remove them at the end after successfully building the example. E.g.
"build:deploy": "npm install && dojo build --dojorc .dojorc-deploy && shx rm -rf node_modules",
The package script needs move the built output into the correct directory in the main output/dist directory. E.g.
"package": "shx cp -r output/dist/ ../../output/dist/hnpwa/",
A .dojorc-deploy file that extends the base .dojorc but specifies a base of the examples directory name. E.g.
{
"extends": ".dojorc",
"build-app": {
"base": "/hnpwa/"
}
}Refer to each README.md for details on installing and testing the examples:
- todo-mvc
- todo-mvc-kitchensink
- hnpwa
- custom-element-menu
- widget-showcase
- custom-element-showcase
- dojo-cli-example
- Conduit RealWorld Application
- intersection-observer
- resize-observer
- dgrid-wrapper
- world-clock
From the root directory, run npm install and then npm run build. The built examples are output into the output/dist directory at the of the product.
© 2018 JS Foundation. New BSD license.
Link |
