Skip to content

Commit 03374bc

Browse files
author
Hesam Bahrami (Genzo)
committed
Merge branch 'release/4.0.0'
2 parents cc02caa + 94422d5 commit 03374bc

9 files changed

+11
-17
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ Using npm:
1414
$ npm i nested-sort
1515
```
1616

17-
## Demo
18-
19-
There are some samples in the `dev` folder.
20-
2117
## Developer environment requirements
2218

2319
To run this project, you will need:
@@ -48,8 +44,6 @@ This will regenerate the build files each time a source file is changed and serv
4844

4945
If your package works in the browser, you can open `dev/index.html` to try it out.
5046

51-
## Publishing
47+
## Demo
5248

53-
```sh
54-
npm publish
55-
```
49+
There are some samples in the `dev` folder. In order to see them in action, first run `yarn watch` and then navigate to: `http://127.0.0.1:5000/dev/`

dev/data-driven-list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h1>A data-driven list</h1>
4343
{ id: 113, text: 'One-One-Three', parent: 11 },
4444
]
4545

46-
new nestedSort({
46+
new NestedSort({
4747
actions: {
4848
onDrop: function (data) {
4949
console.log(data)

dev/mapped-data-driven-list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h1>A mapped data-driven list</h1>
3636
{ item_id: 113, item_title: 'One-One-Three', item_parent: 11 },
3737
]
3838

39-
new nestedSort({
39+
new NestedSort({
4040
actions: {
4141
onDrop: function (data) {
4242
console.log(data)

dev/server-rendered-list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h1>A server-rendered list</h1>
3737
<script src="../dist/nested-sort.umd.js"></script>
3838
<script>
3939
(function() {
40-
new nestedSort({
40+
new NestedSort({
4141
actions: {
4242
onDrop: function (data) {
4343
console.log(data)

dev/server-rendered-multiple-lists.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h2>List 2</h2>
4545
<script>
4646
(function() {
4747
document.querySelectorAll('.draggable').forEach(function (list) {
48-
new nestedSort({
48+
new NestedSort({
4949
actions: {
5050
onDrop: function (data) {
5151
console.log(data)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nested-sort",
3-
"version": "3.0.0",
3+
"version": "4.0.0",
44
"author": "Hesam Bahrami (Genzo)",
55
"description": "A JavaScript library to create a nested list of elements",
66
"main": "dist/nested-sort.cjs.js",

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default [
88
{
99
input: 'src/main.js',
1010
output: {
11-
name: 'nestedSort',
11+
name: 'NestedSort',
1212
file: pkg.browser,
1313
format: 'umd',
1414
},

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import DataEngine from './data-engine'
22

3-
class nestedSort {
3+
class NestedSort {
44

55
/**
66
* @constructor
@@ -349,4 +349,4 @@ class nestedSort {
349349
}
350350
}
351351

352-
export default nestedSort;
352+
export default NestedSort;

src/main.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import nestedSort from './main'
1+
import NestedSort from './main'
22

33
describe('sample', () => {
44
it('should work', () => {

0 commit comments

Comments
 (0)