Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
57 changes: 57 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
module.exports = function (grunt) {
"use strict";

var livereload = {
host: 'localhost',
port: 35729
};

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
build: {
all: {
dest: "dist/jquery.textselection.js"
}
},
uglify: {
all: {
files: {
"dist/jquery.textselection.min.js": ["dist/jquery.textselection.js"]
},
options: {
preserveComments: false,
sourceMap: true,
ASCIIOnly: true,
sourceMapName: "dist/jquery.textselection.min.map",
report: "min",
beautify: {
"ascii_only": true
},
banner: "/*! jQuery TextSelection v<%= pkg.version %> | GPL-3.0 license */",
compress: {
"hoist_funs": false,
loops: false,
unused: false
}
}
}
},
watch: {
js: {
files: [
'src/**/*.js'
],
tasks: ['build'],
options: {
livereload: livereload
}
}
},
});

grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadTasks("tasks");

grunt.registerTask("default", ["build", "uglify"]);
};
File renamed without changes.
186 changes: 0 additions & 186 deletions Selection-1.0.js

This file was deleted.

21 changes: 21 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "jquery-textselection",
"homepage": "https://github.com/jhorowitz-firedrum/jquery-textselection",
"authors": [
"David Furfero <furftastic@yahoo.com",
"Jonathan Horowitz <jhorowitz@firedrum.com>"
],
"main": "dist/jquery.textselection.min.js",
"dependencies": {
"jquery": ">=1.7"
},
"description": "A library of jQuery plugins for selecting, inserting, and replacing text within form elements",
"keywords": [],
"license": "GPL-3.0",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"tests"
]
}
Loading