Skip to content

Commit

Permalink
Merge pull request #1029 from adumesny/develop
Browse files Browse the repository at this point in the history
reduced npm package
  • Loading branch information
adumesny authored Nov 7, 2019
2 parents 6d6c1ea + 5d8b3f1 commit ef934a0
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 23 deletions.
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
dist
node_modules
*.log
*.tgz
.npmrc
bower_components
coverage
*.log
dist
node_modules
37 changes: 26 additions & 11 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
node_modules
bower_components
coverage
*.log
spec
freelancer
.jscsrc
# Source & demo
src/
demo/
spec/

# dependencies
yarn.lock

# Configuration
.gitignore
README.md
PULL_REQUEST_TEMPLATE.md
ISSUE_TEMPLATE.md
protractor.conf.js
.jscsrc
.npmignore
.travis.yml
Gruntfile.js
ISSUE_TEMPLATE.md
PULL_REQUEST_TEMPLATE.md
bower.json
freelancer
karma.conf.js
protractor.conf.js

## From .gitignore:
*.log
*.tgz
bower_components
coverage/
node_modules/

# files that might have secrets in them
.npmrc
5 changes: 3 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "gridstack",
"version": "0.6.0-dev",
"version": "0.5.1",
"homepage": "https://github.com/gridstack/gridstack.js",
"authors": [
"Pavel Reznikov <pashka.reznikov@gmail.com>",
"Dylan Weiss <dylan.weiss@gmail.com> (https://dylandreams.com)"
"Dylan Weiss <dylan.weiss@gmail.com> (https://dylandreams.com)",
"Alain Dumesny <alaind831+github@gmail.com> (https://github.com/adumesny)"
],
"description": "gridstack.js is a jQuery plugin for widget layout",
"main": [
Expand Down
5 changes: 5 additions & 0 deletions doc/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Change log
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*

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

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

## v0.5.1 (2019-11-07)

- reduced npm package size from 672k to 324k (drop demo, src and extra files)

## v0.5.0 (2019-11-06)

- emit `dropped` event when a widget is dropped from one grid into another ([#823](https://github.com/gridstack/gridstack.js/issues/823)).
Expand Down
11 changes: 8 additions & 3 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ gridstack.js API
- [addWidget(el[, x, y, width, height, autoPosition, minWidth, maxWidth, minHeight, maxHeight, id])](#addwidgetel-x-y-width-height-autoposition-minwidth-maxwidth-minheight-maxheight-id)
- [batchUpdate()](#batchupdate)
- [cellHeight()](#cellheight)
- [cellHeight(val)](#cellheightval)
- [cellHeight(val, noUpdate)](#cellheightval-noupdate)
- [cellWidth()](#cellwidth)
- [commit()](#commit)
- [destroy([detachGrid])](#destroydetachgrid)
Expand All @@ -49,6 +49,7 @@ gridstack.js API
- [setGridWidth(gridWidth, doNotPropagate)](#setgridwidthgridwidth-donotpropagate)
- [setStatic(staticValue)](#setstaticstaticvalue)
- [update(el, x, y, width, height)](#updateel-x-y-width-height)
- [verticalMargin()](#verticalmargin)
- [verticalMargin(value, noUpdate)](#verticalmarginvalue-noupdate)
- [willItFit(x, y, width, height, autoPosition)](#willitfitx-y-width-height-autoposition)
- [Utils](#utils)
Expand Down Expand Up @@ -251,9 +252,9 @@ Initializes batch updates. You will see no changes until `commit` method is call

Gets current cell height.

### cellHeight(val)
### cellHeight(val, noUpdate)

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

```javascript
Expand Down Expand Up @@ -455,6 +456,10 @@ Parameters:

Updates widget position/size.

### verticalMargin()

returns current vertical margin value.

### verticalMargin(value, noUpdate)

Parameters:
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gridstack",
"version": "0.6.0-dev",
"version": "0.5.1",
"description": "gridstack.js is a jQuery plugin for widget layout",
"main": "dist/gridstack.js",
"repository": {
Expand All @@ -23,7 +23,8 @@
],
"author": "Pavel Reznikov <pashka.reznikov@gmail.com>",
"contributors": [
"Dylan Weiss <dylan.weiss@gmail.com> (https://dylandreams.com)"
"Dylan Weiss <dylan.weiss@gmail.com> (https://dylandreams.com)",
"Alain Dumesny <alaind831+github@gmail.com> (https://github.com/adumesny)"
],
"license": "MIT",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion src/gridstack.jQueryUI.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* gridstack.js 0.6.0-dev
* gridstack.js 0.5.0
* http://troolee.github.io/gridstack.js/
* (c) 2014-2017 Pavel Reznikov, Dylan Weiss
* gridstack.js may be freely distributed under the MIT license.
Expand Down
2 changes: 1 addition & 1 deletion src/gridstack.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* gridstack.js 0.6.0-dev
* gridstack.js 0.5.0
* http://troolee.github.io/gridstack.js/
* (c) 2014-2018 Pavel Reznikov, Dylan Weiss
* gridstack.js may be freely distributed under the MIT license.
Expand Down

0 comments on commit ef934a0

Please sign in to comment.