1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-03 12:20:04 +02:00

add some packages

This commit is contained in:
s2
2018-05-05 13:54:07 +02:00
parent 48c1138518
commit ff6e20677d
3738 changed files with 215920 additions and 0 deletions

20
node_modules/output-file-sync/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2014 - 2016 Shinnosuke Watanabe
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

47
node_modules/output-file-sync/index.js generated vendored Normal file
View File

@@ -0,0 +1,47 @@
/*!
* output-file-sync | MIT (c) Shinnosuke Watanabe
* https://github.com/shinnn/output-file-sync
*/
'use strict';
var dirname = require('path').dirname;
var writeFileSync = require('graceful-fs').writeFileSync;
var inspect = require('util').inspect;
var objectAssign = require('object-assign');
var mkdirpSync = require('mkdirp').sync;
module.exports = function outputFileSync(filePath, data, options) {
if (typeof filePath !== 'string') {
throw new TypeError(
inspect(filePath) +
' is not a string. Expected a file path to write a file.'
);
}
if (filePath === '') {
throw new Error('Expected a file path to write a file, but received an empty string instead.');
}
options = options || {};
var mkdirpOptions;
if (typeof options === 'string') {
mkdirpOptions = null;
} else if (options.dirMode) {
mkdirpOptions = objectAssign({}, options, {mode: options.dirMode});
} else {
mkdirpOptions = options;
}
var writeFileOptions;
if (options.fileMode) {
writeFileOptions = objectAssign({}, options, {mode: options.fileMode});
} else {
writeFileOptions = options;
}
var createdDirPath = mkdirpSync(dirname(filePath), mkdirpOptions);
writeFileSync(filePath, data, writeFileOptions);
return createdDirPath;
};

75
node_modules/output-file-sync/package.json generated vendored Normal file
View File

@@ -0,0 +1,75 @@
{
"_from": "output-file-sync@^1.1.2",
"_id": "output-file-sync@1.1.2",
"_inBundle": false,
"_integrity": "sha1-0KM+7+YaIF+suQCS6CZZjVJFznY=",
"_location": "/output-file-sync",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "output-file-sync@^1.1.2",
"name": "output-file-sync",
"escapedName": "output-file-sync",
"rawSpec": "^1.1.2",
"saveSpec": null,
"fetchSpec": "^1.1.2"
},
"_requiredBy": [
"/babel-cli"
],
"_resolved": "https://registry.npmjs.org/output-file-sync/-/output-file-sync-1.1.2.tgz",
"_shasum": "d0a33eefe61a205facb90092e826598d5245ce76",
"_spec": "output-file-sync@^1.1.2",
"_where": "/home/s2/Documents/Code/minifyfromhtml/node_modules/babel-cli",
"author": {
"name": "Shinnosuke Watanabe",
"url": "https://github.com/shinnn"
},
"bugs": {
"url": "https://github.com/shinnn/output-file-sync/issues"
},
"bundleDependencies": false,
"dependencies": {
"graceful-fs": "^4.1.4",
"mkdirp": "^0.5.1",
"object-assign": "^4.1.0"
},
"deprecated": false,
"description": "Synchronously write a file and create its ancestor directories if needed",
"devDependencies": {
"@shinnn/eslint-config-node-legacy": "^2.0.0",
"eslint": "^2.13.0",
"istanbul": "^0.4.3",
"read-remove-file": "^3.0.0",
"tap-spec": "^4.1.1",
"tape": "^4.5.1"
},
"files": [
"index.js"
],
"homepage": "https://github.com/shinnn/output-file-sync#readme",
"keywords": [
"fs",
"write",
"sync",
"synchronous",
"output",
"create",
"file",
"mkdir",
"mkdirp"
],
"license": "MIT",
"name": "output-file-sync",
"repository": {
"type": "git",
"url": "git+https://github.com/shinnn/output-file-sync.git"
},
"scripts": {
"coverage": "node --strong_mode --throw-deprecation --track-heap-objects node_modules/.bin/istanbul cover test.js",
"pretest": "eslint --fix --config @shinnn/node-legacy index.js test.js",
"test": "node --strong_mode --throw-deprecation --track-heap-objects test.js | tap-spec"
},
"version": "1.1.2"
}