Sample "To Do" application powered by dna.js and built with webpack
JavaScript HTML Shell CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
.travis.yml
LICENSE.txt
README.md
build.sh.command
package.json
webpack.config.js

README.md

dnajs-webpack-to-do-app

logo

Sample "To Do" application powered by dna.js and built with webpack

Build Status

Build the project by running build.sh.command or by using the commands:

$ cd dnajs-webpack-to-do-app
$ npm update
$ npm run build
$ open dist/index.html

The build process creates a dist folder:

dnajs-webpack-to-do-app/
   dist/
      bundle.css
      bundle.js
      index.html

webpack treats the dna.js library as a module.  Use require statements in your application to pull in the library's CSS and JavaScript:

require('dna.js/dna.css');
var $ = require('jquery');
var dna = require('dna.js')(window, $);

Then use dna.registerContext(appName, appObject) to expose your application so its functions can be used as callbacks from web pages:

var myApp = { doSomething: function() { ... } };
dna.registerContext('myApp', myApp);

See the example code in app.js.


MIT License