Skip to content

Commit 5a0d3f6

Browse files
committed
Merge pull request #36 from ooxi/master
Break code after 80 characters
2 parents e22f948 + 5941122 commit 5a0d3f6

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

README.md

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -362,16 +362,21 @@ The amdclean `clean()` method accepts a string or an object. Below is an exampl
362362
amdclean.clean({
363363
// The source code you would like to be 'cleaned'
364364
'code': '',
365-
// The relative file path of the file to be cleaned. Use this option if you are not using the code option.
365+
// The relative file path of the file to be cleaned. Use this option if you
366+
// are not using the code option.
366367
// Hint: Use the __dirname trick
367368
'filePath': '',
368369
// The modules that you would like to set as window properties
369370
// An array of strings (module names)
370371
'globalModules': [],
371-
// Determines if all of your local modules are stored in a single global object (helps with scoping in certain cases)
372+
// Determines if all of your local modules are stored in a single global
373+
// object (helps with scoping in certain cases)
372374
'globalObject': false,
373-
// Determines the name of your global object that stores all of your global modules
374-
// Note: If using a global object, try to override this name with a smaller name since it will be referenced throughout the code (don't worry about it if you are using a minifier)
375+
// Determines the name of your global object that stores all of your global
376+
// modules
377+
// Note: If using a global object, try to override this name with a smaller
378+
// name since it will be referenced throughout the code (don't worry
379+
// about it if you are using a minifier)
375380
'globalObjectName': 'amdclean',
376381
// All esprima API options are supported: http://esprima.org/doc/
377382
'esprima': {
@@ -384,7 +389,8 @@ amdclean.clean({
384389
'escodegen': {
385390
'comment': true
386391
},
387-
// If there is a comment (that contains the following text) on the same line or one line above a specific module, the module will not be removed
392+
// If there is a comment (that contains the following text) on the same line
393+
// or one line above a specific module, the module will not be removed
388394
'commentCleanName': 'amdclean',
389395
// The ids of all of the modules that you would not like to be 'cleaned'
390396
'ignoreModules': [],
@@ -394,23 +400,28 @@ amdclean.clean({
394400
'removeAllRequires': false,
395401
// Determines if all of the 'use strict' statements will be removed
396402
'removeUseStricts': true,
397-
// Allows you to pass an expression that will override shimmed modules return values
398-
// e.g. { 'backbone': 'window.Backbone' }
403+
// Allows you to pass an expression that will override shimmed modules return
404+
// values e.g. { 'backbone': 'window.Backbone' }
399405
'shimOverrides': {},
400-
// Prevents multiple global objects from being instantiated when using the onBuildWrite Require.js hook
406+
// Prevents multiple global objects from being instantiated when using the
407+
// onBuildWrite Require.js hook
401408
// Set this to false if you are using AMDClean for more than one build AND
402409
// are using the onModuleBundleComplete Require.js hook
403410
'rememberGlobalObject': true,
404-
// Determines how to prefix a module name with when a non-JavaScript compatible character is found
411+
// Determines how to prefix a module name with when a non-JavaScript
412+
// compatible character is found
405413
// 'standard' or 'camelCase'
406414
// 'standard' example: 'utils/example' -> 'utils_example'
407415
// 'camelCase' example: 'utils/example' -> 'utilsExample'
408416
'prefixMode': 'standard',
409-
// A hook that allows you add your own custom logic to how each moduleName is prefixed/normalized
417+
// A hook that allows you add your own custom logic to how each moduleName is
418+
// prefixed/normalized
410419
'prefixTransform': function(moduleName) { return moduleName; },
411420
// Wrap any build bundle in a start and end text specified by wrap
412-
// This should only be used when using the onModuleBundleComplete RequireJS Optimizer build hook
413-
// If it is used with the onBuildWrite RequireJS Optimizer build hook, each module will get wrapped
421+
// This should only be used when using the onModuleBundleComplete RequireJS
422+
// Optimizer build hook
423+
// If it is used with the onBuildWrite RequireJS Optimizer build hook, each
424+
// module will get wrapped
414425
'wrap': {
415426
'start': '',
416427
'end': ''

0 commit comments

Comments
 (0)