catco 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var path = require('
|
|
4
|
+
var path = require('path');
|
|
5
5
|
var sade = require('sade');
|
|
6
6
|
var clipboard = require('clipboardy');
|
|
7
|
-
var fs = require('
|
|
7
|
+
var fs = require('fs');
|
|
8
8
|
var globby = require('globby');
|
|
9
9
|
|
|
10
10
|
const minify = (content) => {
|
|
@@ -61,7 +61,7 @@ const copy = async (patterns, ignore = DEFAULT_ANTI_PATTERNS) => {
|
|
|
61
61
|
return minified;
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
const FILE_MARKER_REGEX = /\/\* FILE: (\.\/[^\s*][^*]*?)
|
|
64
|
+
const FILE_MARKER_REGEX = /\/\* ?FILE: ?(\.\/[^\s*][^*]*?) ?\*\//g;
|
|
65
65
|
const parse = async (inputFile, outputDir) => {
|
|
66
66
|
const content = await fs.promises.readFile(inputFile, "utf-8");
|
|
67
67
|
const matches = [...content.matchAll(FILE_MARKER_REGEX)];
|
|
@@ -84,7 +84,7 @@ const parse = async (inputFile, outputDir) => {
|
|
|
84
84
|
console.log(`[catco parse] done. files written to ${outputDir}`);
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
var version = "2.0.
|
|
87
|
+
var version = "2.0.4";
|
|
88
88
|
var pkg = {
|
|
89
89
|
version: version};
|
|
90
90
|
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ const copy = async (patterns, ignore = DEFAULT_ANTI_PATTERNS) => {
|
|
|
59
59
|
return minified;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
const FILE_MARKER_REGEX = /\/\* FILE: (\.\/[^\s*][^*]*?)
|
|
62
|
+
const FILE_MARKER_REGEX = /\/\* ?FILE: ?(\.\/[^\s*][^*]*?) ?\*\//g;
|
|
63
63
|
const parse = async (inputFile, outputDir) => {
|
|
64
64
|
const content = await fs.promises.readFile(inputFile, "utf-8");
|
|
65
65
|
const matches = [...content.matchAll(FILE_MARKER_REGEX)];
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import path from '
|
|
2
|
+
import path from 'path';
|
|
3
3
|
import sade from 'sade';
|
|
4
4
|
import clipboard from 'clipboardy';
|
|
5
|
-
import fs from '
|
|
5
|
+
import fs from 'fs';
|
|
6
6
|
import { globby } from 'globby';
|
|
7
7
|
|
|
8
8
|
const minify = (content) => {
|
|
@@ -59,7 +59,7 @@ const copy = async (patterns, ignore = DEFAULT_ANTI_PATTERNS) => {
|
|
|
59
59
|
return minified;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
const FILE_MARKER_REGEX = /\/\* FILE: (\.\/[^\s*][^*]*?)
|
|
62
|
+
const FILE_MARKER_REGEX = /\/\* ?FILE: ?(\.\/[^\s*][^*]*?) ?\*\//g;
|
|
63
63
|
const parse = async (inputFile, outputDir) => {
|
|
64
64
|
const content = await fs.promises.readFile(inputFile, "utf-8");
|
|
65
65
|
const matches = [...content.matchAll(FILE_MARKER_REGEX)];
|
|
@@ -82,7 +82,7 @@ const parse = async (inputFile, outputDir) => {
|
|
|
82
82
|
console.log(`[catco parse] done. files written to ${outputDir}`);
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
var version = "2.0.
|
|
85
|
+
var version = "2.0.4";
|
|
86
86
|
var pkg = {
|
|
87
87
|
version: version};
|
|
88
88
|
|