|
| 1 | +<h1 align="center">durandal-es6</h3> |
| 2 | + |
| 3 | +<div align="center"> |
| 4 | +A proof of concept of having DurandalJS not need to use RequireJS, enabling use of modern tooling for bundling Durandal SPA</p> |
| 5 | +<br /> |
| 6 | +<a href="https://scontent44.github.io">View Demo</a> · <a href="https://github.com/SContent44/durandal-es6/issues">Report Bug</a> |
| 7 | +</div> |
| 8 | + |
| 9 | +<!-- TABLE OF CONTENTS --> |
| 10 | + |
| 11 | +## Table of Contents |
| 12 | + |
| 13 | +- [About the Project](#about-the-project) |
| 14 | + |
| 15 | +* [Built With](#built-with) |
| 16 | + |
| 17 | +- [Getting Started](#getting-started) |
| 18 | + |
| 19 | + - [Installation](#installation) |
| 20 | + |
| 21 | +- [Usage](#usage) |
| 22 | + |
| 23 | +* [License](#license) |
| 24 | + |
| 25 | +<!-- ABOUT THE PROJECT --> |
| 26 | + |
| 27 | +## About The Project |
| 28 | + |
| 29 | +This is written as a proof of concept and testing ground for being able to run [DurandalJS](https://github.com/BlueSpire/Durandal) without having to use RequireJS and instead using module imports. |
| 30 | + |
| 31 | +This library achieves this by changing the `acquire` function in the System module and updating the behavior throughout for this change. |
| 32 | + |
| 33 | +This is only designed for people who are currently using DurandalJS and are looking for an in place - for example using the same build tooling (such as Webpack or Rollup). |
| 34 | + |
| 35 | +### Built With |
| 36 | + |
| 37 | +This work is of course based on top of [DurandalJS](https://github.com/BlueSpire/Durandal). |
| 38 | + |
| 39 | +It still makes use of the following libraries: |
| 40 | + |
| 41 | +- [jQuery](https://github.com/jquery/jquery) - updated to 3.5.1 to avoid security vulnerabilities |
| 42 | + |
| 43 | +* [jQuery Migrate](https://github.com/jquery/jquery-migrate) - for enabling use of deprecated APIs (The dialog module still has some deprecated code) |
| 44 | + |
| 45 | +- [KnockoutJs](https://github.com/knockout/knockout) |
| 46 | + |
| 47 | +<!-- GETTING STARTED --> |
| 48 | + |
| 49 | +## Getting Started |
| 50 | + |
| 51 | +You can find the library on npmjs. |
| 52 | + |
| 53 | +You can also clone down the repo which includes a starter-kit site. This is largely the same as the Durandal Starterkit site with a change to use [Lorem Picsum](https://picsum.photos/) instead of Flickr and a page for Knockout components (this is more as a demonstration around the Component loader using Webpack). |
| 54 | + |
| 55 | +### Installation |
| 56 | + |
| 57 | +If you clone down repo you will just need to follow these steps from the root of the folder: |
| 58 | + |
| 59 | +- Clone the repo |
| 60 | + |
| 61 | +* In the root folder run `npm install` |
| 62 | + |
| 63 | +- In the root folder run `npm lerna-setup` to clean any current node_modules in child folders and bootstrap the packages |
| 64 | + |
| 65 | +* You can then run: |
| 66 | + |
| 67 | +- `npm dev-starter` to run a webpack-dev-server of the starterkit |
| 68 | + |
| 69 | +* `npm build-starter` to build the starterkit with Webpack |
| 70 | + |
| 71 | +<!-- LICENSE --> |
| 72 | + |
| 73 | +## License |
| 74 | + |
| 75 | +Distributed under the MIT License. See `LICENSE` for more information. |
0 commit comments