Skip to content

Commit bfa911f

Browse files
committed
Initial commit
0 parents  commit bfa911f

31 files changed

+18901
-0
lines changed

.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/*.spec.js
2+
*.tgz

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Simon Buckley
4+
Copyright (c) 2012 Blue Spire Consulting, Inc.
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

README.md

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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.

babel.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
"@babel/preset-env",
5+
{
6+
targets: {
7+
node: "current",
8+
},
9+
},
10+
],
11+
],
12+
};

0 commit comments

Comments
 (0)