forked from chyingp/grunt-inline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
npm-debug.log
78 lines (78 loc) · 11 KB
/
npm-debug.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'publish' ]
2 info using [email protected]
3 info using [email protected]
4 verbose publish [ '.' ]
5 verbose cache add [ '.', null ]
6 verbose cache add name=undefined spec="." args=[".",null]
7 verbose parsed url { protocol: null,
7 verbose parsed url slashes: null,
7 verbose parsed url auth: null,
7 verbose parsed url host: null,
7 verbose parsed url port: null,
7 verbose parsed url hostname: null,
7 verbose parsed url hash: null,
7 verbose parsed url search: null,
7 verbose parsed url query: null,
7 verbose parsed url pathname: '.',
7 verbose parsed url path: '.',
7 verbose parsed url href: '.' }
8 silly lockFile 3a52ce78- .
9 verbose lock . /Users/igal_steklov/.npm/3a52ce78-.lock
10 verbose tar pack [ '/Users/igal_steklov/.npm/wix-grunt-inline/0.3.3/package.tgz',
10 verbose tar pack '.' ]
11 verbose tarball /Users/igal_steklov/.npm/wix-grunt-inline/0.3.3/package.tgz
12 verbose folder .
13 info prepublish [email protected]
14 silly lockFile 1f1177db-tar tar://.
15 verbose lock tar://. /Users/igal_steklov/.npm/1f1177db-tar.lock
16 silly lockFile a8cc7445-x-grunt-inline-0-3-3-package-tgz tar:///Users/igal_steklov/.npm/wix-grunt-inline/0.3.3/package.tgz
17 verbose lock tar:///Users/igal_steklov/.npm/wix-grunt-inline/0.3.3/package.tgz /Users/igal_steklov/.npm/a8cc7445-x-grunt-inline-0-3-3-package-tgz.lock
18 silly lockFile 1f1177db-tar tar://.
19 silly lockFile 1f1177db-tar tar://.
20 silly lockFile a8cc7445-x-grunt-inline-0-3-3-package-tgz tar:///Users/igal_steklov/.npm/wix-grunt-inline/0.3.3/package.tgz
21 silly lockFile a8cc7445-x-grunt-inline-0-3-3-package-tgz tar:///Users/igal_steklov/.npm/wix-grunt-inline/0.3.3/package.tgz
22 silly lockFile 27d8710b-m-wix-grunt-inline-0-3-3-package /Users/igal_steklov/.npm/wix-grunt-inline/0.3.3/package
23 verbose lock /Users/igal_steklov/.npm/wix-grunt-inline/0.3.3/package /Users/igal_steklov/.npm/27d8710b-m-wix-grunt-inline-0-3-3-package.lock
24 silly lockFile 27d8710b-m-wix-grunt-inline-0-3-3-package /Users/igal_steklov/.npm/wix-grunt-inline/0.3.3/package
25 silly lockFile 27d8710b-m-wix-grunt-inline-0-3-3-package /Users/igal_steklov/.npm/wix-grunt-inline/0.3.3/package
26 silly lockFile 3a52ce78- .
27 silly lockFile 3a52ce78- .
28 silly publish { author:
28 silly publish { name: '程序猿小卡',
28 silly publish email: '[email protected]',
28 silly publish url: 'https://github.com/chyingp' },
28 silly publish name: 'wix-grunt-inline',
28 silly publish description: 'Inlines img, script and link tags into the same file.',
28 silly publish version: '0.3.3',
28 silly publish keywords: [ 'gruntplugin', 'inline', 'js', 'css' ],
28 silly publish main: 'inline',
28 silly publish repository:
28 silly publish { type: 'git',
28 silly publish url: 'https://github.com/chyingp/grunt-inline.git' },
28 silly publish engines: { node: '>=0.8.0' },
28 silly publish devDependencies:
28 silly publish { 'grunt-contrib-nodeunit': '~0.1.2',
28 silly publish 'grunt-contrib-clean': '~0.4.0',
28 silly publish 'grunt-contrib-htmlmin': '~0.1.3',
28 silly publish grunt: '~0.4.0' },
28 silly publish dependencies: { 'uglify-js': '2.4.1', datauri: '~0.2.0', 'clean-css': '1.1.7' },
28 silly publish scripts: { test: 'grunt test' },
28 silly publish publishConfig: { registry: 'http://repo.dev.wix/artifactory/api/npm/npm-local/' },
28 silly publish _id: '[email protected]',
28 silly publish _from: '.',
28 silly publish readme: '# grunt-inline[![build status](https://secure.travis-ci.org/miniflycn/grunt-inline.png)](http://travis-ci.org/miniflycn/grunt-inline)\r\n\r\nBrings externally referenced resources, such as js, css and images, into\r\na single file.\r\n\r\nFor exmample:\r\n\r\n````\r\n<link href="css/style.css?__inline=true" rel="stylesheet" />\r\n````\r\nis replaced with\r\n````\r\n<style>\r\n/* contents of css/style.css */\r\n</style>\r\n```\r\n\r\nJavascript references are brought inline, and images in the html\r\nand css blocks are converted to base-64 data: urls.\r\n\r\nBy default, only urls marked with `__inline` are converted, however this\r\nbehavior can be overrided via the `tag:` option.\r\n\r\n\r\n## Getting Started\r\nThis plugin requires Grunt `~0.4.1`\r\n\r\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:\r\n\r\n\tnpm install grunt-inline --save-dev\r\n\r\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\r\n\r\n\tgrunt.loadNpmTasks(\'grunt-inline\');\r\n\r\n## The "grunt-inline" task\r\n\r\n### Overview\r\nIn your project\'s Gruntfile, add a section named `inline` to the data object passed into `grunt.initConfig()`.\r\n\r\n\tgrunt.initConfig({\r\n\t inline: {\r\n\t dist: {\r\n\t src: [ \'dist/index.html\' ]\r\n\t }\r\n\t }\r\n\t})\r\n### Options\r\n\r\n#### dest\r\nIf dest is assigned, the the source file will be copied to the destination path. eg:\r\n`dist/index.html` will be processed and then copied to `dest/index.html`\r\n\r\n```\r\ngrunt.initConfig({\r\n\tinline: {\r\n\t\tdist: {\r\n\t\t\tsrc: [\'dist/index.html\'],\r\n\t\t\tdest: [\'dest/\']\r\n\t\t}\r\n\t}\r\n});\r\n```\r\n\r\n### cssmin\r\nIf cssmin is assigned true, `.css` will be minified before inlined.\r\n\r\n```\r\ngrunt.initConfig({\r\n\tinline: {\r\n\t\tdist: {\r\n\t\t\toptions:{\r\n\t\t\t\tcssmin: true\r\n\t\t\t},\r\n\t\t\tsrc: [\'dist/index.html\'],\r\n\t\t\tdest: [\'dest/\']\r\n\t\t}\r\n\t}\r\n});\r\n```\r\n\r\n### tag (defaults to ```__inline```)\r\nOnly URLs that contain the value for ```tag``` will be inlined.\r\nSpecify ```tag: \'\'``` to include all urls.\r\n\r\n```\r\ngrunt.initConfig({\r\n\tinline: {\r\n\t\tdist: {\r\n\t\t\toptions:{\r\n\t\t\t\ttag: \'\'\r\n\t\t\t},\r\n\t\t\tsrc: [\'dist/index.html\'],\r\n\t\t\tdest: [\'dest/\']\r\n\t\t}\r\n\t}\r\n});\r\n```\r\n\r\n\r\n### inlineTagAttributes\r\nAbility to add attributes string to inline tag.\r\n\r\n```\r\ngrunt.initConfig({\r\n\tinline: {\r\n\t\tdist: {\r\n\t\t\toptions:{\r\n\t\t\t\tinlineTagAttributes: {\r\n\t\t\t\t\tscript: \'data-inlined="true"\',\t// Adds ```<script data-inlined="true">...</script>```\r\n\t\t\t\t\tstyle: \'data-inlined="true"\'\t// Adds ```<style data-inlined="true">...</style>```\r\n\t\t\t},\r\n\t\t\tsrc: [\'dist/index.html\'],\r\n\t\t\tdest: [\'dest/\']\r\n\t\t}\r\n\t}\r\n});\r\n```\r\n\r\n\r\n### uglify\r\nIf uglify is assigned true, `.js` file will be minified before inlined.\r\n\r\n```\r\ngrunt.initConfig({\r\n\tinline: {\r\n\t\tdist: {\r\n\t\t\toptions:{\r\n\t\t\t\tuglify: true\r\n\t\t\t},\r\n\t\t\tsrc: [\'dist/index.html\'],\r\n\t\t\tdest: [\'dest/\']\r\n\t\t}\r\n\t}\r\n});\r\n```\r\n\r\n### exts\r\nSetting an exts array allows multiple file extensions to be processed as\r\nhtml.\r\n\r\n```\r\ngrunt.initConfig({\r\n\tinline: {\r\n\t\tdist: {\r\n\t\t\toptions:{\r\n\t\t\t\tuglify: true\r\n\t\t\t},\r\n\t\t\tsrc: [\'dist/index.html\'],\r\n\t\t\tdest: [\'dest/\']\r\n\t\t}\r\n\t}\r\n});\r\n```\r\n\r\n### Usage Examples\r\n\r\n> config\r\n\r\n\tgrunt.initConfig({\r\n\t inline: {\r\n\t dist: {\r\n\t src: [ \'dist/index.jade\' ]\r\n\t }\r\n\t }\r\n\t})\r\n\r\n> src/index.html\r\n\r\n\t<html>\r\n\t\t<head>\r\n\t\t\t<title>demo</title>\r\n\t\t\t<link href="css/style.css?__inline=true" rel="stylesheet" />\r\n\t\t</head>\r\n\t\t<body>\r\n\t\t\t<img src="img/icon.png?__inline=true" />\r\n\r\n\t\t\t<script src="js/erport.js?__inline=true"></script>\r\n\t\t</body>\r\n\t</html>\r\n\r\n> after `grunt inline` was run, it will be something like\r\n\r\n\t<html>\r\n\t\t<head>\r\n\t\t\t<title>demo</title>\r\n\t\t\t<style>\r\n\t\t\t\t.container{\r\n\t\t\t\t\tpadding: 0;\r\n\t\t\t\t}\r\n\t\t\t</style>\r\n\t\t</head>\r\n\t\t<body>\r\n\t\t\t<! -- base64, a terrible mass you know…so just show a little bit ...-->\r\n\t\t\t<img src="idata:image/png;base64data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAAAYCAYAAAChg0BHAA..." />\r\n\r\n\t\t\t<script>\r\n\t\t\t\tvar Report = (function(){\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tinit: function(){\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t})();\r\n\t\t\t</script>\r\n\t\t</body>\r\n\t</html>\r\n\r\n#### inline tag\r\nSuppose there is an `<inline>` tag in `index.html` like bellow\r\n\r\n```\r\n<!-- inline tag -->\r\n<inline src="test.html" />\r\n```\r\n\r\nThe content of `test.html` is\r\n\r\n```\r\n<p>I\'m inline html</p>\r\n<span>hello world!</span>\r\n```\r\n\r\nThen, after the `inline` task is run, the original content in `index.html` will be replaced with\r\n\r\n```\r\n<p>I\'m inline html</p>\r\n<span>hello world!</span>\r\n```\r\n\r\n## Contributing\r\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\r\n\r\n## Release History\r\n* 2014-06-16 v0.3.1 bug fix: protocol-relative urls in css are messed up\r\n* 2014-06-15 v0.3.1 bug fix: when options.tag is \'\', then all img tags, whose src attribute has already been inlined will be matched.\r\n* 2014-05-19 v0.3.0 support for new options.exts\r\n* 2014-05-19 v0.2.9 bug fix: options.tag is assigned \'\', bug image url in css are not converted to base64 formate\r\n* 2014-03-06 v0.2.6 bug fix: script tags like <script src="index.js?__inline">\\n</script> were not inlined\r\n* 2014-01-31 v0.2.3 radded tag option, encode url(..) images.\r\n* 2013-10-31 v0.2.2 bug fix: img urls like \'background: url(http://www.example.com/img/bg.png)\' will be transformed to \'background: url(url(http://www.example.com/img/bg.png))\'\r\n* 2013-10-30 v0.2.1 bug fix: when processing relative file path of img url in css stylesheet, forgot to transform "\\" to "/" for windows users\r\n* 2013-10-30 v0.2.0 new feature: Support for minifing js、css when they ar inlined into html.\r\n* 2013-08-30 v0.1.9 bug fix: stylesheets ended with ">" cannot be inlined\r\n* 2013-09-02 v0.1.9 add feature: add options.dest to assign a destination path where the source file will be copied\r\n* 2013-09-02 v0.1.8 add feature: support for `<inline>` tag\r\n',
28 silly publish readmeFilename: 'README.md',
28 silly publish gitHead: '3b11d5484ed91ba6302baf9856413cb7b2d8628b',
28 silly publish bugs: { url: 'https://github.com/chyingp/grunt-inline/issues' },
28 silly publish homepage: 'https://github.com/chyingp/grunt-inline',
28 silly publish _shasum: '635d2516692878240a73ce85500f6b596131c450' }
29 error need auth auth and email required for publishing
29 error need auth You need to authorize this machine using `npm adduser`
30 error System Darwin 14.1.0
31 error command "node" "/usr/local/bin/npm" "publish"
32 error cwd /Users/igal_steklov/Projects/grunt-inline
33 error node -v v0.10.33
34 error npm -v 1.4.28
35 error code ENEEDAUTH
36 verbose exit [ 1, true ]