@modern-js/tailwindcss-generator 1.2.2 → 1.2.3
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/js/node/main.js +999 -15
- package/package.json +4 -3
package/dist/js/node/main.js
CHANGED
@@ -35630,6 +35630,953 @@ function patch (fs) {
|
|
35630
35630
|
}
|
35631
35631
|
|
35632
35632
|
|
35633
|
+
/***/ }),
|
35634
|
+
|
35635
|
+
/***/ 83584:
|
35636
|
+
/***/ ((module) => {
|
35637
|
+
|
35638
|
+
"use strict";
|
35639
|
+
|
35640
|
+
|
35641
|
+
module.exports = clone
|
35642
|
+
|
35643
|
+
var getPrototypeOf = Object.getPrototypeOf || function (obj) {
|
35644
|
+
return obj.__proto__
|
35645
|
+
}
|
35646
|
+
|
35647
|
+
function clone (obj) {
|
35648
|
+
if (obj === null || typeof obj !== 'object')
|
35649
|
+
return obj
|
35650
|
+
|
35651
|
+
if (obj instanceof Object)
|
35652
|
+
var copy = { __proto__: getPrototypeOf(obj) }
|
35653
|
+
else
|
35654
|
+
var copy = Object.create(null)
|
35655
|
+
|
35656
|
+
Object.getOwnPropertyNames(obj).forEach(function (key) {
|
35657
|
+
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
|
35658
|
+
})
|
35659
|
+
|
35660
|
+
return copy
|
35661
|
+
}
|
35662
|
+
|
35663
|
+
|
35664
|
+
/***/ }),
|
35665
|
+
|
35666
|
+
/***/ 19677:
|
35667
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
35668
|
+
|
35669
|
+
var fs = __webpack_require__(57147)
|
35670
|
+
var polyfills = __webpack_require__(18187)
|
35671
|
+
var legacy = __webpack_require__(15601)
|
35672
|
+
var clone = __webpack_require__(83584)
|
35673
|
+
|
35674
|
+
var util = __webpack_require__(73837)
|
35675
|
+
|
35676
|
+
/* istanbul ignore next - node 0.x polyfill */
|
35677
|
+
var gracefulQueue
|
35678
|
+
var previousSymbol
|
35679
|
+
|
35680
|
+
/* istanbul ignore else - node 0.x polyfill */
|
35681
|
+
if (typeof Symbol === 'function' && typeof Symbol.for === 'function') {
|
35682
|
+
gracefulQueue = Symbol.for('graceful-fs.queue')
|
35683
|
+
// This is used in testing by future versions
|
35684
|
+
previousSymbol = Symbol.for('graceful-fs.previous')
|
35685
|
+
} else {
|
35686
|
+
gracefulQueue = '___graceful-fs.queue'
|
35687
|
+
previousSymbol = '___graceful-fs.previous'
|
35688
|
+
}
|
35689
|
+
|
35690
|
+
function noop () {}
|
35691
|
+
|
35692
|
+
function publishQueue(context, queue) {
|
35693
|
+
Object.defineProperty(context, gracefulQueue, {
|
35694
|
+
get: function() {
|
35695
|
+
return queue
|
35696
|
+
}
|
35697
|
+
})
|
35698
|
+
}
|
35699
|
+
|
35700
|
+
var debug = noop
|
35701
|
+
if (util.debuglog)
|
35702
|
+
debug = util.debuglog('gfs4')
|
35703
|
+
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ''))
|
35704
|
+
debug = function() {
|
35705
|
+
var m = util.format.apply(util, arguments)
|
35706
|
+
m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ')
|
35707
|
+
console.error(m)
|
35708
|
+
}
|
35709
|
+
|
35710
|
+
// Once time initialization
|
35711
|
+
if (!fs[gracefulQueue]) {
|
35712
|
+
// This queue can be shared by multiple loaded instances
|
35713
|
+
var queue = global[gracefulQueue] || []
|
35714
|
+
publishQueue(fs, queue)
|
35715
|
+
|
35716
|
+
// Patch fs.close/closeSync to shared queue version, because we need
|
35717
|
+
// to retry() whenever a close happens *anywhere* in the program.
|
35718
|
+
// This is essential when multiple graceful-fs instances are
|
35719
|
+
// in play at the same time.
|
35720
|
+
fs.close = (function (fs$close) {
|
35721
|
+
function close (fd, cb) {
|
35722
|
+
return fs$close.call(fs, fd, function (err) {
|
35723
|
+
// This function uses the graceful-fs shared queue
|
35724
|
+
if (!err) {
|
35725
|
+
resetQueue()
|
35726
|
+
}
|
35727
|
+
|
35728
|
+
if (typeof cb === 'function')
|
35729
|
+
cb.apply(this, arguments)
|
35730
|
+
})
|
35731
|
+
}
|
35732
|
+
|
35733
|
+
Object.defineProperty(close, previousSymbol, {
|
35734
|
+
value: fs$close
|
35735
|
+
})
|
35736
|
+
return close
|
35737
|
+
})(fs.close)
|
35738
|
+
|
35739
|
+
fs.closeSync = (function (fs$closeSync) {
|
35740
|
+
function closeSync (fd) {
|
35741
|
+
// This function uses the graceful-fs shared queue
|
35742
|
+
fs$closeSync.apply(fs, arguments)
|
35743
|
+
resetQueue()
|
35744
|
+
}
|
35745
|
+
|
35746
|
+
Object.defineProperty(closeSync, previousSymbol, {
|
35747
|
+
value: fs$closeSync
|
35748
|
+
})
|
35749
|
+
return closeSync
|
35750
|
+
})(fs.closeSync)
|
35751
|
+
|
35752
|
+
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) {
|
35753
|
+
process.on('exit', function() {
|
35754
|
+
debug(fs[gracefulQueue])
|
35755
|
+
__webpack_require__(39491).equal(fs[gracefulQueue].length, 0)
|
35756
|
+
})
|
35757
|
+
}
|
35758
|
+
}
|
35759
|
+
|
35760
|
+
if (!global[gracefulQueue]) {
|
35761
|
+
publishQueue(global, fs[gracefulQueue]);
|
35762
|
+
}
|
35763
|
+
|
35764
|
+
module.exports = patch(clone(fs))
|
35765
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
|
35766
|
+
module.exports = patch(fs)
|
35767
|
+
fs.__patched = true;
|
35768
|
+
}
|
35769
|
+
|
35770
|
+
function patch (fs) {
|
35771
|
+
// Everything that references the open() function needs to be in here
|
35772
|
+
polyfills(fs)
|
35773
|
+
fs.gracefulify = patch
|
35774
|
+
|
35775
|
+
fs.createReadStream = createReadStream
|
35776
|
+
fs.createWriteStream = createWriteStream
|
35777
|
+
var fs$readFile = fs.readFile
|
35778
|
+
fs.readFile = readFile
|
35779
|
+
function readFile (path, options, cb) {
|
35780
|
+
if (typeof options === 'function')
|
35781
|
+
cb = options, options = null
|
35782
|
+
|
35783
|
+
return go$readFile(path, options, cb)
|
35784
|
+
|
35785
|
+
function go$readFile (path, options, cb, startTime) {
|
35786
|
+
return fs$readFile(path, options, function (err) {
|
35787
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
35788
|
+
enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()])
|
35789
|
+
else {
|
35790
|
+
if (typeof cb === 'function')
|
35791
|
+
cb.apply(this, arguments)
|
35792
|
+
}
|
35793
|
+
})
|
35794
|
+
}
|
35795
|
+
}
|
35796
|
+
|
35797
|
+
var fs$writeFile = fs.writeFile
|
35798
|
+
fs.writeFile = writeFile
|
35799
|
+
function writeFile (path, data, options, cb) {
|
35800
|
+
if (typeof options === 'function')
|
35801
|
+
cb = options, options = null
|
35802
|
+
|
35803
|
+
return go$writeFile(path, data, options, cb)
|
35804
|
+
|
35805
|
+
function go$writeFile (path, data, options, cb, startTime) {
|
35806
|
+
return fs$writeFile(path, data, options, function (err) {
|
35807
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
35808
|
+
enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
|
35809
|
+
else {
|
35810
|
+
if (typeof cb === 'function')
|
35811
|
+
cb.apply(this, arguments)
|
35812
|
+
}
|
35813
|
+
})
|
35814
|
+
}
|
35815
|
+
}
|
35816
|
+
|
35817
|
+
var fs$appendFile = fs.appendFile
|
35818
|
+
if (fs$appendFile)
|
35819
|
+
fs.appendFile = appendFile
|
35820
|
+
function appendFile (path, data, options, cb) {
|
35821
|
+
if (typeof options === 'function')
|
35822
|
+
cb = options, options = null
|
35823
|
+
|
35824
|
+
return go$appendFile(path, data, options, cb)
|
35825
|
+
|
35826
|
+
function go$appendFile (path, data, options, cb, startTime) {
|
35827
|
+
return fs$appendFile(path, data, options, function (err) {
|
35828
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
35829
|
+
enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
|
35830
|
+
else {
|
35831
|
+
if (typeof cb === 'function')
|
35832
|
+
cb.apply(this, arguments)
|
35833
|
+
}
|
35834
|
+
})
|
35835
|
+
}
|
35836
|
+
}
|
35837
|
+
|
35838
|
+
var fs$copyFile = fs.copyFile
|
35839
|
+
if (fs$copyFile)
|
35840
|
+
fs.copyFile = copyFile
|
35841
|
+
function copyFile (src, dest, flags, cb) {
|
35842
|
+
if (typeof flags === 'function') {
|
35843
|
+
cb = flags
|
35844
|
+
flags = 0
|
35845
|
+
}
|
35846
|
+
return go$copyFile(src, dest, flags, cb)
|
35847
|
+
|
35848
|
+
function go$copyFile (src, dest, flags, cb, startTime) {
|
35849
|
+
return fs$copyFile(src, dest, flags, function (err) {
|
35850
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
35851
|
+
enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()])
|
35852
|
+
else {
|
35853
|
+
if (typeof cb === 'function')
|
35854
|
+
cb.apply(this, arguments)
|
35855
|
+
}
|
35856
|
+
})
|
35857
|
+
}
|
35858
|
+
}
|
35859
|
+
|
35860
|
+
var fs$readdir = fs.readdir
|
35861
|
+
fs.readdir = readdir
|
35862
|
+
function readdir (path, options, cb) {
|
35863
|
+
if (typeof options === 'function')
|
35864
|
+
cb = options, options = null
|
35865
|
+
|
35866
|
+
return go$readdir(path, options, cb)
|
35867
|
+
|
35868
|
+
function go$readdir (path, options, cb, startTime) {
|
35869
|
+
return fs$readdir(path, options, function (err, files) {
|
35870
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
35871
|
+
enqueue([go$readdir, [path, options, cb], err, startTime || Date.now(), Date.now()])
|
35872
|
+
else {
|
35873
|
+
if (files && files.sort)
|
35874
|
+
files.sort()
|
35875
|
+
|
35876
|
+
if (typeof cb === 'function')
|
35877
|
+
cb.call(this, err, files)
|
35878
|
+
}
|
35879
|
+
})
|
35880
|
+
}
|
35881
|
+
}
|
35882
|
+
|
35883
|
+
if (process.version.substr(0, 4) === 'v0.8') {
|
35884
|
+
var legStreams = legacy(fs)
|
35885
|
+
ReadStream = legStreams.ReadStream
|
35886
|
+
WriteStream = legStreams.WriteStream
|
35887
|
+
}
|
35888
|
+
|
35889
|
+
var fs$ReadStream = fs.ReadStream
|
35890
|
+
if (fs$ReadStream) {
|
35891
|
+
ReadStream.prototype = Object.create(fs$ReadStream.prototype)
|
35892
|
+
ReadStream.prototype.open = ReadStream$open
|
35893
|
+
}
|
35894
|
+
|
35895
|
+
var fs$WriteStream = fs.WriteStream
|
35896
|
+
if (fs$WriteStream) {
|
35897
|
+
WriteStream.prototype = Object.create(fs$WriteStream.prototype)
|
35898
|
+
WriteStream.prototype.open = WriteStream$open
|
35899
|
+
}
|
35900
|
+
|
35901
|
+
Object.defineProperty(fs, 'ReadStream', {
|
35902
|
+
get: function () {
|
35903
|
+
return ReadStream
|
35904
|
+
},
|
35905
|
+
set: function (val) {
|
35906
|
+
ReadStream = val
|
35907
|
+
},
|
35908
|
+
enumerable: true,
|
35909
|
+
configurable: true
|
35910
|
+
})
|
35911
|
+
Object.defineProperty(fs, 'WriteStream', {
|
35912
|
+
get: function () {
|
35913
|
+
return WriteStream
|
35914
|
+
},
|
35915
|
+
set: function (val) {
|
35916
|
+
WriteStream = val
|
35917
|
+
},
|
35918
|
+
enumerable: true,
|
35919
|
+
configurable: true
|
35920
|
+
})
|
35921
|
+
|
35922
|
+
// legacy names
|
35923
|
+
var FileReadStream = ReadStream
|
35924
|
+
Object.defineProperty(fs, 'FileReadStream', {
|
35925
|
+
get: function () {
|
35926
|
+
return FileReadStream
|
35927
|
+
},
|
35928
|
+
set: function (val) {
|
35929
|
+
FileReadStream = val
|
35930
|
+
},
|
35931
|
+
enumerable: true,
|
35932
|
+
configurable: true
|
35933
|
+
})
|
35934
|
+
var FileWriteStream = WriteStream
|
35935
|
+
Object.defineProperty(fs, 'FileWriteStream', {
|
35936
|
+
get: function () {
|
35937
|
+
return FileWriteStream
|
35938
|
+
},
|
35939
|
+
set: function (val) {
|
35940
|
+
FileWriteStream = val
|
35941
|
+
},
|
35942
|
+
enumerable: true,
|
35943
|
+
configurable: true
|
35944
|
+
})
|
35945
|
+
|
35946
|
+
function ReadStream (path, options) {
|
35947
|
+
if (this instanceof ReadStream)
|
35948
|
+
return fs$ReadStream.apply(this, arguments), this
|
35949
|
+
else
|
35950
|
+
return ReadStream.apply(Object.create(ReadStream.prototype), arguments)
|
35951
|
+
}
|
35952
|
+
|
35953
|
+
function ReadStream$open () {
|
35954
|
+
var that = this
|
35955
|
+
open(that.path, that.flags, that.mode, function (err, fd) {
|
35956
|
+
if (err) {
|
35957
|
+
if (that.autoClose)
|
35958
|
+
that.destroy()
|
35959
|
+
|
35960
|
+
that.emit('error', err)
|
35961
|
+
} else {
|
35962
|
+
that.fd = fd
|
35963
|
+
that.emit('open', fd)
|
35964
|
+
that.read()
|
35965
|
+
}
|
35966
|
+
})
|
35967
|
+
}
|
35968
|
+
|
35969
|
+
function WriteStream (path, options) {
|
35970
|
+
if (this instanceof WriteStream)
|
35971
|
+
return fs$WriteStream.apply(this, arguments), this
|
35972
|
+
else
|
35973
|
+
return WriteStream.apply(Object.create(WriteStream.prototype), arguments)
|
35974
|
+
}
|
35975
|
+
|
35976
|
+
function WriteStream$open () {
|
35977
|
+
var that = this
|
35978
|
+
open(that.path, that.flags, that.mode, function (err, fd) {
|
35979
|
+
if (err) {
|
35980
|
+
that.destroy()
|
35981
|
+
that.emit('error', err)
|
35982
|
+
} else {
|
35983
|
+
that.fd = fd
|
35984
|
+
that.emit('open', fd)
|
35985
|
+
}
|
35986
|
+
})
|
35987
|
+
}
|
35988
|
+
|
35989
|
+
function createReadStream (path, options) {
|
35990
|
+
return new fs.ReadStream(path, options)
|
35991
|
+
}
|
35992
|
+
|
35993
|
+
function createWriteStream (path, options) {
|
35994
|
+
return new fs.WriteStream(path, options)
|
35995
|
+
}
|
35996
|
+
|
35997
|
+
var fs$open = fs.open
|
35998
|
+
fs.open = open
|
35999
|
+
function open (path, flags, mode, cb) {
|
36000
|
+
if (typeof mode === 'function')
|
36001
|
+
cb = mode, mode = null
|
36002
|
+
|
36003
|
+
return go$open(path, flags, mode, cb)
|
36004
|
+
|
36005
|
+
function go$open (path, flags, mode, cb, startTime) {
|
36006
|
+
return fs$open(path, flags, mode, function (err, fd) {
|
36007
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
36008
|
+
enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()])
|
36009
|
+
else {
|
36010
|
+
if (typeof cb === 'function')
|
36011
|
+
cb.apply(this, arguments)
|
36012
|
+
}
|
36013
|
+
})
|
36014
|
+
}
|
36015
|
+
}
|
36016
|
+
|
36017
|
+
return fs
|
36018
|
+
}
|
36019
|
+
|
36020
|
+
function enqueue (elem) {
|
36021
|
+
debug('ENQUEUE', elem[0].name, elem[1])
|
36022
|
+
fs[gracefulQueue].push(elem)
|
36023
|
+
retry()
|
36024
|
+
}
|
36025
|
+
|
36026
|
+
// keep track of the timeout between retry() calls
|
36027
|
+
var retryTimer
|
36028
|
+
|
36029
|
+
// reset the startTime and lastTime to now
|
36030
|
+
// this resets the start of the 60 second overall timeout as well as the
|
36031
|
+
// delay between attempts so that we'll retry these jobs sooner
|
36032
|
+
function resetQueue () {
|
36033
|
+
var now = Date.now()
|
36034
|
+
for (var i = 0; i < fs[gracefulQueue].length; ++i) {
|
36035
|
+
// entries that are only a length of 2 are from an older version, don't
|
36036
|
+
// bother modifying those since they'll be retried anyway.
|
36037
|
+
if (fs[gracefulQueue][i].length > 2) {
|
36038
|
+
fs[gracefulQueue][i][3] = now // startTime
|
36039
|
+
fs[gracefulQueue][i][4] = now // lastTime
|
36040
|
+
}
|
36041
|
+
}
|
36042
|
+
// call retry to make sure we're actively processing the queue
|
36043
|
+
retry()
|
36044
|
+
}
|
36045
|
+
|
36046
|
+
function retry () {
|
36047
|
+
// clear the timer and remove it to help prevent unintended concurrency
|
36048
|
+
clearTimeout(retryTimer)
|
36049
|
+
retryTimer = undefined
|
36050
|
+
|
36051
|
+
if (fs[gracefulQueue].length === 0)
|
36052
|
+
return
|
36053
|
+
|
36054
|
+
var elem = fs[gracefulQueue].shift()
|
36055
|
+
var fn = elem[0]
|
36056
|
+
var args = elem[1]
|
36057
|
+
// these items may be unset if they were added by an older graceful-fs
|
36058
|
+
var err = elem[2]
|
36059
|
+
var startTime = elem[3]
|
36060
|
+
var lastTime = elem[4]
|
36061
|
+
|
36062
|
+
// if we don't have a startTime we have no way of knowing if we've waited
|
36063
|
+
// long enough, so go ahead and retry this item now
|
36064
|
+
if (startTime === undefined) {
|
36065
|
+
debug('RETRY', fn.name, args)
|
36066
|
+
fn.apply(null, args)
|
36067
|
+
} else if (Date.now() - startTime >= 60000) {
|
36068
|
+
// it's been more than 60 seconds total, bail now
|
36069
|
+
debug('TIMEOUT', fn.name, args)
|
36070
|
+
var cb = args.pop()
|
36071
|
+
if (typeof cb === 'function')
|
36072
|
+
cb.call(null, err)
|
36073
|
+
} else {
|
36074
|
+
// the amount of time between the last attempt and right now
|
36075
|
+
var sinceAttempt = Date.now() - lastTime
|
36076
|
+
// the amount of time between when we first tried, and when we last tried
|
36077
|
+
// rounded up to at least 1
|
36078
|
+
var sinceStart = Math.max(lastTime - startTime, 1)
|
36079
|
+
// backoff. wait longer than the total time we've been retrying, but only
|
36080
|
+
// up to a maximum of 100ms
|
36081
|
+
var desiredDelay = Math.min(sinceStart * 1.2, 100)
|
36082
|
+
// it's been long enough since the last retry, do it again
|
36083
|
+
if (sinceAttempt >= desiredDelay) {
|
36084
|
+
debug('RETRY', fn.name, args)
|
36085
|
+
fn.apply(null, args.concat([startTime]))
|
36086
|
+
} else {
|
36087
|
+
// if we can't do this job yet, push it to the end of the queue
|
36088
|
+
// and let the next iteration check again
|
36089
|
+
fs[gracefulQueue].push(elem)
|
36090
|
+
}
|
36091
|
+
}
|
36092
|
+
|
36093
|
+
// schedule our next run if one isn't already scheduled
|
36094
|
+
if (retryTimer === undefined) {
|
36095
|
+
retryTimer = setTimeout(retry, 0)
|
36096
|
+
}
|
36097
|
+
}
|
36098
|
+
|
36099
|
+
|
36100
|
+
/***/ }),
|
36101
|
+
|
36102
|
+
/***/ 15601:
|
36103
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
36104
|
+
|
36105
|
+
var Stream = (__webpack_require__(12781).Stream)
|
36106
|
+
|
36107
|
+
module.exports = legacy
|
36108
|
+
|
36109
|
+
function legacy (fs) {
|
36110
|
+
return {
|
36111
|
+
ReadStream: ReadStream,
|
36112
|
+
WriteStream: WriteStream
|
36113
|
+
}
|
36114
|
+
|
36115
|
+
function ReadStream (path, options) {
|
36116
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path, options);
|
36117
|
+
|
36118
|
+
Stream.call(this);
|
36119
|
+
|
36120
|
+
var self = this;
|
36121
|
+
|
36122
|
+
this.path = path;
|
36123
|
+
this.fd = null;
|
36124
|
+
this.readable = true;
|
36125
|
+
this.paused = false;
|
36126
|
+
|
36127
|
+
this.flags = 'r';
|
36128
|
+
this.mode = 438; /*=0666*/
|
36129
|
+
this.bufferSize = 64 * 1024;
|
36130
|
+
|
36131
|
+
options = options || {};
|
36132
|
+
|
36133
|
+
// Mixin options into this
|
36134
|
+
var keys = Object.keys(options);
|
36135
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
36136
|
+
var key = keys[index];
|
36137
|
+
this[key] = options[key];
|
36138
|
+
}
|
36139
|
+
|
36140
|
+
if (this.encoding) this.setEncoding(this.encoding);
|
36141
|
+
|
36142
|
+
if (this.start !== undefined) {
|
36143
|
+
if ('number' !== typeof this.start) {
|
36144
|
+
throw TypeError('start must be a Number');
|
36145
|
+
}
|
36146
|
+
if (this.end === undefined) {
|
36147
|
+
this.end = Infinity;
|
36148
|
+
} else if ('number' !== typeof this.end) {
|
36149
|
+
throw TypeError('end must be a Number');
|
36150
|
+
}
|
36151
|
+
|
36152
|
+
if (this.start > this.end) {
|
36153
|
+
throw new Error('start must be <= end');
|
36154
|
+
}
|
36155
|
+
|
36156
|
+
this.pos = this.start;
|
36157
|
+
}
|
36158
|
+
|
36159
|
+
if (this.fd !== null) {
|
36160
|
+
process.nextTick(function() {
|
36161
|
+
self._read();
|
36162
|
+
});
|
36163
|
+
return;
|
36164
|
+
}
|
36165
|
+
|
36166
|
+
fs.open(this.path, this.flags, this.mode, function (err, fd) {
|
36167
|
+
if (err) {
|
36168
|
+
self.emit('error', err);
|
36169
|
+
self.readable = false;
|
36170
|
+
return;
|
36171
|
+
}
|
36172
|
+
|
36173
|
+
self.fd = fd;
|
36174
|
+
self.emit('open', fd);
|
36175
|
+
self._read();
|
36176
|
+
})
|
36177
|
+
}
|
36178
|
+
|
36179
|
+
function WriteStream (path, options) {
|
36180
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path, options);
|
36181
|
+
|
36182
|
+
Stream.call(this);
|
36183
|
+
|
36184
|
+
this.path = path;
|
36185
|
+
this.fd = null;
|
36186
|
+
this.writable = true;
|
36187
|
+
|
36188
|
+
this.flags = 'w';
|
36189
|
+
this.encoding = 'binary';
|
36190
|
+
this.mode = 438; /*=0666*/
|
36191
|
+
this.bytesWritten = 0;
|
36192
|
+
|
36193
|
+
options = options || {};
|
36194
|
+
|
36195
|
+
// Mixin options into this
|
36196
|
+
var keys = Object.keys(options);
|
36197
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
36198
|
+
var key = keys[index];
|
36199
|
+
this[key] = options[key];
|
36200
|
+
}
|
36201
|
+
|
36202
|
+
if (this.start !== undefined) {
|
36203
|
+
if ('number' !== typeof this.start) {
|
36204
|
+
throw TypeError('start must be a Number');
|
36205
|
+
}
|
36206
|
+
if (this.start < 0) {
|
36207
|
+
throw new Error('start must be >= zero');
|
36208
|
+
}
|
36209
|
+
|
36210
|
+
this.pos = this.start;
|
36211
|
+
}
|
36212
|
+
|
36213
|
+
this.busy = false;
|
36214
|
+
this._queue = [];
|
36215
|
+
|
36216
|
+
if (this.fd === null) {
|
36217
|
+
this._open = fs.open;
|
36218
|
+
this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);
|
36219
|
+
this.flush();
|
36220
|
+
}
|
36221
|
+
}
|
36222
|
+
}
|
36223
|
+
|
36224
|
+
|
36225
|
+
/***/ }),
|
36226
|
+
|
36227
|
+
/***/ 18187:
|
36228
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
36229
|
+
|
36230
|
+
var constants = __webpack_require__(22057)
|
36231
|
+
|
36232
|
+
var origCwd = process.cwd
|
36233
|
+
var cwd = null
|
36234
|
+
|
36235
|
+
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform
|
36236
|
+
|
36237
|
+
process.cwd = function() {
|
36238
|
+
if (!cwd)
|
36239
|
+
cwd = origCwd.call(process)
|
36240
|
+
return cwd
|
36241
|
+
}
|
36242
|
+
try {
|
36243
|
+
process.cwd()
|
36244
|
+
} catch (er) {}
|
36245
|
+
|
36246
|
+
// This check is needed until node.js 12 is required
|
36247
|
+
if (typeof process.chdir === 'function') {
|
36248
|
+
var chdir = process.chdir
|
36249
|
+
process.chdir = function (d) {
|
36250
|
+
cwd = null
|
36251
|
+
chdir.call(process, d)
|
36252
|
+
}
|
36253
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)
|
36254
|
+
}
|
36255
|
+
|
36256
|
+
module.exports = patch
|
36257
|
+
|
36258
|
+
function patch (fs) {
|
36259
|
+
// (re-)implement some things that are known busted or missing.
|
36260
|
+
|
36261
|
+
// lchmod, broken prior to 0.6.2
|
36262
|
+
// back-port the fix here.
|
36263
|
+
if (constants.hasOwnProperty('O_SYMLINK') &&
|
36264
|
+
process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
36265
|
+
patchLchmod(fs)
|
36266
|
+
}
|
36267
|
+
|
36268
|
+
// lutimes implementation, or no-op
|
36269
|
+
if (!fs.lutimes) {
|
36270
|
+
patchLutimes(fs)
|
36271
|
+
}
|
36272
|
+
|
36273
|
+
// https://github.com/isaacs/node-graceful-fs/issues/4
|
36274
|
+
// Chown should not fail on einval or eperm if non-root.
|
36275
|
+
// It should not fail on enosys ever, as this just indicates
|
36276
|
+
// that a fs doesn't support the intended operation.
|
36277
|
+
|
36278
|
+
fs.chown = chownFix(fs.chown)
|
36279
|
+
fs.fchown = chownFix(fs.fchown)
|
36280
|
+
fs.lchown = chownFix(fs.lchown)
|
36281
|
+
|
36282
|
+
fs.chmod = chmodFix(fs.chmod)
|
36283
|
+
fs.fchmod = chmodFix(fs.fchmod)
|
36284
|
+
fs.lchmod = chmodFix(fs.lchmod)
|
36285
|
+
|
36286
|
+
fs.chownSync = chownFixSync(fs.chownSync)
|
36287
|
+
fs.fchownSync = chownFixSync(fs.fchownSync)
|
36288
|
+
fs.lchownSync = chownFixSync(fs.lchownSync)
|
36289
|
+
|
36290
|
+
fs.chmodSync = chmodFixSync(fs.chmodSync)
|
36291
|
+
fs.fchmodSync = chmodFixSync(fs.fchmodSync)
|
36292
|
+
fs.lchmodSync = chmodFixSync(fs.lchmodSync)
|
36293
|
+
|
36294
|
+
fs.stat = statFix(fs.stat)
|
36295
|
+
fs.fstat = statFix(fs.fstat)
|
36296
|
+
fs.lstat = statFix(fs.lstat)
|
36297
|
+
|
36298
|
+
fs.statSync = statFixSync(fs.statSync)
|
36299
|
+
fs.fstatSync = statFixSync(fs.fstatSync)
|
36300
|
+
fs.lstatSync = statFixSync(fs.lstatSync)
|
36301
|
+
|
36302
|
+
// if lchmod/lchown do not exist, then make them no-ops
|
36303
|
+
if (!fs.lchmod) {
|
36304
|
+
fs.lchmod = function (path, mode, cb) {
|
36305
|
+
if (cb) process.nextTick(cb)
|
36306
|
+
}
|
36307
|
+
fs.lchmodSync = function () {}
|
36308
|
+
}
|
36309
|
+
if (!fs.lchown) {
|
36310
|
+
fs.lchown = function (path, uid, gid, cb) {
|
36311
|
+
if (cb) process.nextTick(cb)
|
36312
|
+
}
|
36313
|
+
fs.lchownSync = function () {}
|
36314
|
+
}
|
36315
|
+
|
36316
|
+
// on Windows, A/V software can lock the directory, causing this
|
36317
|
+
// to fail with an EACCES or EPERM if the directory contains newly
|
36318
|
+
// created files. Try again on failure, for up to 60 seconds.
|
36319
|
+
|
36320
|
+
// Set the timeout this long because some Windows Anti-Virus, such as Parity
|
36321
|
+
// bit9, may lock files for up to a minute, causing npm package install
|
36322
|
+
// failures. Also, take care to yield the scheduler. Windows scheduling gives
|
36323
|
+
// CPU to a busy looping process, which can cause the program causing the lock
|
36324
|
+
// contention to be starved of CPU by node, so the contention doesn't resolve.
|
36325
|
+
if (platform === "win32") {
|
36326
|
+
fs.rename = (function (fs$rename) { return function (from, to, cb) {
|
36327
|
+
var start = Date.now()
|
36328
|
+
var backoff = 0;
|
36329
|
+
fs$rename(from, to, function CB (er) {
|
36330
|
+
if (er
|
36331
|
+
&& (er.code === "EACCES" || er.code === "EPERM")
|
36332
|
+
&& Date.now() - start < 60000) {
|
36333
|
+
setTimeout(function() {
|
36334
|
+
fs.stat(to, function (stater, st) {
|
36335
|
+
if (stater && stater.code === "ENOENT")
|
36336
|
+
fs$rename(from, to, CB);
|
36337
|
+
else
|
36338
|
+
cb(er)
|
36339
|
+
})
|
36340
|
+
}, backoff)
|
36341
|
+
if (backoff < 100)
|
36342
|
+
backoff += 10;
|
36343
|
+
return;
|
36344
|
+
}
|
36345
|
+
if (cb) cb(er)
|
36346
|
+
})
|
36347
|
+
}})(fs.rename)
|
36348
|
+
}
|
36349
|
+
|
36350
|
+
// if read() returns EAGAIN, then just try it again.
|
36351
|
+
fs.read = (function (fs$read) {
|
36352
|
+
function read (fd, buffer, offset, length, position, callback_) {
|
36353
|
+
var callback
|
36354
|
+
if (callback_ && typeof callback_ === 'function') {
|
36355
|
+
var eagCounter = 0
|
36356
|
+
callback = function (er, _, __) {
|
36357
|
+
if (er && er.code === 'EAGAIN' && eagCounter < 10) {
|
36358
|
+
eagCounter ++
|
36359
|
+
return fs$read.call(fs, fd, buffer, offset, length, position, callback)
|
36360
|
+
}
|
36361
|
+
callback_.apply(this, arguments)
|
36362
|
+
}
|
36363
|
+
}
|
36364
|
+
return fs$read.call(fs, fd, buffer, offset, length, position, callback)
|
36365
|
+
}
|
36366
|
+
|
36367
|
+
// This ensures `util.promisify` works as it does for native `fs.read`.
|
36368
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read)
|
36369
|
+
return read
|
36370
|
+
})(fs.read)
|
36371
|
+
|
36372
|
+
fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
|
36373
|
+
var eagCounter = 0
|
36374
|
+
while (true) {
|
36375
|
+
try {
|
36376
|
+
return fs$readSync.call(fs, fd, buffer, offset, length, position)
|
36377
|
+
} catch (er) {
|
36378
|
+
if (er.code === 'EAGAIN' && eagCounter < 10) {
|
36379
|
+
eagCounter ++
|
36380
|
+
continue
|
36381
|
+
}
|
36382
|
+
throw er
|
36383
|
+
}
|
36384
|
+
}
|
36385
|
+
}})(fs.readSync)
|
36386
|
+
|
36387
|
+
function patchLchmod (fs) {
|
36388
|
+
fs.lchmod = function (path, mode, callback) {
|
36389
|
+
fs.open( path
|
36390
|
+
, constants.O_WRONLY | constants.O_SYMLINK
|
36391
|
+
, mode
|
36392
|
+
, function (err, fd) {
|
36393
|
+
if (err) {
|
36394
|
+
if (callback) callback(err)
|
36395
|
+
return
|
36396
|
+
}
|
36397
|
+
// prefer to return the chmod error, if one occurs,
|
36398
|
+
// but still try to close, and report closing errors if they occur.
|
36399
|
+
fs.fchmod(fd, mode, function (err) {
|
36400
|
+
fs.close(fd, function(err2) {
|
36401
|
+
if (callback) callback(err || err2)
|
36402
|
+
})
|
36403
|
+
})
|
36404
|
+
})
|
36405
|
+
}
|
36406
|
+
|
36407
|
+
fs.lchmodSync = function (path, mode) {
|
36408
|
+
var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)
|
36409
|
+
|
36410
|
+
// prefer to return the chmod error, if one occurs,
|
36411
|
+
// but still try to close, and report closing errors if they occur.
|
36412
|
+
var threw = true
|
36413
|
+
var ret
|
36414
|
+
try {
|
36415
|
+
ret = fs.fchmodSync(fd, mode)
|
36416
|
+
threw = false
|
36417
|
+
} finally {
|
36418
|
+
if (threw) {
|
36419
|
+
try {
|
36420
|
+
fs.closeSync(fd)
|
36421
|
+
} catch (er) {}
|
36422
|
+
} else {
|
36423
|
+
fs.closeSync(fd)
|
36424
|
+
}
|
36425
|
+
}
|
36426
|
+
return ret
|
36427
|
+
}
|
36428
|
+
}
|
36429
|
+
|
36430
|
+
function patchLutimes (fs) {
|
36431
|
+
if (constants.hasOwnProperty("O_SYMLINK")) {
|
36432
|
+
fs.lutimes = function (path, at, mt, cb) {
|
36433
|
+
fs.open(path, constants.O_SYMLINK, function (er, fd) {
|
36434
|
+
if (er) {
|
36435
|
+
if (cb) cb(er)
|
36436
|
+
return
|
36437
|
+
}
|
36438
|
+
fs.futimes(fd, at, mt, function (er) {
|
36439
|
+
fs.close(fd, function (er2) {
|
36440
|
+
if (cb) cb(er || er2)
|
36441
|
+
})
|
36442
|
+
})
|
36443
|
+
})
|
36444
|
+
}
|
36445
|
+
|
36446
|
+
fs.lutimesSync = function (path, at, mt) {
|
36447
|
+
var fd = fs.openSync(path, constants.O_SYMLINK)
|
36448
|
+
var ret
|
36449
|
+
var threw = true
|
36450
|
+
try {
|
36451
|
+
ret = fs.futimesSync(fd, at, mt)
|
36452
|
+
threw = false
|
36453
|
+
} finally {
|
36454
|
+
if (threw) {
|
36455
|
+
try {
|
36456
|
+
fs.closeSync(fd)
|
36457
|
+
} catch (er) {}
|
36458
|
+
} else {
|
36459
|
+
fs.closeSync(fd)
|
36460
|
+
}
|
36461
|
+
}
|
36462
|
+
return ret
|
36463
|
+
}
|
36464
|
+
|
36465
|
+
} else {
|
36466
|
+
fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
|
36467
|
+
fs.lutimesSync = function () {}
|
36468
|
+
}
|
36469
|
+
}
|
36470
|
+
|
36471
|
+
function chmodFix (orig) {
|
36472
|
+
if (!orig) return orig
|
36473
|
+
return function (target, mode, cb) {
|
36474
|
+
return orig.call(fs, target, mode, function (er) {
|
36475
|
+
if (chownErOk(er)) er = null
|
36476
|
+
if (cb) cb.apply(this, arguments)
|
36477
|
+
})
|
36478
|
+
}
|
36479
|
+
}
|
36480
|
+
|
36481
|
+
function chmodFixSync (orig) {
|
36482
|
+
if (!orig) return orig
|
36483
|
+
return function (target, mode) {
|
36484
|
+
try {
|
36485
|
+
return orig.call(fs, target, mode)
|
36486
|
+
} catch (er) {
|
36487
|
+
if (!chownErOk(er)) throw er
|
36488
|
+
}
|
36489
|
+
}
|
36490
|
+
}
|
36491
|
+
|
36492
|
+
|
36493
|
+
function chownFix (orig) {
|
36494
|
+
if (!orig) return orig
|
36495
|
+
return function (target, uid, gid, cb) {
|
36496
|
+
return orig.call(fs, target, uid, gid, function (er) {
|
36497
|
+
if (chownErOk(er)) er = null
|
36498
|
+
if (cb) cb.apply(this, arguments)
|
36499
|
+
})
|
36500
|
+
}
|
36501
|
+
}
|
36502
|
+
|
36503
|
+
function chownFixSync (orig) {
|
36504
|
+
if (!orig) return orig
|
36505
|
+
return function (target, uid, gid) {
|
36506
|
+
try {
|
36507
|
+
return orig.call(fs, target, uid, gid)
|
36508
|
+
} catch (er) {
|
36509
|
+
if (!chownErOk(er)) throw er
|
36510
|
+
}
|
36511
|
+
}
|
36512
|
+
}
|
36513
|
+
|
36514
|
+
function statFix (orig) {
|
36515
|
+
if (!orig) return orig
|
36516
|
+
// Older versions of Node erroneously returned signed integers for
|
36517
|
+
// uid + gid.
|
36518
|
+
return function (target, options, cb) {
|
36519
|
+
if (typeof options === 'function') {
|
36520
|
+
cb = options
|
36521
|
+
options = null
|
36522
|
+
}
|
36523
|
+
function callback (er, stats) {
|
36524
|
+
if (stats) {
|
36525
|
+
if (stats.uid < 0) stats.uid += 0x100000000
|
36526
|
+
if (stats.gid < 0) stats.gid += 0x100000000
|
36527
|
+
}
|
36528
|
+
if (cb) cb.apply(this, arguments)
|
36529
|
+
}
|
36530
|
+
return options ? orig.call(fs, target, options, callback)
|
36531
|
+
: orig.call(fs, target, callback)
|
36532
|
+
}
|
36533
|
+
}
|
36534
|
+
|
36535
|
+
function statFixSync (orig) {
|
36536
|
+
if (!orig) return orig
|
36537
|
+
// Older versions of Node erroneously returned signed integers for
|
36538
|
+
// uid + gid.
|
36539
|
+
return function (target, options) {
|
36540
|
+
var stats = options ? orig.call(fs, target, options)
|
36541
|
+
: orig.call(fs, target)
|
36542
|
+
if (stats) {
|
36543
|
+
if (stats.uid < 0) stats.uid += 0x100000000
|
36544
|
+
if (stats.gid < 0) stats.gid += 0x100000000
|
36545
|
+
}
|
36546
|
+
return stats;
|
36547
|
+
}
|
36548
|
+
}
|
36549
|
+
|
36550
|
+
// ENOSYS means that the fs doesn't support the op. Just ignore
|
36551
|
+
// that, because it doesn't matter.
|
36552
|
+
//
|
36553
|
+
// if there's no getuid, or if getuid() is something other
|
36554
|
+
// than 0, and the error is EINVAL or EPERM, then just ignore
|
36555
|
+
// it.
|
36556
|
+
//
|
36557
|
+
// This specific case is a silent failure in cp, install, tar,
|
36558
|
+
// and most other unix tools that manage permissions.
|
36559
|
+
//
|
36560
|
+
// When running as root, or if other types of errors are
|
36561
|
+
// encountered, then it's strict.
|
36562
|
+
function chownErOk (er) {
|
36563
|
+
if (!er)
|
36564
|
+
return true
|
36565
|
+
|
36566
|
+
if (er.code === "ENOSYS")
|
36567
|
+
return true
|
36568
|
+
|
36569
|
+
var nonroot = !process.getuid || process.getuid() !== 0
|
36570
|
+
if (nonroot) {
|
36571
|
+
if (er.code === "EINVAL" || er.code === "EPERM")
|
36572
|
+
return true
|
36573
|
+
}
|
36574
|
+
|
36575
|
+
return false
|
36576
|
+
}
|
36577
|
+
}
|
36578
|
+
|
36579
|
+
|
35633
36580
|
/***/ }),
|
35634
36581
|
|
35635
36582
|
/***/ 76157:
|
@@ -49813,7 +50760,7 @@ exports.parse = function (s) {
|
|
49813
50760
|
|
49814
50761
|
let _fs
|
49815
50762
|
try {
|
49816
|
-
_fs = __webpack_require__(
|
50763
|
+
_fs = __webpack_require__(19677)
|
49817
50764
|
} catch (_) {
|
49818
50765
|
_fs = __webpack_require__(57147)
|
49819
50766
|
}
|
@@ -89815,7 +90762,7 @@ const PackageManagerSchema = {
|
|
89815
90762
|
label: () => _locale.i18n.t(_locale.localeKeys.packageManager.self),
|
89816
90763
|
mutualExclusion: true,
|
89817
90764
|
when: (_values, extra) => !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject),
|
89818
|
-
items:
|
90765
|
+
items: Object.values(PackageManager).map(packageManager => ({
|
89819
90766
|
key: packageManager,
|
89820
90767
|
label: PackageManagerName[packageManager]
|
89821
90768
|
}))
|
@@ -90729,7 +91676,17 @@ exports.MonorepoSchemas = exports.MonorepoSchema = exports.MonorepoDefaultConfig
|
|
90729
91676
|
|
90730
91677
|
var _common = __webpack_require__(25523);
|
90731
91678
|
|
90732
|
-
|
91679
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
91680
|
+
|
91681
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
91682
|
+
|
91683
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
91684
|
+
|
91685
|
+
const MonorepoPackageManagerSchema = _objectSpread(_objectSpread({}, _common.PackageManagerSchema), {}, {
|
91686
|
+
items: _common.PackageManagerSchema.items.filter(item => item.key !== _common.PackageManager.Npm)
|
91687
|
+
});
|
91688
|
+
|
91689
|
+
const MonorepoSchemas = [MonorepoPackageManagerSchema];
|
90733
91690
|
exports.MonorepoSchemas = MonorepoSchemas;
|
90734
91691
|
const MonorepoSchema = {
|
90735
91692
|
key: 'monorepo',
|
@@ -90925,10 +91882,10 @@ const FrameworkSchema = {
|
|
90925
91882
|
};
|
90926
91883
|
exports.FrameworkSchema = FrameworkSchema;
|
90927
91884
|
const FrameworkAppendTypeContent = {
|
90928
|
-
[Framework.Express]: `/// <reference types='@modern-js/plugin-express/types' />`,
|
90929
|
-
[Framework.Koa]: `/// <reference types='@modern-js/plugin-koa/types' />`,
|
90930
|
-
[Framework.Egg]: `/// <reference types='@modern-js/plugin-egg/types' />`,
|
90931
|
-
[Framework.Nest]: `/// <reference types='@modern-js/plugin-nest/types' />`
|
91885
|
+
[Framework.Express]: `/// <reference types='@modern-js/plugin-express/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`,
|
91886
|
+
[Framework.Koa]: `/// <reference types='@modern-js/plugin-koa/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`,
|
91887
|
+
[Framework.Egg]: `/// <reference types='@modern-js/plugin-egg/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`,
|
91888
|
+
[Framework.Nest]: `/// <reference types='@modern-js/plugin-nest/types' />\n/// <reference types='@modern-js/plugin-bff/types' />`
|
90932
91889
|
};
|
90933
91890
|
exports.FrameworkAppendTypeContent = FrameworkAppendTypeContent;
|
90934
91891
|
|
@@ -91413,7 +92370,7 @@ Object.keys(_monorepo).forEach(function (key) {
|
|
91413
92370
|
Object.defineProperty(exports, "__esModule", ({
|
91414
92371
|
value: true
|
91415
92372
|
}));
|
91416
|
-
exports.ModuleSpecialSchemaMap = exports.ModuleNewActionSchema = exports.ModuleNewActionGenerators = exports.ModuleActionTypesMap = exports.ModuleActionTypes = exports.ModuleActionFunctionsPeerDependencies = exports.ModuleActionFunctionsDevDependencies = exports.ModuleActionFunctionsDependencies = exports.ModuleActionFunctions = void 0;
|
92373
|
+
exports.ModuleSpecialSchemaMap = exports.ModuleNewActionSchema = exports.ModuleNewActionGenerators = exports.ModuleActionTypesMap = exports.ModuleActionTypes = exports.ModuleActionFunctionsPeerDependencies = exports.ModuleActionFunctionsDevDependencies = exports.ModuleActionFunctionsDependencies = exports.ModuleActionFunctionsAppendTypeContent = exports.ModuleActionFunctions = void 0;
|
91417
92374
|
|
91418
92375
|
var _common = __webpack_require__(78353);
|
91419
92376
|
|
@@ -91471,9 +92428,13 @@ const ModuleActionFunctionsDependencies = {
|
|
91471
92428
|
[_common.ActionFunction.Sass]: '@modern-js/plugin-sass'
|
91472
92429
|
};
|
91473
92430
|
exports.ModuleActionFunctionsDependencies = ModuleActionFunctionsDependencies;
|
92431
|
+
const ModuleActionFunctionsAppendTypeContent = {
|
92432
|
+
[_common.ActionFunction.TailwindCSS]: `/// <reference types='@modern-js/plugin-tailwindcss/types' />`
|
92433
|
+
};
|
92434
|
+
exports.ModuleActionFunctionsAppendTypeContent = ModuleActionFunctionsAppendTypeContent;
|
91474
92435
|
const ModuleNewActionGenerators = {
|
91475
92436
|
[_common.ActionType.Function]: {
|
91476
|
-
[_common.ActionFunction.TailwindCSS]: '@modern-js/
|
92437
|
+
[_common.ActionFunction.TailwindCSS]: '@modern-js/tailwindcss-generator',
|
91477
92438
|
[_common.ActionFunction.Less]: '@modern-js/dependence-generator',
|
91478
92439
|
[_common.ActionFunction.Sass]: '@modern-js/dependence-generator',
|
91479
92440
|
[_common.ActionFunction.I18n]: '@modern-js/dependence-generator',
|
@@ -91607,12 +92568,14 @@ const MWAActionFunctionsDependencies = {
|
|
91607
92568
|
[_common.ActionFunction.MicroFrontend]: '@modern-js/plugin-garfish',
|
91608
92569
|
[_common.ActionFunction.I18n]: '@modern-js/plugin-i18n',
|
91609
92570
|
[_common.ActionFunction.SSG]: '@modern-js/plugin-ssg',
|
91610
|
-
[_common.ActionFunction.Polyfill]: '@modern-js/plugin-polyfill'
|
92571
|
+
[_common.ActionFunction.Polyfill]: '@modern-js/plugin-polyfill',
|
92572
|
+
[_common.ActionFunction.TailwindCSS]: 'tailwindcss'
|
91611
92573
|
};
|
91612
92574
|
exports.MWAActionFunctionsDependencies = MWAActionFunctionsDependencies;
|
91613
92575
|
const MWAActionFunctionsAppendTypeContent = {
|
91614
92576
|
[_common.ActionFunction.Test]: `/// <reference types='@modern-js/plugin-testing/type' />`,
|
91615
|
-
[_common.ActionFunction.MicroFrontend]: `/// <reference types='@modern-js/plugin-garfish/type'
|
92577
|
+
[_common.ActionFunction.MicroFrontend]: `/// <reference types='@modern-js/plugin-garfish/type' />`,
|
92578
|
+
[_common.ActionFunction.TailwindCSS]: `/// <reference types='@modern-js/plugin-tailwindcss/types' />`
|
91616
92579
|
};
|
91617
92580
|
exports.MWAActionFunctionsAppendTypeContent = MWAActionFunctionsAppendTypeContent;
|
91618
92581
|
const MWANewActionGenerators = {
|
@@ -91995,7 +92958,7 @@ var exports = __webpack_exports__;
|
|
91995
92958
|
Object.defineProperty(exports, "__esModule", ({
|
91996
92959
|
value: true
|
91997
92960
|
}));
|
91998
|
-
exports["default"] = void 0;
|
92961
|
+
exports.handleTemplateFile = exports["default"] = void 0;
|
91999
92962
|
|
92000
92963
|
var _path = _interopRequireDefault(__webpack_require__(71017));
|
92001
92964
|
|
@@ -92022,13 +92985,34 @@ const getGeneratorPath = (generator, distTag) => {
|
|
92022
92985
|
};
|
92023
92986
|
|
92024
92987
|
const handleTemplateFile = async (context, generator, appApi) => {
|
92988
|
+
const {
|
92989
|
+
dependencies,
|
92990
|
+
peerDependencies,
|
92991
|
+
devDependencies
|
92992
|
+
} = context.config;
|
92993
|
+
const TailwindCSSVersion = '^2.2.19';
|
92994
|
+
|
92995
|
+
if (dependencies !== null && dependencies !== void 0 && dependencies.tailwindcss) {
|
92996
|
+
dependencies.tailwindcss = TailwindCSSVersion;
|
92997
|
+
}
|
92998
|
+
|
92999
|
+
if (peerDependencies !== null && peerDependencies !== void 0 && peerDependencies.tailwindcss) {
|
93000
|
+
peerDependencies.tailwindcss = TailwindCSSVersion;
|
93001
|
+
}
|
93002
|
+
|
93003
|
+
if (devDependencies !== null && devDependencies !== void 0 && devDependencies.tailwindcss) {
|
93004
|
+
devDependencies.tailwindcss = TailwindCSSVersion;
|
93005
|
+
}
|
93006
|
+
|
92025
93007
|
await appApi.runSubGenerator(getGeneratorPath(_generatorCommon.DependenceGenerator, context.config.distTag), undefined, _objectSpread(_objectSpread({}, context.config), {}, {
|
92026
|
-
dependencies
|
92027
|
-
|
92028
|
-
|
93008
|
+
dependencies,
|
93009
|
+
devDependencies,
|
93010
|
+
peerDependencies
|
92029
93011
|
}));
|
92030
93012
|
};
|
92031
93013
|
|
93014
|
+
exports.handleTemplateFile = handleTemplateFile;
|
93015
|
+
|
92032
93016
|
var _default = async (context, generator) => {
|
92033
93017
|
const appApi = new _codesmithApiApp.AppAPI(context, generator);
|
92034
93018
|
const {
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.2.
|
14
|
+
"version": "1.2.3",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"main": "./dist/js/node/main.js",
|
17
17
|
"files": [
|
@@ -23,8 +23,9 @@
|
|
23
23
|
"@modern-js/codesmith": "^1.0.8",
|
24
24
|
"@modern-js/codesmith-api-app": "^1.0.8",
|
25
25
|
"@modern-js/codesmith-tools": "^1.0.9",
|
26
|
-
"@modern-js/generator-common": "^1.4.
|
27
|
-
"@modern-js/dependence-generator": "^1.2.
|
26
|
+
"@modern-js/generator-common": "^1.4.4",
|
27
|
+
"@modern-js/dependence-generator": "^1.2.4",
|
28
|
+
"@modern-js/generator-utils": "^1",
|
28
29
|
"@types/jest": "^26",
|
29
30
|
"@types/lodash": "^4.14.168",
|
30
31
|
"@types/node": "^14",
|