This repository has been archived by the owner on Dec 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
106 additions
and
131 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,35 +1,61 @@ | ||
module.exports = function(grunt) { | ||
var license = grunt.file.read('LICENSE'); | ||
var githubUrl = 'https://github.com/akopachov/mini-linq-js'; | ||
grunt.initConfig({ | ||
uglify: { | ||
options: { | ||
preserveComments: false, | ||
banner: '/* ! ' + githubUrl + ' */\n/* !\n' + license + '\n */\n' | ||
}, | ||
core: { | ||
files: { | ||
'dist/mini-linq.min.js': ['src/mini-linq.js'] | ||
} | ||
}, | ||
coreAndLazy: { | ||
files: { | ||
'dist/mini-linq.with-lazy.min.js': ['src/mini-linq.js', 'src/mini-linq.lazy.js'] | ||
} | ||
}, | ||
coreAndKnockout: { | ||
files: { | ||
'dist/mini-linq.with-knockout.min.js': ['src/mini-linq.js', 'src/mini-linq.knockout.js'] | ||
} | ||
}, | ||
full: { | ||
files: { | ||
'dist/mini-linq.full.min.js': ['src/mini-linq.js', 'src/mini-linq.lazy.js', 'src/mini-linq.knockout.js'] | ||
} | ||
} | ||
} | ||
}); | ||
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | ||
|
||
grunt.registerTask('default', ['uglify']); | ||
module.exports = function(grunt) { | ||
var license = grunt.file.read('LICENSE'); | ||
var githubUrl = 'https://github.com/akopachov/mini-linq-js'; | ||
grunt.initConfig({ | ||
copy: { | ||
core: { | ||
src: 'src/mini-linq.js', | ||
dest: 'dist/mini-linq.min.js', | ||
options: { | ||
process: function (content, srcpath) { | ||
return content.replace('/* ADDITIONAL_ATTACHMENTS */', ''); | ||
} | ||
} | ||
}, | ||
coreAndLazy: { | ||
src: 'src/mini-linq.js', | ||
dest: 'dist/mini-linq.with-lazy.min.js', | ||
options: { | ||
process: function (content, srcpath) { | ||
return content.replace('/* ADDITIONAL_ATTACHMENTS */', grunt.file.read('src/mini-linq.lazy.js')); | ||
} | ||
} | ||
}, | ||
coreAndKnockout: { | ||
src: 'src/mini-linq.js', | ||
dest: 'dist/mini-linq.with-knockout.min.js', | ||
options: { | ||
process: function (content, srcpath) { | ||
return content.replace('/* ADDITIONAL_ATTACHMENTS */', grunt.file.read('src/mini-linq.knockout.js')); | ||
} | ||
} | ||
}, | ||
full: { | ||
src: 'src/mini-linq.js', | ||
dest: 'dist/mini-linq.full.min.js', | ||
options: { | ||
process: function (content, srcpath) { | ||
return content.replace('/* ADDITIONAL_ATTACHMENTS */', grunt.file.read('src/mini-linq.lazy.js') + grunt.file.read('src/mini-linq.knockout.js')); | ||
} | ||
} | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
preserveComments: false, | ||
banner: '/* ! ' + githubUrl + ' */\n/* !\n' + license + '\n */\n' | ||
}, | ||
build: { | ||
files: [{ | ||
expand: true, | ||
cwd: 'dist/', | ||
src: '*.js', | ||
dest: 'dist/' | ||
}] | ||
} | ||
} | ||
}); | ||
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | ||
|
||
grunt.registerTask('default', ['copy', 'uglify']); | ||
}; |
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 |
---|---|---|
@@ -1,32 +1,36 @@ | ||
{ | ||
"name": "mini-linq-js", | ||
"version": "1.3.1", | ||
"description": "LINQ for JavaScript library, which allows to work with arrays in a more easy way and focus on business logic.", | ||
"homepage": "https://github.com/akopachov/mini-linq-js", | ||
"keywords": ["linq", "array"], | ||
"license": "MIT", | ||
"main": "dist/mini-linq.full.min.js", | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "https://github.com/akopachov/mini-linq-js.git" | ||
}, | ||
"author": { | ||
"name" : "Alex Kopachov", | ||
"email" : "alex.kopachov@gmail.com", | ||
"url" : "https://www.linkedin.com/in/akopachov" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src", | ||
"README.md", | ||
"tests", | ||
"gruntfile.js" | ||
], | ||
"devDependencies": { | ||
"mocha": "^2.5.0", | ||
"unit.js": "^2.0.0", | ||
"grunt": "^1.0.1", | ||
"grunt-contrib-uglify": "^1.0.1", | ||
"matchdep": "^1.0.1" | ||
} | ||
} | ||
{ | ||
"name": "mini-linq-js", | ||
"version": "1.3.2", | ||
"description": "LINQ for JavaScript library, which allows to work with arrays in a more easy way and focus on business logic.", | ||
"homepage": "https://github.com/akopachov/mini-linq-js", | ||
"keywords": [ | ||
"linq", | ||
"array" | ||
], | ||
"license": "MIT", | ||
"main": "dist/mini-linq.full.min.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/akopachov/mini-linq-js.git" | ||
}, | ||
"author": { | ||
"name": "Alex Kopachov", | ||
"email": "alex.kopachov@gmail.com", | ||
"url": "https://www.linkedin.com/in/akopachov" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src", | ||
"README.md", | ||
"tests", | ||
"gruntfile.js" | ||
], | ||
"devDependencies": { | ||
"grunt": "^1.0.1", | ||
"grunt-contrib-copy": "^1.0.0", | ||
"grunt-contrib-uglify": "^1.0.1", | ||
"matchdep": "^1.0.1", | ||
"mocha": "^2.5.0", | ||
"unit.js": "^2.0.0" | ||
} | ||
} |
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
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