Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
metallurgical committed May 15, 2018
2 parents 44506fc + 3859f4a commit b6203be
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 36 deletions.
22 changes: 19 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,25 @@

## [v1.4.0] - 2018-05-15
### Added
- Compatibility to the latest stable of jquery version(v3.3.1)
- Checking for selector of element during plugin initialisation
- ** Will remove "trash" image inside popup(table rows cloned) and replaced with font-awesome in next release
- refactor code and remove unused code
- add custom class name for clone limit span element metal-clone-limit
- add custom class name for remove button metal-btn-remove
- add btnRemoveClass option
- add btnCloneClass option
- add fontAwesomeTheme option
- add fontAwesomeRemoveClass option
- add fontAwesomeAddClass option
- add fontAwesomeAddDataTransform option
- add fontAwesomeAddDataMask option
- add fontAwesomeRemoveDataTransform option
- add fontAwesomeRemoveDataMask option
- add enableConfirmMessage option
- add confirmMessageText option
- add enableIcon option
- add enableAnimation option
- add animationSpeed option
- add enableScrollTop option
- add scrollTopSpeed option

## [v1.3.0] - 2018-04-27
### Added
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Simple plugin to clone HTML DOM element.
# How To Install #

## Bower
- `bower install jquery-metal-clone --save`
`bower install jquery-metal-clone --save`

## Yarn
- `yarn add jquery-metal-clone`
`yarn add jquery-metal-clone`

## Npm
- `npm install jquery-metal-clone --save`
`npm install jquery-metal-clone --save`

Installation is so very easy. Download the current stable and see the example in Demo page. Here is the manual step to follow :

Expand Down
43 changes: 13 additions & 30 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,55 +9,38 @@ var uglify = require('gulp-uglify');

//this plugin for debug js file, will display error and correction into console
gulp.task('jshint', function(){

var srcJs = './jquery.metalClone.js'; // js source files
gulp.src(srcJs)
.pipe(jshint())
.pipe(jshint.reporter('default'));
});





//this function to concat(can be used to concat css file also) all js file and code, strip empty space js file
//This example passes an array of filenames to gulp.src(); I want scripts.js to appear at the top of the production file followed by all other JavaScript files in any order.
// Concat(can be used to concat css file also) all js file and code, strip empty space js file
gulp.task('myJs', function(){

gulp.src(['./jquery.metalClone.js'])
.pipe(concat('jquery.metalClone.min.js'))
.pipe(uglify())
.pipe(gulp.dest('./'));
});




//to run all the task sekaligus(sequence) guna code ni
//just run 'gulp' command on console to run the default task
gulp.task('default', ['jshint','myJs'], function(){

// Watch for HTML changes
gulp.watch('./src/*.html', function() {
gulp.run('minifyHtml');
});

// Watch for JS changes
gulp.watch('./src/scripts/*.js', function() {
gulp.run('jshint', 'scripts');
});

/********************************** optional buang kod dalm block ni shaja klu xse(to watch the changes realtime use this)**********/

// watch for HTML changes
gulp.watch('./src/*.html', function() {
gulp.run('minifyHtml');
});

// watch for JS changes
gulp.watch('./src/scripts/*.js', function() {
gulp.run('jshint', 'scripts');
});

// watch for CSS changes
gulp.watch('./src/styles/*.css', function() {
gulp.run('css');
});

/***************************** end optional **************************/

// Watch for CSS changes
gulp.watch('./src/styles/*.css', function() {
gulp.run('css');
});
});


Expand Down

0 comments on commit b6203be

Please sign in to comment.