Skip to content

Commit ef934a0

Browse files
authored
Merge pull request #1029 from adumesny/develop
reduced npm package
2 parents 6d6c1ea + 5d8b3f1 commit ef934a0

File tree

8 files changed

+52
-23
lines changed

8 files changed

+52
-23
lines changed

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
dist
2-
node_modules
1+
*.log
2+
*.tgz
3+
.npmrc
34
bower_components
45
coverage
5-
*.log
6+
dist
7+
node_modules

.npmignore

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
1-
node_modules
2-
bower_components
3-
coverage
4-
*.log
5-
spec
6-
freelancer
7-
.jscsrc
1+
# Source & demo
2+
src/
3+
demo/
4+
spec/
5+
6+
# dependencies
7+
yarn.lock
8+
9+
# Configuration
810
.gitignore
9-
README.md
10-
PULL_REQUEST_TEMPLATE.md
11-
ISSUE_TEMPLATE.md
12-
protractor.conf.js
11+
.jscsrc
12+
.npmignore
1313
.travis.yml
1414
Gruntfile.js
15+
ISSUE_TEMPLATE.md
16+
PULL_REQUEST_TEMPLATE.md
17+
bower.json
18+
freelancer
1519
karma.conf.js
20+
protractor.conf.js
21+
22+
## From .gitignore:
23+
*.log
24+
*.tgz
25+
bower_components
26+
coverage/
27+
node_modules/
28+
29+
# files that might have secrets in them
30+
.npmrc

bower.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "gridstack",
3-
"version": "0.6.0-dev",
3+
"version": "0.5.1",
44
"homepage": "https://github.com/gridstack/gridstack.js",
55
"authors": [
66
"Pavel Reznikov <pashka.reznikov@gmail.com>",
7-
"Dylan Weiss <dylan.weiss@gmail.com> (https://dylandreams.com)"
7+
"Dylan Weiss <dylan.weiss@gmail.com> (https://dylandreams.com)",
8+
"Alain Dumesny <alaind831+github@gmail.com> (https://github.com/adumesny)"
89
],
910
"description": "gridstack.js is a jQuery plugin for widget layout",
1011
"main": [

doc/CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Change log
55
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
66
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
77

8+
- [v0.5.1 (2019-11-07)](#v051-2019-11-07)
89
- [v0.5.0 (2019-11-06)](#v050-2019-11-06)
910
- [v0.4.0 (2018-05-11)](#v040-2018-05-11)
1011
- [v0.3.0 (2017-04-21)](#v030-2017-04-21)
@@ -19,6 +20,10 @@ Change log
1920

2021
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2122

23+
## v0.5.1 (2019-11-07)
24+
25+
- reduced npm package size from 672k to 324k (drop demo, src and extra files)
26+
2227
## v0.5.0 (2019-11-06)
2328

2429
- emit `dropped` event when a widget is dropped from one grid into another ([#823](https://github.com/gridstack/gridstack.js/issues/823)).

doc/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ gridstack.js API
2323
- [addWidget(el[, x, y, width, height, autoPosition, minWidth, maxWidth, minHeight, maxHeight, id])](#addwidgetel-x-y-width-height-autoposition-minwidth-maxwidth-minheight-maxheight-id)
2424
- [batchUpdate()](#batchupdate)
2525
- [cellHeight()](#cellheight)
26-
- [cellHeight(val)](#cellheightval)
26+
- [cellHeight(val, noUpdate)](#cellheightval-noupdate)
2727
- [cellWidth()](#cellwidth)
2828
- [commit()](#commit)
2929
- [destroy([detachGrid])](#destroydetachgrid)
@@ -49,6 +49,7 @@ gridstack.js API
4949
- [setGridWidth(gridWidth, doNotPropagate)](#setgridwidthgridwidth-donotpropagate)
5050
- [setStatic(staticValue)](#setstaticstaticvalue)
5151
- [update(el, x, y, width, height)](#updateel-x-y-width-height)
52+
- [verticalMargin()](#verticalmargin)
5253
- [verticalMargin(value, noUpdate)](#verticalmarginvalue-noupdate)
5354
- [willItFit(x, y, width, height, autoPosition)](#willitfitx-y-width-height-autoposition)
5455
- [Utils](#utils)
@@ -251,9 +252,9 @@ Initializes batch updates. You will see no changes until `commit` method is call
251252

252253
Gets current cell height.
253254

254-
### cellHeight(val)
255+
### cellHeight(val, noUpdate)
255256

256-
Update current cell height. This method rebuilds an internal CSS stylesheet. Note: You can expect performance issues if
257+
Update current cell height. This method rebuilds an internal CSS stylesheet (unless optional noUpdate=true). Note: You can expect performance issues if
257258
call this method too often.
258259

259260
```javascript
@@ -455,6 +456,10 @@ Parameters:
455456

456457
Updates widget position/size.
457458

459+
### verticalMargin()
460+
461+
returns current vertical margin value.
462+
458463
### verticalMargin(value, noUpdate)
459464

460465
Parameters:

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gridstack",
3-
"version": "0.6.0-dev",
3+
"version": "0.5.1",
44
"description": "gridstack.js is a jQuery plugin for widget layout",
55
"main": "dist/gridstack.js",
66
"repository": {
@@ -23,7 +23,8 @@
2323
],
2424
"author": "Pavel Reznikov <pashka.reznikov@gmail.com>",
2525
"contributors": [
26-
"Dylan Weiss <dylan.weiss@gmail.com> (https://dylandreams.com)"
26+
"Dylan Weiss <dylan.weiss@gmail.com> (https://dylandreams.com)",
27+
"Alain Dumesny <alaind831+github@gmail.com> (https://github.com/adumesny)"
2728
],
2829
"license": "MIT",
2930
"bugs": {

src/gridstack.jQueryUI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack.js 0.6.0-dev
2+
* gridstack.js 0.5.0
33
* http://troolee.github.io/gridstack.js/
44
* (c) 2014-2017 Pavel Reznikov, Dylan Weiss
55
* gridstack.js may be freely distributed under the MIT license.

src/gridstack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gridstack.js 0.6.0-dev
2+
* gridstack.js 0.5.0
33
* http://troolee.github.io/gridstack.js/
44
* (c) 2014-2018 Pavel Reznikov, Dylan Weiss
55
* gridstack.js may be freely distributed under the MIT license.

0 commit comments

Comments
 (0)