-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add vendor autosize & update kiniditech-pagebuilder
- Loading branch information
1 parent
67dc870
commit f0c7e1e
Showing
22 changed files
with
2,254 additions
and
913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "autosize", | ||
"description": "Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.", | ||
"dependencies": {}, | ||
"keywords": [ | ||
"textarea", | ||
"form", | ||
"ui" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Jack Moore", | ||
"url": "http://www.jacklmoore.com", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"license": "MIT", | ||
"homepage": "http://www.jacklmoore.com/autosize", | ||
"ignore": [], | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/jackmoore/autosize.git" | ||
}, | ||
"main": "dist/autosize.js", | ||
"moduleType": [ | ||
"amd", | ||
"node" | ||
], | ||
"version": "3.0.15", | ||
"_release": "3.0.15", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "3.0.15", | ||
"commit": "82ba655a20a5939e93d967c883a3c413973bc480" | ||
}, | ||
"_source": "https://github.com/jackmoore/autosize.git", | ||
"_target": "^3.0.15", | ||
"_originalSource": "autosize" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/* | ||
test/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 Jack Moore | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "autosize", | ||
"description": "Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.", | ||
"dependencies": {}, | ||
"keywords": [ | ||
"textarea", | ||
"form", | ||
"ui" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Jack Moore", | ||
"url": "http://www.jacklmoore.com", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"license": "MIT", | ||
"homepage": "http://www.jacklmoore.com/autosize", | ||
"ignore": [], | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/jackmoore/autosize.git" | ||
}, | ||
"main": "dist/autosize.js", | ||
"moduleType": [ | ||
"amd", | ||
"node" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
var pkg = require('./package.json'); | ||
var fs = require('fs'); | ||
var ugly = require('uglify-js'); | ||
var jshint = require('jshint').JSHINT; | ||
var babel = require('babel'); | ||
var gaze = require('gaze'); | ||
|
||
function writeBower() { | ||
var bower = { | ||
name: pkg.config.bower.name, | ||
description: pkg.description, | ||
dependencies: pkg.dependencies, | ||
keywords: pkg.keywords, | ||
authors: [pkg.author], | ||
license: pkg.license, | ||
homepage: pkg.homepage, | ||
ignore: pkg.config.bower.ignore, | ||
repository: pkg.repository, | ||
main: pkg.main, | ||
moduleType: pkg.config.bower.moduleType, | ||
}; | ||
fs.writeFile('bower.json', JSON.stringify(bower, null, '\t')); | ||
return true; | ||
} | ||
|
||
function lint(full) { | ||
jshint(full.toString(), { | ||
browser: true, | ||
undef: true, | ||
unused: true, | ||
immed: true, | ||
eqeqeq: true, | ||
eqnull: true, | ||
noarg: true, | ||
predef: ['define', 'module', 'exports', 'Set'] | ||
}); | ||
|
||
if (jshint.errors.length) { | ||
jshint.errors.forEach(function (err) { | ||
console.log(err.line+':'+err.character+' '+err.reason); | ||
}); | ||
} else { | ||
console.log('linted') | ||
} | ||
|
||
return true; | ||
} | ||
|
||
function build(code) { | ||
var minified = ugly.minify(code, {fromString: true}).code; | ||
var header = [ | ||
'/*!', | ||
' '+pkg.config.title+' '+pkg.version, | ||
' license: MIT', | ||
' '+pkg.homepage, | ||
'*/', | ||
'' | ||
].join('\n'); | ||
|
||
fs.writeFile('dist/'+pkg.config.filename+'.js', header+code); | ||
fs.writeFile('dist/'+pkg.config.filename+'.min.js', header+minified); | ||
writeBower(); | ||
|
||
console.log('dist built'); | ||
} | ||
|
||
function transform(filepath) { | ||
babel.transformFile(filepath, {modules: 'umd'}, function (err,res) { | ||
if (err) { | ||
return console.log(err); | ||
} else { | ||
lint(res.code); | ||
build(res.code); | ||
} | ||
}); | ||
} | ||
|
||
gaze('src/'+pkg.config.filename+'.js', function(err, watcher){ | ||
// On file changed | ||
this.on('changed', function(filepath) { | ||
transform(filepath); | ||
}); | ||
|
||
console.log('watching'); | ||
}); | ||
|
||
transform('src/'+pkg.config.filename+'.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
## Changelog | ||
|
||
##### v.3.0.15 - 2016-1-26 | ||
* Used newer Event constructor, when available. Fixes #280. | ||
|
||
##### v.3.0.14 - 2015-11-11 | ||
* Fixed memory leak on destroy. Merged #271, fixes #270. | ||
* Fixed bug in old versions of Firefox (1-5), fixes #246. | ||
|
||
##### v.3.0.13 - 2015-09-26 | ||
* Fixed scroll-bar jumpiness in iOS. Merged #261, fixes #207. | ||
* Fixed reflowing of initial text in Chrome and Safari. | ||
|
||
##### v.3.0.12 - 2015-09-14 | ||
* Merged changes were discarded when building new dist files. Merged #255, Fixes #257 for real this time. | ||
|
||
##### v.3.0.11 - 2015-09-14 | ||
* Fixed regression from 3.0.10 that caused an error with ES5 browsers. Merged #255, Fixes #257. | ||
|
||
##### v.3.0.10 - 2015-09-10 | ||
* Removed data attribute as a way of tracking which elements autosize has been assigned to. fixes #254, fixes #200. | ||
|
||
##### v.3.0.9 - 2015-09-02 | ||
* Fixed issue with assigning autosize to detached nodes. Merged #253, Fixes #234. | ||
|
||
##### v.3.0.8 - 2015-06-29 | ||
* Fixed the `autosize:resized` event not being triggered when the overflow changes. Fixes #244. | ||
|
||
##### v.3.0.7 - 2015-06-29 | ||
* Fixed jumpy behavior in Windows 8.1 mobile. Fixes #239. | ||
|
||
##### v.3.0.6 - 2015-05-19 | ||
* Renamed 'dest' folder to 'dist' to follow common conventions. | ||
|
||
##### v.3.0.5 - 2015-05-18 | ||
* Do nothing in Node.js environment. | ||
|
||
##### v.3.0.4 - 2015-05-05 | ||
* Added options object for indicating if the script should set the overflowX and overflowY. The default behavior lets the script control the overflows, which will normalize the appearance between browsers. Fixes #220. | ||
|
||
##### v.3.0.3 - 2015-04-23 | ||
* Avoided adjusting the height for hidden textarea elements. Fixes #155. | ||
|
||
##### v.3.0.2 - 2015-04-23 | ||
* Reworked to respect max-height of any unit-type. Fixes #191. | ||
|
||
##### v.3.0.1 - 2015-04-23 | ||
* Fixed the destroy event so that it removes its own event handler. Fixes #218. | ||
|
||
##### v.3.0.0 - 2015-04-15 | ||
* Added new methods for updating and destroying: | ||
|
||
* autosize.update(elements) | ||
* autosize.destroy(elements) | ||
|
||
* Renamed custom events as to not use jQuery's custom events namespace: | ||
|
||
* autosize.resized renamed to autosize:resized | ||
* autosize.update renamed to autosize:update | ||
* autosize.destroy renamed to autosize:destroy | ||
|
||
##### v.2.0.1 - 2015-04-15 | ||
* Version bump for NPM publishing purposes | ||
|
||
##### v.2.0.0 - 2015-02-25 | ||
|
||
* Smaller, simplier code-base | ||
* New API. Example usage: `autosize(document.querySelectorAll(textarea));` | ||
* Dropped jQuery dependency | ||
* Dropped IE7-IE8 support | ||
* Dropped optional parameters | ||
* Closes #98, closes #106, closes #123, fixes #129, fixes #132, fixes #139, closes #140, closes #166, closes #168, closes #192, closes #193, closes #197 |
Oops, something went wrong.