You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
11 KiB

  1. {
  2. "name": "grunt-contrib-uglify",
  3. "description": "Minify files with UglifyJS.",
  4. "version": "0.2.0",
  5. "homepage": "https://github.com/gruntjs/grunt-contrib-uglify",
  6. "author": {
  7. "name": "Grunt Team",
  8. "url": "http://gruntjs.com/"
  9. },
  10. "repository": {
  11. "type": "git",
  12. "url": "git://github.com/gruntjs/grunt-contrib-uglify.git"
  13. },
  14. "bugs": {
  15. "url": "https://github.com/gruntjs/grunt-contrib-uglify/issues"
  16. },
  17. "licenses": [
  18. {
  19. "type": "MIT",
  20. "url": "https://github.com/gruntjs/grunt-contrib-uglify/blob/master/LICENSE-MIT"
  21. }
  22. ],
  23. "main": "Gruntfile.js",
  24. "engines": {
  25. "node": ">= 0.8.0"
  26. },
  27. "scripts": {
  28. "test": "grunt test"
  29. },
  30. "dependencies": {
  31. "uglify-js": "~2.2.1",
  32. "grunt-lib-contrib": "~0.6.0"
  33. },
  34. "devDependencies": {
  35. "grunt-contrib-jshint": "~0.2.0",
  36. "grunt-contrib-nodeunit": "~0.1.2",
  37. "grunt-contrib-clean": "~0.4.0",
  38. "grunt-contrib-internal": "~0.4.2",
  39. "grunt": "~0.4.0"
  40. },
  41. "peerDependencies": {
  42. "grunt": "~0.4.0"
  43. },
  44. "keywords": [
  45. "gruntplugin"
  46. ],
  47. "contributors": [
  48. {
  49. "name": "\"Cowboy\" Ben Alman",
  50. "url": "http://benalman.com"
  51. },
  52. {
  53. "name": "Tyler Kellen",
  54. "url": "http://goingslowly.com"
  55. },
  56. {
  57. "name": "Jarrod Overson",
  58. "url": "http://jarrodoverson.com"
  59. }
  60. ],
  61. "readme": "# grunt-contrib-uglify [![Build Status](https://secure.travis-ci.org/gruntjs/grunt-contrib-uglify.png?branch=master)](http://travis-ci.org/gruntjs/grunt-contrib-uglify)\n\n> Minify files with UglifyJS.\n\n\n\n## Getting Started\nThis plugin requires Grunt `~0.4.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-contrib-uglify --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-contrib-uglify');\n```\n\n\n\n\n## Uglify task\n_Run this task with the `grunt uglify` command._\n\nTask targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.\n### Options\n\nThis task primarily delegates to [UglifyJS2][], so please consider the [UglifyJS documentation][] as required reading for advanced configuration.\n\n[UglifyJS2]: https://github.com/mishoo/UglifyJS2\n[UglifyJS documentation]: http://lisperator.net/uglifyjs/\n\n#### mangle\nType: `Boolean` `Object`\nDefault: `{}`\n\nTurn on or off mangling with default options. If an `Object` is specified, it is passed directly to `ast.mangle_names()` *and* `ast.compute_char_frequency()` (mimicking command line behavior).\n\n#### compress\nType: `Boolean` `Object`\nDefault: `{}`\n\nTurn on or off source compression with default options. If an `Object` is specified, it is passed as options to `UglifyJS.Compressor()`.\n\n#### beautify\nType: `Boolean` `Object`\nDefault: `false`\n\nTurns on beautification of the generated source code. An `Object` will be merged and passed with the options sent to `UglifyJS.OutputStream()`\n\n#### report\nChoices: `false` `'min'` `'gzip'`\nDefault: `false`\n\nEither do not report anything, report only minification result, or report minification and gzip results. This is useful to see exactly how well Uglify is performing, but using `'gzip'` can add 5-10x runtime task execution.\n\nExample ouput using `'gzip'`:\n\n```\nOriginal: 198444 bytes.\nMinified: 101615 bytes.\nGzipped: 20084 bytes.\n```\n\n#### sourceMap\nType: `String` `Function`\nDefault: `undefined`\n\nThe location to output the sourcemap. If a function is provided, the uglify destination is passed as the argument\nand the return value will be used as the sourceMap name.\n\n#### sourceMapRoot\nType: `String`\nDefault: `undefined`\n\nThe location where your source files can be found. This option sets the root location in the sourcemap file itself.\n\n#### sourceMapIn\nType: `String`\nDefault: `undefined`\n\nThe location of an input source map from an earlier compilation, e.g. from CoffeeScript.\n\n#### sourceMappingURL\nType: `String` `Function`\nDefault: `undefined`\n\nThe location of your sourcemap. Defaults to the location you use for sourceMap, override if you need finer control. Provide\na function to dynamically generate the sourceMappingURL based off the destination.\n\n#### sourceMapPrefix\nType: `Number`\nDefault: `undefined`\n\nThe number of directories to drop from the path prefix when declaring files in the source map.\n\n#### wrap\nType: `String`\nDefault: `undefined`\n\nWrap all of the code in a closure, an easy way to make sure nothing is leaking.\nFor variables that need to be public `exports` and `global` variables are made available.\nThe value of wrap is the global variable exports will be available as.\n\n#### exportAll\nType: `Boolean`\nDefault: `false`\n\nWhen using `wrap` this will make all global functions and variables available via the export variable.\n\n#### preserveComments\nType: `Boolean` `String` `Function`\nDefault: `undefined`\nOptions: `false` `'all'` `'some'`\n\nTurn on preservation of comments.\n\n- `false` will strip all comments\n- `'all
  62. "readmeFilename": "README.md",
  63. "_id": "grunt-contrib-uglify@0.2.0",
  64. "_from": "grunt-contrib-uglify@"
  65. }