diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:10:59 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:41:44 +0800 |
| commit | fc87c009806dcc98867f6b58efe29b042aa01dee (patch) | |
| tree | 8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/rucksack-css/bin | |
| parent | 3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff) | |
node: updatemain
Diffstat (limited to 'node_modules/rucksack-css/bin')
| -rwxr-xr-x | node_modules/rucksack-css/bin/cmd.js | 48 | ||||
| -rw-r--r-- | node_modules/rucksack-css/bin/help.txt | 11 |
2 files changed, 0 insertions, 59 deletions
diff --git a/node_modules/rucksack-css/bin/cmd.js b/node_modules/rucksack-css/bin/cmd.js deleted file mode 100755 index e8ac0192..00000000 --- a/node_modules/rucksack-css/bin/cmd.js +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env node -/*eslint no-console: 0, no-undef: 0*/ - -'use strict'; - -const fs = require('fs'); -const read = require('read-file-stdin'); -const write = require('write-file-stdout'); -const minimist = require('minimist'); -const rucksack = require('../'); - -const OPTS = minimist(process.argv.slice(2), { - boolean: [ 's', 'autoprefixer', 'fallbacks' ], - alias: { - h: 'help', - s: 'sourcemap', - v: 'version' - } - }), - FILE = OPTS._[0], - OUT = OPTS._[1]; - -// Fetch verion from package.json -if (OPTS.version) { - return console.log(require('../package.json').version); -} - -// Pipe out help doc from help.txt -if (FILE === 'help' || OPTS.help) { - return fs.createReadStream(path.join(__dirname, '/help.txt')) - .pipe(process.stdout) - .on('close', () => process.exit(1)); -} - -read(FILE, function (err, buf) { - if (err) { - throw err; - } - rucksack.process(String(buf), { from: FILE, to: OUT }).then(function (result) { - write(OUT, result.css); - if (OPTS.map && OPTS.to) { - fs.writeFile(OPTS.to + '.map', result.map.toString()); - } - }).catch((err) => { - console.error(err); - process.exit(1); - }); -});
\ No newline at end of file diff --git a/node_modules/rucksack-css/bin/help.txt b/node_modules/rucksack-css/bin/help.txt deleted file mode 100644 index 567865ff..00000000 --- a/node_modules/rucksack-css/bin/help.txt +++ /dev/null @@ -1,11 +0,0 @@ -Usage: rucksack [input] [output] {OPTIONS} - -Options: - - --autoprefixer Enable automatic vendor prefixing. - - --fallbacks Enable legacy fallbacks. - - --version, -v Show the version number. - - --help, -h Show this help screen. |
