@baic/yolk-cli 2.1.0-alpha.9 → 2.1.0-github.0
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/compiled/commander/index.d.ts +430 -0
- package/compiled/commander/index.js +1970 -0
- package/compiled/commander/package.json +1 -0
- package/compiled/glob/index.d.ts +101 -0
- package/compiled/glob/index.js +2218 -0
- package/compiled/glob/package.json +1 -0
- package/compiled/minimatch/index.d.ts +312 -0
- package/compiled/minimatch/index.js +1254 -0
- package/compiled/minimatch/package.json +1 -0
- package/compiled/mkdirp/index.d.ts +114 -0
- package/compiled/mkdirp/index.js +348 -0
- package/compiled/mkdirp/package.json +1 -0
- package/compiled/mustache/index.d.ts +423 -0
- package/compiled/mustache/index.js +828 -0
- package/compiled/mustache/package.json +1 -0
- package/compiled/prettier/index.d.ts +892 -0
- package/compiled/prettier/index.js +48593 -0
- package/compiled/prettier/package.json +1 -0
- package/compiled/rimraf/index.d.ts +48 -0
- package/compiled/rimraf/index.js +449 -0
- package/compiled/rimraf/package.json +1 -0
- package/compiled/staged-git-files/index.js +267 -0
- package/compiled/staged-git-files/package.json +1 -0
- package/es/.prettierrc.js +13 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -1
- package/es/yolk.js +1 -1
- package/lib/.prettierrc.js +13 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/yolk.js +1 -1
- package/package.json +38 -26
- package/templates/ice-mobile/.eslintrc +1 -1
- package/templates/ice-mobile/.gitignore.tpl +10 -3
- package/templates/ice-mobile/.icerc.ts +2 -2
- package/templates/ice-mobile/.npmrc.tpl +2 -0
- package/templates/ice-mobile/.prettierignore +4 -5
- package/templates/ice-mobile/.prettierrc.js +1 -0
- package/templates/ice-mobile/README.md.tpl +1 -1
- package/templates/ice-mobile/package.json.tpl +5 -0
- package/templates/ice-mobile/public/index.html +15 -0
- package/templates/ice-mobile/src/app.tsx +1 -1
- package/templates/ice-mobile/src/pages/demo/examples/Input.tsx +1 -2
- package/templates/ice-mobile/src/pages/demo/examples/List/4.tsx +2 -2
- package/templates/ice-mobile/src/pages/demo/examples/NumberInput/1.tsx +1 -2
- package/templates/ice-mobile/src/pages/demo/examples/NumberInput/2.tsx +1 -2
- package/templates/ice-mobile/src/pages/demo/examples/NumberInput/3.tsx +1 -2
- package/templates/ice-mobile/src/pages/demo/examples/NumberInput/4.tsx +1 -2
- package/templates/ice-mobile/src/routes.ts +2 -1
- package/templates/ice-mobile-h5+app/.eslintrc +6 -0
- package/templates/ice-mobile-h5+app/.gitignore.tpl +37 -0
- package/templates/ice-mobile-h5+app/.icerc.ts +6 -0
- package/templates/ice-mobile-h5+app/.npmrc.tpl +2 -0
- package/templates/ice-mobile-h5+app/.prettierignore +8 -0
- package/templates/ice-mobile-h5+app/.prettierrc.js +1 -0
- package/templates/ice-mobile-h5+app/.stylelintrc +3 -0
- package/templates/ice-mobile-h5+app/README.md.tpl +34 -0
- package/templates/ice-mobile-h5+app/h5+app/manifest.json +87 -0
- package/templates/ice-mobile-h5+app/package.json.tpl +16 -0
- package/templates/ice-mobile-h5+app/public/favicon.ico +0 -0
- package/templates/ice-mobile-h5+app/public/index.html +15 -0
- package/templates/ice-mobile-h5+app/src/app.tsx +5 -0
- package/templates/ice-mobile-h5+app/src/common/request.ts +3 -0
- package/templates/ice-mobile-h5+app/src/common/util.ts +7 -0
- package/templates/ice-mobile-h5+app/src/components/index.ts +0 -0
- package/templates/ice-mobile-h5+app/src/global.less +3 -0
- package/templates/ice-mobile-h5+app/src/layouts/index.tsx +5 -0
- package/templates/ice-mobile-h5+app/src/pages/404.tsx +10 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/BarCode.tsx +4 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/Iconfont.tsx +18 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/Input.tsx +16 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/1.tsx +12 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/2.tsx +29 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/3.tsx +29 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/4.tsx +55 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/mock.ts +30 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/Loading.tsx +12 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/1.tsx +16 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/2.tsx +16 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/3.tsx +16 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/4.tsx +16 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/PagingList/1.tsx +6 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/QrCode.tsx +4 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/Required.tsx +4 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/TimerButton.tsx +4 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/examples/usePreload.tsx +9 -0
- package/templates/ice-mobile-h5+app/src/pages/demo/index.tsx +87 -0
- package/templates/ice-mobile-h5+app/src/pages/index.tsx +3 -0
- package/templates/ice-mobile-h5+app/src/routes.ts +29 -0
- package/templates/ice-mobile-h5+app/src/types/user.d.ts +3 -0
- package/templates/ice-mobile-h5+app/tsconfig.json +3 -0
- package/templates/ice-mobile-h5+app/typings.d.ts +1 -0
- package/templates/ice-mobile-native/.eslintrc +6 -0
- package/templates/ice-mobile-native/.gitignore.tpl +42 -0
- package/templates/ice-mobile-native/.icerc.ts +8 -0
- package/templates/ice-mobile-native/.npmrc.tpl +2 -0
- package/templates/ice-mobile-native/.prettierignore +8 -0
- package/templates/ice-mobile-native/.prettierrc.js +1 -0
- package/templates/ice-mobile-native/.stylelintrc +3 -0
- package/templates/ice-mobile-native/README.md.tpl +34 -0
- package/templates/ice-mobile-native/android/app/6209ba977ffec7d62675a4e254ebc209.keystore +0 -0
- package/templates/ice-mobile-native/android/app/build.gradle +66 -0
- package/templates/ice-mobile-native/android/app/libs/Bluetooth-release.aar +0 -0
- package/templates/ice-mobile-native/android/app/libs/PosPrinterSDK.jar +0 -0
- package/templates/ice-mobile-native/android/app/libs/android-gif-drawable-release@1.2.23.aar +0 -0
- package/templates/ice-mobile-native/android/app/libs/lib.5plus.base-release.aar +0 -0
- package/templates/ice-mobile-native/android/app/libs/oaid_sdk_1.0.25.aar +0 -0
- package/templates/ice-mobile-native/android/app/libs/webview-x5-release.aar +0 -0
- package/templates/ice-mobile-native/android/app/proguard-rules.pro +303 -0
- package/templates/ice-mobile-native/android/app/src/main/AndroidManifest.xml +98 -0
- package/templates/ice-mobile-native/android/app/src/main/assets/apps/H5ECA1DEE/www/manifest.json +89 -0
- package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_control.xml +6 -0
- package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_error.html +92 -0
- package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_properties.xml +19 -0
- package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/JSBridge/FunctionCreator.java +119 -0
- package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/MPandoraEntryActivity.java +17 -0
- package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Creator.java +17 -0
- package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Error.java +26 -0
- package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/JSPlugin.java +265 -0
- package/templates/ice-mobile-native/android/app/src/main/res/drawable/icon.png +0 -0
- package/templates/ice-mobile-native/android/app/src/main/res/values/colors.xml +5 -0
- package/templates/ice-mobile-native/android/app/src/main/res/values/strings.xml +3 -0
- package/templates/ice-mobile-native/android/build.gradle +9 -0
- package/templates/ice-mobile-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/templates/ice-mobile-native/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/templates/ice-mobile-native/android/gradle.properties +22 -0
- package/templates/ice-mobile-native/android/gradlew +185 -0
- package/templates/ice-mobile-native/android/gradlew.bat +89 -0
- package/templates/ice-mobile-native/android/settings.gradle +16 -0
- package/templates/ice-mobile-native/ios/HBuilder/HBuilder.entitlements +5 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/1024x1024.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120-1.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/180x180.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/40x40.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/58x58.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/60x60.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/80x80.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/87x87.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/Contents.json +62 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/Contents.json +6 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/Image.imageset/Contents.json +20 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/120x120.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/180x180.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/60x60.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/Contents.json +26 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/Contents.json +21 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/brightness@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211-1.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206-1.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset/Contents.json +21 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset//345/257/271/347/204/246/347/272/277.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225-1.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/Contents.json +23 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/Contents.json +23 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/Contents.json +23 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/Contents.json +23 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/Contents.json +22 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@2x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@3x.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/120x120.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/180x180.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/AppDelegate.h +16 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/AppDelegate.m +225 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Base.lproj/LaunchScreen.storyboard +65 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/English.lproj/Localizable.strings +13 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Info.plist +486 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Prefix.pch +16 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/LaunchScreen.storyboard +67 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/manifest.json +79 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/1024x1024.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/120x120.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/144x144.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/152x152.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/167x167.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/180x180.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/192x192.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/20x20.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/29x29.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/40x40.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/58x58.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/60x60.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/72x72.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/76x76.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/80x80.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/87x87.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/96x96.png +0 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/ViewController.h +19 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/ViewController.m +161 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Xprinter.h +19 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/Xprinter.m +235 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/control.xml +107 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/en.lproj/InfoPlist.strings +4 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/en.lproj/Localizable.strings +12 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/main.m +18 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/InfoPlist.strings +4 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/LaunchScreen.strings +3 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/Localizable.strings +13 -0
- package/templates/ice-mobile-native/ios/HBuilder-Hello.xcodeproj/project.pbxproj +1607 -0
- package/templates/ice-mobile-native/package.json.tpl +16 -0
- package/templates/ice-mobile-native/public/favicon.ico +0 -0
- package/templates/ice-mobile-native/public/index.html +15 -0
- package/templates/ice-mobile-native/src/app.tsx +5 -0
- package/templates/ice-mobile-native/src/common/Xprinter.ts +58 -0
- package/templates/ice-mobile-native/src/common/bluetooth.ts +354 -0
- package/templates/ice-mobile-native/src/common/bridge.ts +59 -0
- package/templates/ice-mobile-native/src/common/request.ts +3 -0
- package/templates/ice-mobile-native/src/common/util.ts +7 -0
- package/templates/ice-mobile-native/src/components/index.ts +0 -0
- package/templates/ice-mobile-native/src/global.less +3 -0
- package/templates/ice-mobile-native/src/layouts/index.tsx +5 -0
- package/templates/ice-mobile-native/src/pages/404.tsx +10 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/BarCode.tsx +4 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/Iconfont.tsx +18 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/Input.tsx +16 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/List/1.tsx +12 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/List/2.tsx +29 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/List/3.tsx +29 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/List/4.tsx +55 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/List/mock.ts +30 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/Loading.tsx +12 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/1.tsx +16 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/2.tsx +16 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/3.tsx +16 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/4.tsx +16 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/PagingList/1.tsx +6 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/QrCode.tsx +4 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/Required.tsx +4 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/TimerButton.tsx +4 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/Xprinter/index.tsx +64 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/Xprinter/style.less +16 -0
- package/templates/ice-mobile-native/src/pages/demo/examples/usePreload.tsx +9 -0
- package/templates/ice-mobile-native/src/pages/demo/index.tsx +89 -0
- package/templates/ice-mobile-native/src/pages/index.tsx +3 -0
- package/templates/ice-mobile-native/src/routes.ts +29 -0
- package/templates/ice-mobile-native/src/types/user.d.ts +3 -0
- package/templates/ice-mobile-native/tsconfig.json +3 -0
- package/templates/ice-mobile-native/typings.d.ts +1 -0
- package/templates/ice-web/.eslintrc +1 -1
- package/templates/ice-web/.gitignore.tpl +10 -3
- package/templates/ice-web/.icerc.ts +1 -1
- package/templates/ice-web/.npmrc.tpl +2 -0
- package/templates/ice-web/.prettierignore +4 -5
- package/templates/ice-web/.prettierrc.js +1 -0
- package/templates/ice-web/README.md.tpl +1 -1
- package/templates/ice-web/package.json.tpl +5 -0
- package/templates/ice-web/public/index.html +15 -0
- package/templates/ice-web/src/app.tsx +1 -1
- package/templates/ice-web/src/pages/demo/examples/BankInput.tsx +1 -2
- package/templates/ice-web/src/pages/demo/examples/Grid/5.tsx +1 -2
- package/templates/ice-web/src/pages/demo/examples/Input/2.tsx +2 -1
- package/templates/ice-web/src/pages/demo/examples/RangeNumber/2.tsx +1 -2
- package/templates/ice-web/src/pages/demo/examples/SearchLayout.tsx +2 -2
- package/templates/ice-web/src/pages/demo/examples/Wrapper.tsx +1 -1
- package/templates/ice-web/src/routes.ts +2 -1
- package/templates/ice-web-screen/.eslintrc +6 -0
- package/templates/ice-web-screen/.gitignore.tpl +37 -0
- package/templates/ice-web-screen/.icerc.ts +3 -0
- package/templates/ice-web-screen/.npmrc.tpl +2 -0
- package/templates/ice-web-screen/.prettierignore +8 -0
- package/templates/ice-web-screen/.prettierrc.js +1 -0
- package/templates/ice-web-screen/.stylelintrc +3 -0
- package/templates/ice-web-screen/README.md.tpl +34 -0
- package/templates/ice-web-screen/package.json.tpl +17 -0
- package/templates/ice-web-screen/public/favicon.ico +0 -0
- package/templates/ice-web-screen/public/index.html +15 -0
- package/templates/ice-web-screen/src/app.tsx +5 -0
- package/templates/ice-web-screen/src/common/request.ts +3 -0
- package/templates/ice-web-screen/src/common/util.ts +15 -0
- package/templates/ice-web-screen/src/components/index.ts +1 -0
- package/templates/ice-web-screen/src/components/resize-container/index.tsx +95 -0
- package/templates/ice-web-screen/src/components/resize-container/style.module.less +3 -0
- package/templates/ice-web-screen/src/constants.ts +7 -0
- package/templates/ice-web-screen/src/global.less +31 -0
- package/templates/ice-web-screen/src/hooks/use-size.ts +18 -0
- package/templates/ice-web-screen/src/layouts/16_9/fixed.less +18 -0
- package/templates/ice-web-screen/src/layouts/16_9/index.tsx +34 -0
- package/templates/ice-web-screen/src/layouts/16_9/style.module.less +19 -0
- package/templates/ice-web-screen/src/layouts/components/index.ts +0 -0
- package/templates/ice-web-screen/src/layouts/controller/index.tsx +79 -0
- package/templates/ice-web-screen/src/layouts/index.tsx +11 -0
- package/templates/ice-web-screen/src/pages/404.tsx +17 -0
- package/templates/ice-web-screen/src/pages/index.tsx +3 -0
- package/templates/ice-web-screen/src/pages/template/16_9/index.tsx +13 -0
- package/templates/ice-web-screen/src/pages/template/16_9/style.module.less +7 -0
- package/templates/ice-web-screen/src/pages/template/components/charts/demo-line/index.tsx +274 -0
- package/templates/ice-web-screen/src/pages/template/components/charts/index.ts +1 -0
- package/templates/ice-web-screen/src/pages/template/components/index.ts +1 -0
- package/templates/ice-web-screen/src/pages/template/controller/index.tsx +85 -0
- package/templates/ice-web-screen/src/pages/template/index.tsx +15 -0
- package/templates/ice-web-screen/src/pages/template/style.module.less +3 -0
- package/templates/ice-web-screen/src/routes.ts +29 -0
- package/templates/ice-web-screen/src/styles/vars.less +5 -0
- package/templates/ice-web-screen/src/types/user.d.ts +3 -0
- package/templates/ice-web-screen/tsconfig.json +3 -0
- package/templates/ice-web-screen/typings.d.ts +1 -0
- package/templates/miniprogram/.eslintrc +1 -1
- package/templates/miniprogram/.gitignore.tpl +12 -11
- package/templates/miniprogram/.npmrc.tpl +2 -0
- package/templates/miniprogram/.prettierignore +5 -1
- package/templates/miniprogram/.prettierrc.js +1 -0
- package/templates/miniprogram/README.md.tpl +2 -2
- package/templates/miniprogram/global.d.ts +1 -33
- package/templates/miniprogram/package.json.tpl +6 -2
- package/templates/miniprogram/src/pages/demo/examples/Input.tsx +11 -2
- package/templates/miniprogram/src/pages/demo/{index.module.scss → style.scss} +0 -0
- package/templates/miniprogram/src/pages/index/index.tsx +3 -1
- package/templates/miniprogram/src/pages/index/{index.module.scss → style.scss} +0 -0
- package/templates/umi-mobile/.eslintrc +1 -1
- package/templates/umi-mobile/.gitignore.tpl +8 -5
- package/templates/umi-mobile/.npmrc.tpl +2 -0
- package/templates/umi-mobile/.prettierignore +6 -2
- package/templates/umi-mobile/.prettierrc.js +1 -0
- package/templates/umi-mobile/.umirc.ts.tpl +2 -1
- package/templates/umi-mobile/README.md.tpl +2 -2
- package/templates/umi-mobile/package.json.tpl +5 -0
- package/templates/umi-mobile/src/app.tsx +1 -1
- package/templates/umi-mobile/src/pages/demo/examples/Input.tsx +1 -2
- package/templates/umi-mobile/src/pages/demo/examples/List/4.tsx +2 -2
- package/templates/umi-mobile/src/pages/demo/examples/NumberInput/1.tsx +1 -2
- package/templates/umi-mobile/src/pages/demo/examples/NumberInput/2.tsx +1 -2
- package/templates/umi-mobile/src/pages/demo/examples/NumberInput/3.tsx +1 -2
- package/templates/umi-mobile/src/pages/demo/examples/NumberInput/4.tsx +1 -2
- package/templates/umi-mobile-h5+app/.eslintrc +6 -0
- package/templates/umi-mobile-h5+app/.gitignore.tpl +37 -0
- package/templates/umi-mobile-h5+app/.npmrc.tpl +2 -0
- package/templates/umi-mobile-h5+app/.prettierignore +12 -0
- package/templates/umi-mobile-h5+app/.prettierrc.js +1 -0
- package/templates/umi-mobile-h5+app/.stylelintrc +3 -0
- package/templates/umi-mobile-h5+app/.umirc.ts.tpl +8 -0
- package/templates/umi-mobile-h5+app/LICENSE +21 -0
- package/templates/umi-mobile-h5+app/README.md.tpl +34 -0
- package/templates/umi-mobile-h5+app/h5+app/manifest.json +87 -0
- package/templates/umi-mobile-h5+app/package.json.tpl +16 -0
- package/templates/umi-mobile-h5+app/public/favicon.ico +0 -0
- package/templates/umi-mobile-h5+app/src/app.tsx +19 -0
- package/templates/umi-mobile-h5+app/src/common/request.ts +3 -0
- package/templates/umi-mobile-h5+app/src/common/util.ts +7 -0
- package/templates/umi-mobile-h5+app/src/components/index.ts +0 -0
- package/templates/umi-mobile-h5+app/src/global.less +3 -0
- package/templates/umi-mobile-h5+app/src/layouts/index.tsx +3 -0
- package/templates/umi-mobile-h5+app/src/pages/404.tsx +10 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/BarCode.tsx +4 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/Iconfont.tsx +18 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/Input.tsx +16 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/1.tsx +12 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/2.tsx +29 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/3.tsx +29 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/4.tsx +55 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/mock.ts +30 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/Loading.tsx +12 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/1.tsx +16 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/2.tsx +16 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/3.tsx +16 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/4.tsx +16 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/PagingList/1.tsx +6 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/QrCode.tsx +4 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/Required.tsx +4 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/TimerButton.tsx +4 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/examples/usePreload.tsx +9 -0
- package/templates/umi-mobile-h5+app/src/pages/demo/index.tsx +87 -0
- package/templates/umi-mobile-h5+app/src/pages/index.tsx +3 -0
- package/templates/umi-mobile-h5+app/src/types/user.d.ts +3 -0
- package/templates/umi-mobile-h5+app/tsconfig.json +3 -0
- package/templates/umi-mobile-h5+app/typings.d.ts +1 -0
- package/templates/umi-mobile-native/.eslintrc +6 -0
- package/templates/umi-mobile-native/.gitignore.tpl +42 -0
- package/templates/umi-mobile-native/.npmrc.tpl +2 -0
- package/templates/umi-mobile-native/.prettierignore +12 -0
- package/templates/umi-mobile-native/.prettierrc.js +1 -0
- package/templates/umi-mobile-native/.stylelintrc +3 -0
- package/templates/umi-mobile-native/.umirc.ts.tpl +10 -0
- package/templates/umi-mobile-native/LICENSE +21 -0
- package/templates/umi-mobile-native/README.md.tpl +34 -0
- package/templates/umi-mobile-native/android/app/6209ba977ffec7d62675a4e254ebc209.keystore +0 -0
- package/templates/umi-mobile-native/android/app/build.gradle +66 -0
- package/templates/umi-mobile-native/android/app/libs/Bluetooth-release.aar +0 -0
- package/templates/umi-mobile-native/android/app/libs/PosPrinterSDK.jar +0 -0
- package/templates/umi-mobile-native/android/app/libs/android-gif-drawable-release@1.2.23.aar +0 -0
- package/templates/umi-mobile-native/android/app/libs/lib.5plus.base-release.aar +0 -0
- package/templates/umi-mobile-native/android/app/libs/oaid_sdk_1.0.25.aar +0 -0
- package/templates/umi-mobile-native/android/app/libs/webview-x5-release.aar +0 -0
- package/templates/umi-mobile-native/android/app/proguard-rules.pro +303 -0
- package/templates/umi-mobile-native/android/app/src/main/AndroidManifest.xml +98 -0
- package/templates/umi-mobile-native/android/app/src/main/assets/apps/H5ECA1DEE/www/manifest.json +89 -0
- package/templates/umi-mobile-native/android/app/src/main/assets/data/dcloud_control.xml +6 -0
- package/templates/umi-mobile-native/android/app/src/main/assets/data/dcloud_error.html +92 -0
- package/templates/umi-mobile-native/android/app/src/main/assets/data/dcloud_properties.xml +19 -0
- package/templates/umi-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/JSBridge/FunctionCreator.java +119 -0
- package/templates/umi-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/MPandoraEntryActivity.java +17 -0
- package/templates/umi-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Creator.java +17 -0
- package/templates/umi-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Error.java +26 -0
- package/templates/umi-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/JSPlugin.java +265 -0
- package/templates/umi-mobile-native/android/app/src/main/res/drawable/icon.png +0 -0
- package/templates/umi-mobile-native/android/app/src/main/res/values/colors.xml +5 -0
- package/templates/umi-mobile-native/android/app/src/main/res/values/strings.xml +3 -0
- package/templates/umi-mobile-native/android/build.gradle +9 -0
- package/templates/umi-mobile-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/templates/umi-mobile-native/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/templates/umi-mobile-native/android/gradle.properties +22 -0
- package/templates/umi-mobile-native/android/gradlew +185 -0
- package/templates/umi-mobile-native/android/gradlew.bat +89 -0
- package/templates/umi-mobile-native/android/settings.gradle +16 -0
- package/templates/umi-mobile-native/ios/HBuilder/HBuilder.entitlements +5 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/1024x1024.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120-1.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/180x180.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/40x40.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/58x58.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/60x60.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/80x80.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/87x87.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/Contents.json +62 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/Contents.json +6 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/Image.imageset/Contents.json +20 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/120x120.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/180x180.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/60x60.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/Contents.json +26 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/Contents.json +21 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/brightness@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211-1.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206-1.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset/Contents.json +21 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset//345/257/271/347/204/246/347/272/277.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225-1.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/Contents.json +23 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/Contents.json +23 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/Contents.json +23 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/Contents.json +23 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/Contents.json +22 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@2x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@3x.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/120x120.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/180x180.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/AppDelegate.h +16 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/AppDelegate.m +225 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Base.lproj/LaunchScreen.storyboard +65 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/English.lproj/Localizable.strings +13 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Info.plist +486 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Prefix.pch +16 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/LaunchScreen.storyboard +67 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/manifest.json +79 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/1024x1024.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/120x120.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/144x144.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/152x152.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/167x167.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/180x180.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/192x192.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/20x20.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/29x29.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/40x40.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/58x58.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/60x60.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/72x72.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/76x76.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/80x80.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/87x87.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/96x96.png +0 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/ViewController.h +19 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/ViewController.m +161 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Xprinter.h +19 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/Xprinter.m +235 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/control.xml +107 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/en.lproj/InfoPlist.strings +4 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/en.lproj/Localizable.strings +12 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/main.m +18 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/InfoPlist.strings +4 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/LaunchScreen.strings +3 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/Localizable.strings +13 -0
- package/templates/umi-mobile-native/ios/HBuilder-Hello.xcodeproj/project.pbxproj +1607 -0
- package/templates/umi-mobile-native/package.json.tpl +16 -0
- package/templates/umi-mobile-native/public/favicon.ico +0 -0
- package/templates/umi-mobile-native/src/app.tsx +19 -0
- package/templates/umi-mobile-native/src/common/Xprinter.ts +58 -0
- package/templates/umi-mobile-native/src/common/bluetooth.ts +354 -0
- package/templates/umi-mobile-native/src/common/bridge.ts +59 -0
- package/templates/umi-mobile-native/src/common/request.ts +3 -0
- package/templates/umi-mobile-native/src/common/util.ts +7 -0
- package/templates/umi-mobile-native/src/components/index.ts +0 -0
- package/templates/umi-mobile-native/src/global.less +3 -0
- package/templates/umi-mobile-native/src/images/head.png +0 -0
- package/templates/umi-mobile-native/src/layouts/index.tsx +3 -0
- package/templates/umi-mobile-native/src/pages/404.tsx +10 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/BarCode.tsx +4 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/Iconfont.tsx +18 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/Input.tsx +16 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/List/1.tsx +12 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/List/2.tsx +29 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/List/3.tsx +29 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/List/4.tsx +55 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/List/mock.ts +30 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/Loading.tsx +12 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/1.tsx +16 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/2.tsx +16 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/3.tsx +16 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/4.tsx +16 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/PagingList/1.tsx +6 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/QrCode.tsx +4 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/Required.tsx +4 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/TimerButton.tsx +4 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/Xprinter/index.tsx +64 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/Xprinter/style.less +16 -0
- package/templates/umi-mobile-native/src/pages/demo/examples/usePreload.tsx +9 -0
- package/templates/umi-mobile-native/src/pages/demo/index.tsx +89 -0
- package/templates/umi-mobile-native/src/pages/index.tsx +9 -0
- package/templates/umi-mobile-native/src/pages/style.less +6 -0
- package/templates/umi-mobile-native/src/types/user.d.ts +3 -0
- package/templates/umi-mobile-native/tsconfig.json +3 -0
- package/templates/umi-mobile-native/typings.d.ts +1 -0
- package/templates/umi-web/.eslintrc +1 -1
- package/templates/umi-web/.gitignore.tpl +8 -5
- package/templates/umi-web/.npmrc.tpl +2 -0
- package/templates/umi-web/.prettierignore +6 -2
- package/templates/umi-web/.prettierrc.js +1 -0
- package/templates/umi-web/.umirc.ts.tpl +1 -1
- package/templates/umi-web/README.md.tpl +1 -1
- package/templates/umi-web/package.json.tpl +5 -0
- package/templates/umi-web/src/app.tsx +1 -1
- package/templates/umi-web/src/pages/demo/examples/BankInput.tsx +1 -2
- package/templates/umi-web/src/pages/demo/examples/Grid/5.tsx +1 -2
- package/templates/umi-web/src/pages/demo/examples/Input/2.tsx +2 -1
- package/templates/umi-web/src/pages/demo/examples/RangeNumber/2.tsx +1 -2
- package/templates/umi-web/src/pages/demo/examples/SearchLayout.tsx +2 -2
- package/templates/umi-web/src/pages/demo/examples/Wrapper.tsx +1 -1
- package/templates/umi-web-screen/.eslintrc +6 -0
- package/templates/umi-web-screen/.gitignore.tpl +37 -0
- package/templates/umi-web-screen/.npmrc.tpl +2 -0
- package/templates/umi-web-screen/.prettierignore +12 -0
- package/templates/umi-web-screen/.prettierrc.js +1 -0
- package/templates/umi-web-screen/.stylelintrc +3 -0
- package/templates/umi-web-screen/.umirc.ts.tpl +8 -0
- package/templates/umi-web-screen/LICENSE +21 -0
- package/templates/umi-web-screen/README.md.tpl +34 -0
- package/templates/umi-web-screen/package.json.tpl +17 -0
- package/templates/umi-web-screen/public/favicon.ico +0 -0
- package/templates/umi-web-screen/src/app.tsx +19 -0
- package/templates/umi-web-screen/src/common/request.ts +3 -0
- package/templates/umi-web-screen/src/common/util.ts +15 -0
- package/templates/umi-web-screen/src/components/index.ts +1 -0
- package/templates/umi-web-screen/src/components/resize-container/index.tsx +95 -0
- package/templates/umi-web-screen/src/components/resize-container/style.less +3 -0
- package/templates/umi-web-screen/src/constants.ts +7 -0
- package/templates/umi-web-screen/src/global.less +28 -0
- package/templates/umi-web-screen/src/hooks/use-size.ts +18 -0
- package/templates/umi-web-screen/src/layouts/16_9/fixed.less +16 -0
- package/templates/umi-web-screen/src/layouts/16_9/index.tsx +30 -0
- package/templates/umi-web-screen/src/layouts/16_9/style.less +17 -0
- package/templates/umi-web-screen/src/layouts/components/index.ts +0 -0
- package/templates/umi-web-screen/src/layouts/controller/index.tsx +79 -0
- package/templates/umi-web-screen/src/layouts/index.tsx +11 -0
- package/templates/umi-web-screen/src/pages/404.tsx +17 -0
- package/templates/umi-web-screen/src/pages/index.tsx +3 -0
- package/templates/umi-web-screen/src/pages/template/16_9/index.tsx +13 -0
- package/templates/umi-web-screen/src/pages/template/16_9/style.less +7 -0
- package/templates/umi-web-screen/src/pages/template/components/charts/demo-line/index.tsx +274 -0
- package/templates/umi-web-screen/src/pages/template/components/charts/index.ts +1 -0
- package/templates/umi-web-screen/src/pages/template/components/index.ts +1 -0
- package/templates/umi-web-screen/src/pages/template/controller/index.tsx +85 -0
- package/templates/umi-web-screen/src/pages/template/index.tsx +15 -0
- package/templates/umi-web-screen/src/pages/template/style.less +3 -0
- package/templates/umi-web-screen/src/styles/vars.less +5 -0
- package/templates/umi-web-screen/src/types/user.d.ts +3 -0
- package/templates/umi-web-screen/tsconfig.json +3 -0
- package/templates/umi-web-screen/typings.d.ts +1 -0
- package/templates/ice-mobile/.prettierrc +0 -11
- package/templates/ice-web/.eslintcache +0 -1
- package/templates/ice-web/.prettierrc +0 -11
- package/templates/miniprogram/.editorconfig +0 -12
- package/templates/miniprogram/.prettierrc +0 -12
- package/templates/miniprogram/src/pages/demo/index.module.scss.d.ts +0 -5
- package/templates/miniprogram/src/pages/index/index.module.scss.d.ts +0 -5
- package/templates/umi-mobile/.prettierrc +0 -11
- package/templates/umi-web/.prettierrc +0 -11
|
@@ -0,0 +1,2218 @@
|
|
|
1
|
+
/******/ (function() { // webpackBootstrap
|
|
2
|
+
/******/ var __webpack_modules__ = ({
|
|
3
|
+
|
|
4
|
+
/***/ 945:
|
|
5
|
+
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
6
|
+
|
|
7
|
+
module.exports = realpath
|
|
8
|
+
realpath.realpath = realpath
|
|
9
|
+
realpath.sync = realpathSync
|
|
10
|
+
realpath.realpathSync = realpathSync
|
|
11
|
+
realpath.monkeypatch = monkeypatch
|
|
12
|
+
realpath.unmonkeypatch = unmonkeypatch
|
|
13
|
+
|
|
14
|
+
var fs = __nccwpck_require__(147)
|
|
15
|
+
var origRealpath = fs.realpath
|
|
16
|
+
var origRealpathSync = fs.realpathSync
|
|
17
|
+
|
|
18
|
+
var version = process.version
|
|
19
|
+
var ok = /^v[0-5]\./.test(version)
|
|
20
|
+
var old = __nccwpck_require__(403)
|
|
21
|
+
|
|
22
|
+
function newError (er) {
|
|
23
|
+
return er && er.syscall === 'realpath' && (
|
|
24
|
+
er.code === 'ELOOP' ||
|
|
25
|
+
er.code === 'ENOMEM' ||
|
|
26
|
+
er.code === 'ENAMETOOLONG'
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function realpath (p, cache, cb) {
|
|
31
|
+
if (ok) {
|
|
32
|
+
return origRealpath(p, cache, cb)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (typeof cache === 'function') {
|
|
36
|
+
cb = cache
|
|
37
|
+
cache = null
|
|
38
|
+
}
|
|
39
|
+
origRealpath(p, cache, function (er, result) {
|
|
40
|
+
if (newError(er)) {
|
|
41
|
+
old.realpath(p, cache, cb)
|
|
42
|
+
} else {
|
|
43
|
+
cb(er, result)
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function realpathSync (p, cache) {
|
|
49
|
+
if (ok) {
|
|
50
|
+
return origRealpathSync(p, cache)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
try {
|
|
54
|
+
return origRealpathSync(p, cache)
|
|
55
|
+
} catch (er) {
|
|
56
|
+
if (newError(er)) {
|
|
57
|
+
return old.realpathSync(p, cache)
|
|
58
|
+
} else {
|
|
59
|
+
throw er
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function monkeypatch () {
|
|
65
|
+
fs.realpath = realpath
|
|
66
|
+
fs.realpathSync = realpathSync
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function unmonkeypatch () {
|
|
70
|
+
fs.realpath = origRealpath
|
|
71
|
+
fs.realpathSync = origRealpathSync
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/***/ }),
|
|
76
|
+
|
|
77
|
+
/***/ 403:
|
|
78
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
79
|
+
|
|
80
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
81
|
+
//
|
|
82
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
83
|
+
// copy of this software and associated documentation files (the
|
|
84
|
+
// "Software"), to deal in the Software without restriction, including
|
|
85
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
86
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
87
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
88
|
+
// following conditions:
|
|
89
|
+
//
|
|
90
|
+
// The above copyright notice and this permission notice shall be included
|
|
91
|
+
// in all copies or substantial portions of the Software.
|
|
92
|
+
//
|
|
93
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
94
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
95
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
96
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
97
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
98
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
99
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
100
|
+
|
|
101
|
+
var pathModule = __nccwpck_require__(17);
|
|
102
|
+
var isWindows = process.platform === 'win32';
|
|
103
|
+
var fs = __nccwpck_require__(147);
|
|
104
|
+
|
|
105
|
+
// JavaScript implementation of realpath, ported from node pre-v6
|
|
106
|
+
|
|
107
|
+
var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
|
|
108
|
+
|
|
109
|
+
function rethrow() {
|
|
110
|
+
// Only enable in debug mode. A backtrace uses ~1000 bytes of heap space and
|
|
111
|
+
// is fairly slow to generate.
|
|
112
|
+
var callback;
|
|
113
|
+
if (DEBUG) {
|
|
114
|
+
var backtrace = new Error;
|
|
115
|
+
callback = debugCallback;
|
|
116
|
+
} else
|
|
117
|
+
callback = missingCallback;
|
|
118
|
+
|
|
119
|
+
return callback;
|
|
120
|
+
|
|
121
|
+
function debugCallback(err) {
|
|
122
|
+
if (err) {
|
|
123
|
+
backtrace.message = err.message;
|
|
124
|
+
err = backtrace;
|
|
125
|
+
missingCallback(err);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function missingCallback(err) {
|
|
130
|
+
if (err) {
|
|
131
|
+
if (process.throwDeprecation)
|
|
132
|
+
throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
|
|
133
|
+
else if (!process.noDeprecation) {
|
|
134
|
+
var msg = 'fs: missing callback ' + (err.stack || err.message);
|
|
135
|
+
if (process.traceDeprecation)
|
|
136
|
+
console.trace(msg);
|
|
137
|
+
else
|
|
138
|
+
console.error(msg);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
function maybeCallback(cb) {
|
|
145
|
+
return typeof cb === 'function' ? cb : rethrow();
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
var normalize = pathModule.normalize;
|
|
149
|
+
|
|
150
|
+
// Regexp that finds the next partion of a (partial) path
|
|
151
|
+
// result is [base_with_slash, base], e.g. ['somedir/', 'somedir']
|
|
152
|
+
if (isWindows) {
|
|
153
|
+
var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
|
|
154
|
+
} else {
|
|
155
|
+
var nextPartRe = /(.*?)(?:[\/]+|$)/g;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// Regex to find the device root, including trailing slash. E.g. 'c:\\'.
|
|
159
|
+
if (isWindows) {
|
|
160
|
+
var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
|
|
161
|
+
} else {
|
|
162
|
+
var splitRootRe = /^[\/]*/;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
exports.realpathSync = function realpathSync(p, cache) {
|
|
166
|
+
// make p is absolute
|
|
167
|
+
p = pathModule.resolve(p);
|
|
168
|
+
|
|
169
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
|
170
|
+
return cache[p];
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
var original = p,
|
|
174
|
+
seenLinks = {},
|
|
175
|
+
knownHard = {};
|
|
176
|
+
|
|
177
|
+
// current character position in p
|
|
178
|
+
var pos;
|
|
179
|
+
// the partial path so far, including a trailing slash if any
|
|
180
|
+
var current;
|
|
181
|
+
// the partial path without a trailing slash (except when pointing at a root)
|
|
182
|
+
var base;
|
|
183
|
+
// the partial path scanned in the previous round, with slash
|
|
184
|
+
var previous;
|
|
185
|
+
|
|
186
|
+
start();
|
|
187
|
+
|
|
188
|
+
function start() {
|
|
189
|
+
// Skip over roots
|
|
190
|
+
var m = splitRootRe.exec(p);
|
|
191
|
+
pos = m[0].length;
|
|
192
|
+
current = m[0];
|
|
193
|
+
base = m[0];
|
|
194
|
+
previous = '';
|
|
195
|
+
|
|
196
|
+
// On windows, check that the root exists. On unix there is no need.
|
|
197
|
+
if (isWindows && !knownHard[base]) {
|
|
198
|
+
fs.lstatSync(base);
|
|
199
|
+
knownHard[base] = true;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// walk down the path, swapping out linked pathparts for their real
|
|
204
|
+
// values
|
|
205
|
+
// NB: p.length changes.
|
|
206
|
+
while (pos < p.length) {
|
|
207
|
+
// find the next part
|
|
208
|
+
nextPartRe.lastIndex = pos;
|
|
209
|
+
var result = nextPartRe.exec(p);
|
|
210
|
+
previous = current;
|
|
211
|
+
current += result[0];
|
|
212
|
+
base = previous + result[1];
|
|
213
|
+
pos = nextPartRe.lastIndex;
|
|
214
|
+
|
|
215
|
+
// continue if not a symlink
|
|
216
|
+
if (knownHard[base] || (cache && cache[base] === base)) {
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
var resolvedLink;
|
|
221
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
222
|
+
// some known symbolic link. no need to stat again.
|
|
223
|
+
resolvedLink = cache[base];
|
|
224
|
+
} else {
|
|
225
|
+
var stat = fs.lstatSync(base);
|
|
226
|
+
if (!stat.isSymbolicLink()) {
|
|
227
|
+
knownHard[base] = true;
|
|
228
|
+
if (cache) cache[base] = base;
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// read the link if it wasn't read before
|
|
233
|
+
// dev/ino always return 0 on windows, so skip the check.
|
|
234
|
+
var linkTarget = null;
|
|
235
|
+
if (!isWindows) {
|
|
236
|
+
var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
|
|
237
|
+
if (seenLinks.hasOwnProperty(id)) {
|
|
238
|
+
linkTarget = seenLinks[id];
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
if (linkTarget === null) {
|
|
242
|
+
fs.statSync(base);
|
|
243
|
+
linkTarget = fs.readlinkSync(base);
|
|
244
|
+
}
|
|
245
|
+
resolvedLink = pathModule.resolve(previous, linkTarget);
|
|
246
|
+
// track this, if given a cache.
|
|
247
|
+
if (cache) cache[base] = resolvedLink;
|
|
248
|
+
if (!isWindows) seenLinks[id] = linkTarget;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// resolve the link, then start over
|
|
252
|
+
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
|
253
|
+
start();
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
if (cache) cache[original] = p;
|
|
257
|
+
|
|
258
|
+
return p;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
exports.realpath = function realpath(p, cache, cb) {
|
|
263
|
+
if (typeof cb !== 'function') {
|
|
264
|
+
cb = maybeCallback(cache);
|
|
265
|
+
cache = null;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
// make p is absolute
|
|
269
|
+
p = pathModule.resolve(p);
|
|
270
|
+
|
|
271
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
|
|
272
|
+
return process.nextTick(cb.bind(null, null, cache[p]));
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
var original = p,
|
|
276
|
+
seenLinks = {},
|
|
277
|
+
knownHard = {};
|
|
278
|
+
|
|
279
|
+
// current character position in p
|
|
280
|
+
var pos;
|
|
281
|
+
// the partial path so far, including a trailing slash if any
|
|
282
|
+
var current;
|
|
283
|
+
// the partial path without a trailing slash (except when pointing at a root)
|
|
284
|
+
var base;
|
|
285
|
+
// the partial path scanned in the previous round, with slash
|
|
286
|
+
var previous;
|
|
287
|
+
|
|
288
|
+
start();
|
|
289
|
+
|
|
290
|
+
function start() {
|
|
291
|
+
// Skip over roots
|
|
292
|
+
var m = splitRootRe.exec(p);
|
|
293
|
+
pos = m[0].length;
|
|
294
|
+
current = m[0];
|
|
295
|
+
base = m[0];
|
|
296
|
+
previous = '';
|
|
297
|
+
|
|
298
|
+
// On windows, check that the root exists. On unix there is no need.
|
|
299
|
+
if (isWindows && !knownHard[base]) {
|
|
300
|
+
fs.lstat(base, function(err) {
|
|
301
|
+
if (err) return cb(err);
|
|
302
|
+
knownHard[base] = true;
|
|
303
|
+
LOOP();
|
|
304
|
+
});
|
|
305
|
+
} else {
|
|
306
|
+
process.nextTick(LOOP);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// walk down the path, swapping out linked pathparts for their real
|
|
311
|
+
// values
|
|
312
|
+
function LOOP() {
|
|
313
|
+
// stop if scanned past end of path
|
|
314
|
+
if (pos >= p.length) {
|
|
315
|
+
if (cache) cache[original] = p;
|
|
316
|
+
return cb(null, p);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// find the next part
|
|
320
|
+
nextPartRe.lastIndex = pos;
|
|
321
|
+
var result = nextPartRe.exec(p);
|
|
322
|
+
previous = current;
|
|
323
|
+
current += result[0];
|
|
324
|
+
base = previous + result[1];
|
|
325
|
+
pos = nextPartRe.lastIndex;
|
|
326
|
+
|
|
327
|
+
// continue if not a symlink
|
|
328
|
+
if (knownHard[base] || (cache && cache[base] === base)) {
|
|
329
|
+
return process.nextTick(LOOP);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
|
|
333
|
+
// known symbolic link. no need to stat again.
|
|
334
|
+
return gotResolvedLink(cache[base]);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
return fs.lstat(base, gotStat);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
function gotStat(err, stat) {
|
|
341
|
+
if (err) return cb(err);
|
|
342
|
+
|
|
343
|
+
// if not a symlink, skip to the next path part
|
|
344
|
+
if (!stat.isSymbolicLink()) {
|
|
345
|
+
knownHard[base] = true;
|
|
346
|
+
if (cache) cache[base] = base;
|
|
347
|
+
return process.nextTick(LOOP);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
// stat & read the link if not read before
|
|
351
|
+
// call gotTarget as soon as the link target is known
|
|
352
|
+
// dev/ino always return 0 on windows, so skip the check.
|
|
353
|
+
if (!isWindows) {
|
|
354
|
+
var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
|
|
355
|
+
if (seenLinks.hasOwnProperty(id)) {
|
|
356
|
+
return gotTarget(null, seenLinks[id], base);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
fs.stat(base, function(err) {
|
|
360
|
+
if (err) return cb(err);
|
|
361
|
+
|
|
362
|
+
fs.readlink(base, function(err, target) {
|
|
363
|
+
if (!isWindows) seenLinks[id] = target;
|
|
364
|
+
gotTarget(err, target);
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
function gotTarget(err, target, base) {
|
|
370
|
+
if (err) return cb(err);
|
|
371
|
+
|
|
372
|
+
var resolvedLink = pathModule.resolve(previous, target);
|
|
373
|
+
if (cache) cache[base] = resolvedLink;
|
|
374
|
+
gotResolvedLink(resolvedLink);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
function gotResolvedLink(resolvedLink) {
|
|
378
|
+
// resolve the link, then start over
|
|
379
|
+
p = pathModule.resolve(resolvedLink, p.slice(pos));
|
|
380
|
+
start();
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
/***/ }),
|
|
386
|
+
|
|
387
|
+
/***/ 442:
|
|
388
|
+
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
389
|
+
|
|
390
|
+
var wrappy = __nccwpck_require__(586)
|
|
391
|
+
var reqs = Object.create(null)
|
|
392
|
+
var once = __nccwpck_require__(197)
|
|
393
|
+
|
|
394
|
+
module.exports = wrappy(inflight)
|
|
395
|
+
|
|
396
|
+
function inflight (key, cb) {
|
|
397
|
+
if (reqs[key]) {
|
|
398
|
+
reqs[key].push(cb)
|
|
399
|
+
return null
|
|
400
|
+
} else {
|
|
401
|
+
reqs[key] = [cb]
|
|
402
|
+
return makeres(key)
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
function makeres (key) {
|
|
407
|
+
return once(function RES () {
|
|
408
|
+
var cbs = reqs[key]
|
|
409
|
+
var len = cbs.length
|
|
410
|
+
var args = slice(arguments)
|
|
411
|
+
|
|
412
|
+
// XXX It's somewhat ambiguous whether a new callback added in this
|
|
413
|
+
// pass should be queued for later execution if something in the
|
|
414
|
+
// list of callbacks throws, or if it should just be discarded.
|
|
415
|
+
// However, it's such an edge case that it hardly matters, and either
|
|
416
|
+
// choice is likely as surprising as the other.
|
|
417
|
+
// As it happens, we do go ahead and schedule it for later execution.
|
|
418
|
+
try {
|
|
419
|
+
for (var i = 0; i < len; i++) {
|
|
420
|
+
cbs[i].apply(null, args)
|
|
421
|
+
}
|
|
422
|
+
} finally {
|
|
423
|
+
if (cbs.length > len) {
|
|
424
|
+
// added more in the interim.
|
|
425
|
+
// de-zalgo, just in case, but don't call again.
|
|
426
|
+
cbs.splice(0, len)
|
|
427
|
+
process.nextTick(function () {
|
|
428
|
+
RES.apply(null, args)
|
|
429
|
+
})
|
|
430
|
+
} else {
|
|
431
|
+
delete reqs[key]
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
})
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
function slice (args) {
|
|
438
|
+
var length = args.length
|
|
439
|
+
var array = []
|
|
440
|
+
|
|
441
|
+
for (var i = 0; i < length; i++) array[i] = args[i]
|
|
442
|
+
return array
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
/***/ }),
|
|
447
|
+
|
|
448
|
+
/***/ 919:
|
|
449
|
+
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
450
|
+
|
|
451
|
+
try {
|
|
452
|
+
var util = __nccwpck_require__(837);
|
|
453
|
+
/* istanbul ignore next */
|
|
454
|
+
if (typeof util.inherits !== 'function') throw '';
|
|
455
|
+
module.exports = util.inherits;
|
|
456
|
+
} catch (e) {
|
|
457
|
+
/* istanbul ignore next */
|
|
458
|
+
module.exports = __nccwpck_require__(526);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
/***/ }),
|
|
463
|
+
|
|
464
|
+
/***/ 526:
|
|
465
|
+
/***/ (function(module) {
|
|
466
|
+
|
|
467
|
+
if (typeof Object.create === 'function') {
|
|
468
|
+
// implementation from standard node.js 'util' module
|
|
469
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
470
|
+
if (superCtor) {
|
|
471
|
+
ctor.super_ = superCtor
|
|
472
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
473
|
+
constructor: {
|
|
474
|
+
value: ctor,
|
|
475
|
+
enumerable: false,
|
|
476
|
+
writable: true,
|
|
477
|
+
configurable: true
|
|
478
|
+
}
|
|
479
|
+
})
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
} else {
|
|
483
|
+
// old school shim for old browsers
|
|
484
|
+
module.exports = function inherits(ctor, superCtor) {
|
|
485
|
+
if (superCtor) {
|
|
486
|
+
ctor.super_ = superCtor
|
|
487
|
+
var TempCtor = function () {}
|
|
488
|
+
TempCtor.prototype = superCtor.prototype
|
|
489
|
+
ctor.prototype = new TempCtor()
|
|
490
|
+
ctor.prototype.constructor = ctor
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
/***/ }),
|
|
497
|
+
|
|
498
|
+
/***/ 197:
|
|
499
|
+
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
500
|
+
|
|
501
|
+
var wrappy = __nccwpck_require__(586)
|
|
502
|
+
module.exports = wrappy(once)
|
|
503
|
+
module.exports.strict = wrappy(onceStrict)
|
|
504
|
+
|
|
505
|
+
once.proto = once(function () {
|
|
506
|
+
Object.defineProperty(Function.prototype, 'once', {
|
|
507
|
+
value: function () {
|
|
508
|
+
return once(this)
|
|
509
|
+
},
|
|
510
|
+
configurable: true
|
|
511
|
+
})
|
|
512
|
+
|
|
513
|
+
Object.defineProperty(Function.prototype, 'onceStrict', {
|
|
514
|
+
value: function () {
|
|
515
|
+
return onceStrict(this)
|
|
516
|
+
},
|
|
517
|
+
configurable: true
|
|
518
|
+
})
|
|
519
|
+
})
|
|
520
|
+
|
|
521
|
+
function once (fn) {
|
|
522
|
+
var f = function () {
|
|
523
|
+
if (f.called) return f.value
|
|
524
|
+
f.called = true
|
|
525
|
+
return f.value = fn.apply(this, arguments)
|
|
526
|
+
}
|
|
527
|
+
f.called = false
|
|
528
|
+
return f
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
function onceStrict (fn) {
|
|
532
|
+
var f = function () {
|
|
533
|
+
if (f.called)
|
|
534
|
+
throw new Error(f.onceError)
|
|
535
|
+
f.called = true
|
|
536
|
+
return f.value = fn.apply(this, arguments)
|
|
537
|
+
}
|
|
538
|
+
var name = fn.name || 'Function wrapped with `once`'
|
|
539
|
+
f.onceError = name + " shouldn't be called more than once"
|
|
540
|
+
f.called = false
|
|
541
|
+
return f
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
/***/ }),
|
|
546
|
+
|
|
547
|
+
/***/ 586:
|
|
548
|
+
/***/ (function(module) {
|
|
549
|
+
|
|
550
|
+
// Returns a wrapper function that returns a wrapped callback
|
|
551
|
+
// The wrapper function should do some stuff, and return a
|
|
552
|
+
// presumably different callback function.
|
|
553
|
+
// This makes sure that own properties are retained, so that
|
|
554
|
+
// decorations and such are not lost along the way.
|
|
555
|
+
module.exports = wrappy
|
|
556
|
+
function wrappy (fn, cb) {
|
|
557
|
+
if (fn && cb) return wrappy(fn)(cb)
|
|
558
|
+
|
|
559
|
+
if (typeof fn !== 'function')
|
|
560
|
+
throw new TypeError('need wrapper function')
|
|
561
|
+
|
|
562
|
+
Object.keys(fn).forEach(function (k) {
|
|
563
|
+
wrapper[k] = fn[k]
|
|
564
|
+
})
|
|
565
|
+
|
|
566
|
+
return wrapper
|
|
567
|
+
|
|
568
|
+
function wrapper() {
|
|
569
|
+
var args = new Array(arguments.length)
|
|
570
|
+
for (var i = 0; i < args.length; i++) {
|
|
571
|
+
args[i] = arguments[i]
|
|
572
|
+
}
|
|
573
|
+
var ret = fn.apply(this, args)
|
|
574
|
+
var cb = args[args.length-1]
|
|
575
|
+
if (typeof ret === 'function' && ret !== cb) {
|
|
576
|
+
Object.keys(cb).forEach(function (k) {
|
|
577
|
+
ret[k] = cb[k]
|
|
578
|
+
})
|
|
579
|
+
}
|
|
580
|
+
return ret
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
/***/ }),
|
|
586
|
+
|
|
587
|
+
/***/ 686:
|
|
588
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
589
|
+
|
|
590
|
+
exports.setopts = setopts
|
|
591
|
+
exports.ownProp = ownProp
|
|
592
|
+
exports.makeAbs = makeAbs
|
|
593
|
+
exports.finish = finish
|
|
594
|
+
exports.mark = mark
|
|
595
|
+
exports.isIgnored = isIgnored
|
|
596
|
+
exports.childrenIgnored = childrenIgnored
|
|
597
|
+
|
|
598
|
+
function ownProp (obj, field) {
|
|
599
|
+
return Object.prototype.hasOwnProperty.call(obj, field)
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
var fs = __nccwpck_require__(147)
|
|
603
|
+
var path = __nccwpck_require__(17)
|
|
604
|
+
var minimatch = __nccwpck_require__(480)
|
|
605
|
+
var isAbsolute = (__nccwpck_require__(17).isAbsolute)
|
|
606
|
+
var Minimatch = minimatch.Minimatch
|
|
607
|
+
|
|
608
|
+
function alphasort (a, b) {
|
|
609
|
+
return a.localeCompare(b, 'en')
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
function setupIgnores (self, options) {
|
|
613
|
+
self.ignore = options.ignore || []
|
|
614
|
+
|
|
615
|
+
if (!Array.isArray(self.ignore))
|
|
616
|
+
self.ignore = [self.ignore]
|
|
617
|
+
|
|
618
|
+
if (self.ignore.length) {
|
|
619
|
+
self.ignore = self.ignore.map(ignoreMap)
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
// ignore patterns are always in dot:true mode.
|
|
624
|
+
function ignoreMap (pattern) {
|
|
625
|
+
var gmatcher = null
|
|
626
|
+
if (pattern.slice(-3) === '/**') {
|
|
627
|
+
var gpattern = pattern.replace(/(\/\*\*)+$/, '')
|
|
628
|
+
gmatcher = new Minimatch(gpattern, { dot: true })
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
return {
|
|
632
|
+
matcher: new Minimatch(pattern, { dot: true }),
|
|
633
|
+
gmatcher: gmatcher
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
function setopts (self, pattern, options) {
|
|
638
|
+
if (!options)
|
|
639
|
+
options = {}
|
|
640
|
+
|
|
641
|
+
// base-matching: just use globstar for that.
|
|
642
|
+
if (options.matchBase && -1 === pattern.indexOf("/")) {
|
|
643
|
+
if (options.noglobstar) {
|
|
644
|
+
throw new Error("base matching requires globstar")
|
|
645
|
+
}
|
|
646
|
+
pattern = "**/" + pattern
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
self.silent = !!options.silent
|
|
650
|
+
self.pattern = pattern
|
|
651
|
+
self.strict = options.strict !== false
|
|
652
|
+
self.realpath = !!options.realpath
|
|
653
|
+
self.realpathCache = options.realpathCache || Object.create(null)
|
|
654
|
+
self.follow = !!options.follow
|
|
655
|
+
self.dot = !!options.dot
|
|
656
|
+
self.mark = !!options.mark
|
|
657
|
+
self.nodir = !!options.nodir
|
|
658
|
+
if (self.nodir)
|
|
659
|
+
self.mark = true
|
|
660
|
+
self.sync = !!options.sync
|
|
661
|
+
self.nounique = !!options.nounique
|
|
662
|
+
self.nonull = !!options.nonull
|
|
663
|
+
self.nosort = !!options.nosort
|
|
664
|
+
self.nocase = !!options.nocase
|
|
665
|
+
self.stat = !!options.stat
|
|
666
|
+
self.noprocess = !!options.noprocess
|
|
667
|
+
self.absolute = !!options.absolute
|
|
668
|
+
self.fs = options.fs || fs
|
|
669
|
+
|
|
670
|
+
self.maxLength = options.maxLength || Infinity
|
|
671
|
+
self.cache = options.cache || Object.create(null)
|
|
672
|
+
self.statCache = options.statCache || Object.create(null)
|
|
673
|
+
self.symlinks = options.symlinks || Object.create(null)
|
|
674
|
+
|
|
675
|
+
setupIgnores(self, options)
|
|
676
|
+
|
|
677
|
+
self.changedCwd = false
|
|
678
|
+
var cwd = process.cwd()
|
|
679
|
+
if (!ownProp(options, "cwd"))
|
|
680
|
+
self.cwd = path.resolve(cwd)
|
|
681
|
+
else {
|
|
682
|
+
self.cwd = path.resolve(options.cwd)
|
|
683
|
+
self.changedCwd = self.cwd !== cwd
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
self.root = options.root || path.resolve(self.cwd, "/")
|
|
687
|
+
self.root = path.resolve(self.root)
|
|
688
|
+
|
|
689
|
+
// TODO: is an absolute `cwd` supposed to be resolved against `root`?
|
|
690
|
+
// e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test')
|
|
691
|
+
self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd)
|
|
692
|
+
self.nomount = !!options.nomount
|
|
693
|
+
|
|
694
|
+
if (process.platform === "win32") {
|
|
695
|
+
self.root = self.root.replace(/\\/g, "/")
|
|
696
|
+
self.cwd = self.cwd.replace(/\\/g, "/")
|
|
697
|
+
self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
// disable comments and negation in Minimatch.
|
|
701
|
+
// Note that they are not supported in Glob itself anyway.
|
|
702
|
+
options.nonegate = true
|
|
703
|
+
options.nocomment = true
|
|
704
|
+
// always treat \ in patterns as escapes, not path separators
|
|
705
|
+
options.allowWindowsEscape = true
|
|
706
|
+
|
|
707
|
+
self.minimatch = new Minimatch(pattern, options)
|
|
708
|
+
self.options = self.minimatch.options
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
function finish (self) {
|
|
712
|
+
var nou = self.nounique
|
|
713
|
+
var all = nou ? [] : Object.create(null)
|
|
714
|
+
|
|
715
|
+
for (var i = 0, l = self.matches.length; i < l; i ++) {
|
|
716
|
+
var matches = self.matches[i]
|
|
717
|
+
if (!matches || Object.keys(matches).length === 0) {
|
|
718
|
+
if (self.nonull) {
|
|
719
|
+
// do like the shell, and spit out the literal glob
|
|
720
|
+
var literal = self.minimatch.globSet[i]
|
|
721
|
+
if (nou)
|
|
722
|
+
all.push(literal)
|
|
723
|
+
else
|
|
724
|
+
all[literal] = true
|
|
725
|
+
}
|
|
726
|
+
} else {
|
|
727
|
+
// had matches
|
|
728
|
+
var m = Object.keys(matches)
|
|
729
|
+
if (nou)
|
|
730
|
+
all.push.apply(all, m)
|
|
731
|
+
else
|
|
732
|
+
m.forEach(function (m) {
|
|
733
|
+
all[m] = true
|
|
734
|
+
})
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
if (!nou)
|
|
739
|
+
all = Object.keys(all)
|
|
740
|
+
|
|
741
|
+
if (!self.nosort)
|
|
742
|
+
all = all.sort(alphasort)
|
|
743
|
+
|
|
744
|
+
// at *some* point we statted all of these
|
|
745
|
+
if (self.mark) {
|
|
746
|
+
for (var i = 0; i < all.length; i++) {
|
|
747
|
+
all[i] = self._mark(all[i])
|
|
748
|
+
}
|
|
749
|
+
if (self.nodir) {
|
|
750
|
+
all = all.filter(function (e) {
|
|
751
|
+
var notDir = !(/\/$/.test(e))
|
|
752
|
+
var c = self.cache[e] || self.cache[makeAbs(self, e)]
|
|
753
|
+
if (notDir && c)
|
|
754
|
+
notDir = c !== 'DIR' && !Array.isArray(c)
|
|
755
|
+
return notDir
|
|
756
|
+
})
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
if (self.ignore.length)
|
|
761
|
+
all = all.filter(function(m) {
|
|
762
|
+
return !isIgnored(self, m)
|
|
763
|
+
})
|
|
764
|
+
|
|
765
|
+
self.found = all
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
function mark (self, p) {
|
|
769
|
+
var abs = makeAbs(self, p)
|
|
770
|
+
var c = self.cache[abs]
|
|
771
|
+
var m = p
|
|
772
|
+
if (c) {
|
|
773
|
+
var isDir = c === 'DIR' || Array.isArray(c)
|
|
774
|
+
var slash = p.slice(-1) === '/'
|
|
775
|
+
|
|
776
|
+
if (isDir && !slash)
|
|
777
|
+
m += '/'
|
|
778
|
+
else if (!isDir && slash)
|
|
779
|
+
m = m.slice(0, -1)
|
|
780
|
+
|
|
781
|
+
if (m !== p) {
|
|
782
|
+
var mabs = makeAbs(self, m)
|
|
783
|
+
self.statCache[mabs] = self.statCache[abs]
|
|
784
|
+
self.cache[mabs] = self.cache[abs]
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
return m
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
// lotta situps...
|
|
792
|
+
function makeAbs (self, f) {
|
|
793
|
+
var abs = f
|
|
794
|
+
if (f.charAt(0) === '/') {
|
|
795
|
+
abs = path.join(self.root, f)
|
|
796
|
+
} else if (isAbsolute(f) || f === '') {
|
|
797
|
+
abs = f
|
|
798
|
+
} else if (self.changedCwd) {
|
|
799
|
+
abs = path.resolve(self.cwd, f)
|
|
800
|
+
} else {
|
|
801
|
+
abs = path.resolve(f)
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
if (process.platform === 'win32')
|
|
805
|
+
abs = abs.replace(/\\/g, '/')
|
|
806
|
+
|
|
807
|
+
return abs
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
// Return true, if pattern ends with globstar '**', for the accompanying parent directory.
|
|
812
|
+
// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents
|
|
813
|
+
function isIgnored (self, path) {
|
|
814
|
+
if (!self.ignore.length)
|
|
815
|
+
return false
|
|
816
|
+
|
|
817
|
+
return self.ignore.some(function(item) {
|
|
818
|
+
return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))
|
|
819
|
+
})
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
function childrenIgnored (self, path) {
|
|
823
|
+
if (!self.ignore.length)
|
|
824
|
+
return false
|
|
825
|
+
|
|
826
|
+
return self.ignore.some(function(item) {
|
|
827
|
+
return !!(item.gmatcher && item.gmatcher.match(path))
|
|
828
|
+
})
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
/***/ }),
|
|
833
|
+
|
|
834
|
+
/***/ 104:
|
|
835
|
+
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
836
|
+
|
|
837
|
+
// Approach:
|
|
838
|
+
//
|
|
839
|
+
// 1. Get the minimatch set
|
|
840
|
+
// 2. For each pattern in the set, PROCESS(pattern, false)
|
|
841
|
+
// 3. Store matches per-set, then uniq them
|
|
842
|
+
//
|
|
843
|
+
// PROCESS(pattern, inGlobStar)
|
|
844
|
+
// Get the first [n] items from pattern that are all strings
|
|
845
|
+
// Join these together. This is PREFIX.
|
|
846
|
+
// If there is no more remaining, then stat(PREFIX) and
|
|
847
|
+
// add to matches if it succeeds. END.
|
|
848
|
+
//
|
|
849
|
+
// If inGlobStar and PREFIX is symlink and points to dir
|
|
850
|
+
// set ENTRIES = []
|
|
851
|
+
// else readdir(PREFIX) as ENTRIES
|
|
852
|
+
// If fail, END
|
|
853
|
+
//
|
|
854
|
+
// with ENTRIES
|
|
855
|
+
// If pattern[n] is GLOBSTAR
|
|
856
|
+
// // handle the case where the globstar match is empty
|
|
857
|
+
// // by pruning it out, and testing the resulting pattern
|
|
858
|
+
// PROCESS(pattern[0..n] + pattern[n+1 .. $], false)
|
|
859
|
+
// // handle other cases.
|
|
860
|
+
// for ENTRY in ENTRIES (not dotfiles)
|
|
861
|
+
// // attach globstar + tail onto the entry
|
|
862
|
+
// // Mark that this entry is a globstar match
|
|
863
|
+
// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true)
|
|
864
|
+
//
|
|
865
|
+
// else // not globstar
|
|
866
|
+
// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot)
|
|
867
|
+
// Test ENTRY against pattern[n]
|
|
868
|
+
// If fails, continue
|
|
869
|
+
// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $])
|
|
870
|
+
//
|
|
871
|
+
// Caveat:
|
|
872
|
+
// Cache all stats and readdirs results to minimize syscall. Since all
|
|
873
|
+
// we ever care about is existence and directory-ness, we can just keep
|
|
874
|
+
// `true` for files, and [children,...] for directories, or `false` for
|
|
875
|
+
// things that don't exist.
|
|
876
|
+
|
|
877
|
+
module.exports = glob
|
|
878
|
+
|
|
879
|
+
var rp = __nccwpck_require__(945)
|
|
880
|
+
var minimatch = __nccwpck_require__(480)
|
|
881
|
+
var Minimatch = minimatch.Minimatch
|
|
882
|
+
var inherits = __nccwpck_require__(919)
|
|
883
|
+
var EE = (__nccwpck_require__(361).EventEmitter)
|
|
884
|
+
var path = __nccwpck_require__(17)
|
|
885
|
+
var assert = __nccwpck_require__(491)
|
|
886
|
+
var isAbsolute = (__nccwpck_require__(17).isAbsolute)
|
|
887
|
+
var globSync = __nccwpck_require__(231)
|
|
888
|
+
var common = __nccwpck_require__(686)
|
|
889
|
+
var setopts = common.setopts
|
|
890
|
+
var ownProp = common.ownProp
|
|
891
|
+
var inflight = __nccwpck_require__(442)
|
|
892
|
+
var util = __nccwpck_require__(837)
|
|
893
|
+
var childrenIgnored = common.childrenIgnored
|
|
894
|
+
var isIgnored = common.isIgnored
|
|
895
|
+
|
|
896
|
+
var once = __nccwpck_require__(197)
|
|
897
|
+
|
|
898
|
+
function glob (pattern, options, cb) {
|
|
899
|
+
if (typeof options === 'function') cb = options, options = {}
|
|
900
|
+
if (!options) options = {}
|
|
901
|
+
|
|
902
|
+
if (options.sync) {
|
|
903
|
+
if (cb)
|
|
904
|
+
throw new TypeError('callback provided to sync glob')
|
|
905
|
+
return globSync(pattern, options)
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
return new Glob(pattern, options, cb)
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
glob.sync = globSync
|
|
912
|
+
var GlobSync = glob.GlobSync = globSync.GlobSync
|
|
913
|
+
|
|
914
|
+
// old api surface
|
|
915
|
+
glob.glob = glob
|
|
916
|
+
|
|
917
|
+
function extend (origin, add) {
|
|
918
|
+
if (add === null || typeof add !== 'object') {
|
|
919
|
+
return origin
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
var keys = Object.keys(add)
|
|
923
|
+
var i = keys.length
|
|
924
|
+
while (i--) {
|
|
925
|
+
origin[keys[i]] = add[keys[i]]
|
|
926
|
+
}
|
|
927
|
+
return origin
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
glob.hasMagic = function (pattern, options_) {
|
|
931
|
+
var options = extend({}, options_)
|
|
932
|
+
options.noprocess = true
|
|
933
|
+
|
|
934
|
+
var g = new Glob(pattern, options)
|
|
935
|
+
var set = g.minimatch.set
|
|
936
|
+
|
|
937
|
+
if (!pattern)
|
|
938
|
+
return false
|
|
939
|
+
|
|
940
|
+
if (set.length > 1)
|
|
941
|
+
return true
|
|
942
|
+
|
|
943
|
+
for (var j = 0; j < set[0].length; j++) {
|
|
944
|
+
if (typeof set[0][j] !== 'string')
|
|
945
|
+
return true
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
return false
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
glob.Glob = Glob
|
|
952
|
+
inherits(Glob, EE)
|
|
953
|
+
function Glob (pattern, options, cb) {
|
|
954
|
+
if (typeof options === 'function') {
|
|
955
|
+
cb = options
|
|
956
|
+
options = null
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
if (options && options.sync) {
|
|
960
|
+
if (cb)
|
|
961
|
+
throw new TypeError('callback provided to sync glob')
|
|
962
|
+
return new GlobSync(pattern, options)
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
if (!(this instanceof Glob))
|
|
966
|
+
return new Glob(pattern, options, cb)
|
|
967
|
+
|
|
968
|
+
setopts(this, pattern, options)
|
|
969
|
+
this._didRealPath = false
|
|
970
|
+
|
|
971
|
+
// process each pattern in the minimatch set
|
|
972
|
+
var n = this.minimatch.set.length
|
|
973
|
+
|
|
974
|
+
// The matches are stored as {<filename>: true,...} so that
|
|
975
|
+
// duplicates are automagically pruned.
|
|
976
|
+
// Later, we do an Object.keys() on these.
|
|
977
|
+
// Keep them as a list so we can fill in when nonull is set.
|
|
978
|
+
this.matches = new Array(n)
|
|
979
|
+
|
|
980
|
+
if (typeof cb === 'function') {
|
|
981
|
+
cb = once(cb)
|
|
982
|
+
this.on('error', cb)
|
|
983
|
+
this.on('end', function (matches) {
|
|
984
|
+
cb(null, matches)
|
|
985
|
+
})
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
var self = this
|
|
989
|
+
this._processing = 0
|
|
990
|
+
|
|
991
|
+
this._emitQueue = []
|
|
992
|
+
this._processQueue = []
|
|
993
|
+
this.paused = false
|
|
994
|
+
|
|
995
|
+
if (this.noprocess)
|
|
996
|
+
return this
|
|
997
|
+
|
|
998
|
+
if (n === 0)
|
|
999
|
+
return done()
|
|
1000
|
+
|
|
1001
|
+
var sync = true
|
|
1002
|
+
for (var i = 0; i < n; i ++) {
|
|
1003
|
+
this._process(this.minimatch.set[i], i, false, done)
|
|
1004
|
+
}
|
|
1005
|
+
sync = false
|
|
1006
|
+
|
|
1007
|
+
function done () {
|
|
1008
|
+
--self._processing
|
|
1009
|
+
if (self._processing <= 0) {
|
|
1010
|
+
if (sync) {
|
|
1011
|
+
process.nextTick(function () {
|
|
1012
|
+
self._finish()
|
|
1013
|
+
})
|
|
1014
|
+
} else {
|
|
1015
|
+
self._finish()
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
Glob.prototype._finish = function () {
|
|
1022
|
+
assert(this instanceof Glob)
|
|
1023
|
+
if (this.aborted)
|
|
1024
|
+
return
|
|
1025
|
+
|
|
1026
|
+
if (this.realpath && !this._didRealpath)
|
|
1027
|
+
return this._realpath()
|
|
1028
|
+
|
|
1029
|
+
common.finish(this)
|
|
1030
|
+
this.emit('end', this.found)
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
Glob.prototype._realpath = function () {
|
|
1034
|
+
if (this._didRealpath)
|
|
1035
|
+
return
|
|
1036
|
+
|
|
1037
|
+
this._didRealpath = true
|
|
1038
|
+
|
|
1039
|
+
var n = this.matches.length
|
|
1040
|
+
if (n === 0)
|
|
1041
|
+
return this._finish()
|
|
1042
|
+
|
|
1043
|
+
var self = this
|
|
1044
|
+
for (var i = 0; i < this.matches.length; i++)
|
|
1045
|
+
this._realpathSet(i, next)
|
|
1046
|
+
|
|
1047
|
+
function next () {
|
|
1048
|
+
if (--n === 0)
|
|
1049
|
+
self._finish()
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
Glob.prototype._realpathSet = function (index, cb) {
|
|
1054
|
+
var matchset = this.matches[index]
|
|
1055
|
+
if (!matchset)
|
|
1056
|
+
return cb()
|
|
1057
|
+
|
|
1058
|
+
var found = Object.keys(matchset)
|
|
1059
|
+
var self = this
|
|
1060
|
+
var n = found.length
|
|
1061
|
+
|
|
1062
|
+
if (n === 0)
|
|
1063
|
+
return cb()
|
|
1064
|
+
|
|
1065
|
+
var set = this.matches[index] = Object.create(null)
|
|
1066
|
+
found.forEach(function (p, i) {
|
|
1067
|
+
// If there's a problem with the stat, then it means that
|
|
1068
|
+
// one or more of the links in the realpath couldn't be
|
|
1069
|
+
// resolved. just return the abs value in that case.
|
|
1070
|
+
p = self._makeAbs(p)
|
|
1071
|
+
rp.realpath(p, self.realpathCache, function (er, real) {
|
|
1072
|
+
if (!er)
|
|
1073
|
+
set[real] = true
|
|
1074
|
+
else if (er.syscall === 'stat')
|
|
1075
|
+
set[p] = true
|
|
1076
|
+
else
|
|
1077
|
+
self.emit('error', er) // srsly wtf right here
|
|
1078
|
+
|
|
1079
|
+
if (--n === 0) {
|
|
1080
|
+
self.matches[index] = set
|
|
1081
|
+
cb()
|
|
1082
|
+
}
|
|
1083
|
+
})
|
|
1084
|
+
})
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
Glob.prototype._mark = function (p) {
|
|
1088
|
+
return common.mark(this, p)
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
Glob.prototype._makeAbs = function (f) {
|
|
1092
|
+
return common.makeAbs(this, f)
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
Glob.prototype.abort = function () {
|
|
1096
|
+
this.aborted = true
|
|
1097
|
+
this.emit('abort')
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
Glob.prototype.pause = function () {
|
|
1101
|
+
if (!this.paused) {
|
|
1102
|
+
this.paused = true
|
|
1103
|
+
this.emit('pause')
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
Glob.prototype.resume = function () {
|
|
1108
|
+
if (this.paused) {
|
|
1109
|
+
this.emit('resume')
|
|
1110
|
+
this.paused = false
|
|
1111
|
+
if (this._emitQueue.length) {
|
|
1112
|
+
var eq = this._emitQueue.slice(0)
|
|
1113
|
+
this._emitQueue.length = 0
|
|
1114
|
+
for (var i = 0; i < eq.length; i ++) {
|
|
1115
|
+
var e = eq[i]
|
|
1116
|
+
this._emitMatch(e[0], e[1])
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
if (this._processQueue.length) {
|
|
1120
|
+
var pq = this._processQueue.slice(0)
|
|
1121
|
+
this._processQueue.length = 0
|
|
1122
|
+
for (var i = 0; i < pq.length; i ++) {
|
|
1123
|
+
var p = pq[i]
|
|
1124
|
+
this._processing--
|
|
1125
|
+
this._process(p[0], p[1], p[2], p[3])
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
Glob.prototype._process = function (pattern, index, inGlobStar, cb) {
|
|
1132
|
+
assert(this instanceof Glob)
|
|
1133
|
+
assert(typeof cb === 'function')
|
|
1134
|
+
|
|
1135
|
+
if (this.aborted)
|
|
1136
|
+
return
|
|
1137
|
+
|
|
1138
|
+
this._processing++
|
|
1139
|
+
if (this.paused) {
|
|
1140
|
+
this._processQueue.push([pattern, index, inGlobStar, cb])
|
|
1141
|
+
return
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
//console.error('PROCESS %d', this._processing, pattern)
|
|
1145
|
+
|
|
1146
|
+
// Get the first [n] parts of pattern that are all strings.
|
|
1147
|
+
var n = 0
|
|
1148
|
+
while (typeof pattern[n] === 'string') {
|
|
1149
|
+
n ++
|
|
1150
|
+
}
|
|
1151
|
+
// now n is the index of the first one that is *not* a string.
|
|
1152
|
+
|
|
1153
|
+
// see if there's anything else
|
|
1154
|
+
var prefix
|
|
1155
|
+
switch (n) {
|
|
1156
|
+
// if not, then this is rather simple
|
|
1157
|
+
case pattern.length:
|
|
1158
|
+
this._processSimple(pattern.join('/'), index, cb)
|
|
1159
|
+
return
|
|
1160
|
+
|
|
1161
|
+
case 0:
|
|
1162
|
+
// pattern *starts* with some non-trivial item.
|
|
1163
|
+
// going to readdir(cwd), but not include the prefix in matches.
|
|
1164
|
+
prefix = null
|
|
1165
|
+
break
|
|
1166
|
+
|
|
1167
|
+
default:
|
|
1168
|
+
// pattern has some string bits in the front.
|
|
1169
|
+
// whatever it starts with, whether that's 'absolute' like /foo/bar,
|
|
1170
|
+
// or 'relative' like '../baz'
|
|
1171
|
+
prefix = pattern.slice(0, n).join('/')
|
|
1172
|
+
break
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
var remain = pattern.slice(n)
|
|
1176
|
+
|
|
1177
|
+
// get the list of entries.
|
|
1178
|
+
var read
|
|
1179
|
+
if (prefix === null)
|
|
1180
|
+
read = '.'
|
|
1181
|
+
else if (isAbsolute(prefix) ||
|
|
1182
|
+
isAbsolute(pattern.map(function (p) {
|
|
1183
|
+
return typeof p === 'string' ? p : '[*]'
|
|
1184
|
+
}).join('/'))) {
|
|
1185
|
+
if (!prefix || !isAbsolute(prefix))
|
|
1186
|
+
prefix = '/' + prefix
|
|
1187
|
+
read = prefix
|
|
1188
|
+
} else
|
|
1189
|
+
read = prefix
|
|
1190
|
+
|
|
1191
|
+
var abs = this._makeAbs(read)
|
|
1192
|
+
|
|
1193
|
+
//if ignored, skip _processing
|
|
1194
|
+
if (childrenIgnored(this, read))
|
|
1195
|
+
return cb()
|
|
1196
|
+
|
|
1197
|
+
var isGlobStar = remain[0] === minimatch.GLOBSTAR
|
|
1198
|
+
if (isGlobStar)
|
|
1199
|
+
this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb)
|
|
1200
|
+
else
|
|
1201
|
+
this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb)
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) {
|
|
1205
|
+
var self = this
|
|
1206
|
+
this._readdir(abs, inGlobStar, function (er, entries) {
|
|
1207
|
+
return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
|
|
1208
|
+
})
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {
|
|
1212
|
+
|
|
1213
|
+
// if the abs isn't a dir, then nothing can match!
|
|
1214
|
+
if (!entries)
|
|
1215
|
+
return cb()
|
|
1216
|
+
|
|
1217
|
+
// It will only match dot entries if it starts with a dot, or if
|
|
1218
|
+
// dot is set. Stuff like @(.foo|.bar) isn't allowed.
|
|
1219
|
+
var pn = remain[0]
|
|
1220
|
+
var negate = !!this.minimatch.negate
|
|
1221
|
+
var rawGlob = pn._glob
|
|
1222
|
+
var dotOk = this.dot || rawGlob.charAt(0) === '.'
|
|
1223
|
+
|
|
1224
|
+
var matchedEntries = []
|
|
1225
|
+
for (var i = 0; i < entries.length; i++) {
|
|
1226
|
+
var e = entries[i]
|
|
1227
|
+
if (e.charAt(0) !== '.' || dotOk) {
|
|
1228
|
+
var m
|
|
1229
|
+
if (negate && !prefix) {
|
|
1230
|
+
m = !e.match(pn)
|
|
1231
|
+
} else {
|
|
1232
|
+
m = e.match(pn)
|
|
1233
|
+
}
|
|
1234
|
+
if (m)
|
|
1235
|
+
matchedEntries.push(e)
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
//console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries)
|
|
1240
|
+
|
|
1241
|
+
var len = matchedEntries.length
|
|
1242
|
+
// If there are no matched entries, then nothing matches.
|
|
1243
|
+
if (len === 0)
|
|
1244
|
+
return cb()
|
|
1245
|
+
|
|
1246
|
+
// if this is the last remaining pattern bit, then no need for
|
|
1247
|
+
// an additional stat *unless* the user has specified mark or
|
|
1248
|
+
// stat explicitly. We know they exist, since readdir returned
|
|
1249
|
+
// them.
|
|
1250
|
+
|
|
1251
|
+
if (remain.length === 1 && !this.mark && !this.stat) {
|
|
1252
|
+
if (!this.matches[index])
|
|
1253
|
+
this.matches[index] = Object.create(null)
|
|
1254
|
+
|
|
1255
|
+
for (var i = 0; i < len; i ++) {
|
|
1256
|
+
var e = matchedEntries[i]
|
|
1257
|
+
if (prefix) {
|
|
1258
|
+
if (prefix !== '/')
|
|
1259
|
+
e = prefix + '/' + e
|
|
1260
|
+
else
|
|
1261
|
+
e = prefix + e
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
if (e.charAt(0) === '/' && !this.nomount) {
|
|
1265
|
+
e = path.join(this.root, e)
|
|
1266
|
+
}
|
|
1267
|
+
this._emitMatch(index, e)
|
|
1268
|
+
}
|
|
1269
|
+
// This was the last one, and no stats were needed
|
|
1270
|
+
return cb()
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
// now test all matched entries as stand-ins for that part
|
|
1274
|
+
// of the pattern.
|
|
1275
|
+
remain.shift()
|
|
1276
|
+
for (var i = 0; i < len; i ++) {
|
|
1277
|
+
var e = matchedEntries[i]
|
|
1278
|
+
var newPattern
|
|
1279
|
+
if (prefix) {
|
|
1280
|
+
if (prefix !== '/')
|
|
1281
|
+
e = prefix + '/' + e
|
|
1282
|
+
else
|
|
1283
|
+
e = prefix + e
|
|
1284
|
+
}
|
|
1285
|
+
this._process([e].concat(remain), index, inGlobStar, cb)
|
|
1286
|
+
}
|
|
1287
|
+
cb()
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
Glob.prototype._emitMatch = function (index, e) {
|
|
1291
|
+
if (this.aborted)
|
|
1292
|
+
return
|
|
1293
|
+
|
|
1294
|
+
if (isIgnored(this, e))
|
|
1295
|
+
return
|
|
1296
|
+
|
|
1297
|
+
if (this.paused) {
|
|
1298
|
+
this._emitQueue.push([index, e])
|
|
1299
|
+
return
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
var abs = isAbsolute(e) ? e : this._makeAbs(e)
|
|
1303
|
+
|
|
1304
|
+
if (this.mark)
|
|
1305
|
+
e = this._mark(e)
|
|
1306
|
+
|
|
1307
|
+
if (this.absolute)
|
|
1308
|
+
e = abs
|
|
1309
|
+
|
|
1310
|
+
if (this.matches[index][e])
|
|
1311
|
+
return
|
|
1312
|
+
|
|
1313
|
+
if (this.nodir) {
|
|
1314
|
+
var c = this.cache[abs]
|
|
1315
|
+
if (c === 'DIR' || Array.isArray(c))
|
|
1316
|
+
return
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
this.matches[index][e] = true
|
|
1320
|
+
|
|
1321
|
+
var st = this.statCache[abs]
|
|
1322
|
+
if (st)
|
|
1323
|
+
this.emit('stat', e, st)
|
|
1324
|
+
|
|
1325
|
+
this.emit('match', e)
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
Glob.prototype._readdirInGlobStar = function (abs, cb) {
|
|
1329
|
+
if (this.aborted)
|
|
1330
|
+
return
|
|
1331
|
+
|
|
1332
|
+
// follow all symlinked directories forever
|
|
1333
|
+
// just proceed as if this is a non-globstar situation
|
|
1334
|
+
if (this.follow)
|
|
1335
|
+
return this._readdir(abs, false, cb)
|
|
1336
|
+
|
|
1337
|
+
var lstatkey = 'lstat\0' + abs
|
|
1338
|
+
var self = this
|
|
1339
|
+
var lstatcb = inflight(lstatkey, lstatcb_)
|
|
1340
|
+
|
|
1341
|
+
if (lstatcb)
|
|
1342
|
+
self.fs.lstat(abs, lstatcb)
|
|
1343
|
+
|
|
1344
|
+
function lstatcb_ (er, lstat) {
|
|
1345
|
+
if (er && er.code === 'ENOENT')
|
|
1346
|
+
return cb()
|
|
1347
|
+
|
|
1348
|
+
var isSym = lstat && lstat.isSymbolicLink()
|
|
1349
|
+
self.symlinks[abs] = isSym
|
|
1350
|
+
|
|
1351
|
+
// If it's not a symlink or a dir, then it's definitely a regular file.
|
|
1352
|
+
// don't bother doing a readdir in that case.
|
|
1353
|
+
if (!isSym && lstat && !lstat.isDirectory()) {
|
|
1354
|
+
self.cache[abs] = 'FILE'
|
|
1355
|
+
cb()
|
|
1356
|
+
} else
|
|
1357
|
+
self._readdir(abs, false, cb)
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
Glob.prototype._readdir = function (abs, inGlobStar, cb) {
|
|
1362
|
+
if (this.aborted)
|
|
1363
|
+
return
|
|
1364
|
+
|
|
1365
|
+
cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb)
|
|
1366
|
+
if (!cb)
|
|
1367
|
+
return
|
|
1368
|
+
|
|
1369
|
+
//console.error('RD %j %j', +inGlobStar, abs)
|
|
1370
|
+
if (inGlobStar && !ownProp(this.symlinks, abs))
|
|
1371
|
+
return this._readdirInGlobStar(abs, cb)
|
|
1372
|
+
|
|
1373
|
+
if (ownProp(this.cache, abs)) {
|
|
1374
|
+
var c = this.cache[abs]
|
|
1375
|
+
if (!c || c === 'FILE')
|
|
1376
|
+
return cb()
|
|
1377
|
+
|
|
1378
|
+
if (Array.isArray(c))
|
|
1379
|
+
return cb(null, c)
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
var self = this
|
|
1383
|
+
self.fs.readdir(abs, readdirCb(this, abs, cb))
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
function readdirCb (self, abs, cb) {
|
|
1387
|
+
return function (er, entries) {
|
|
1388
|
+
if (er)
|
|
1389
|
+
self._readdirError(abs, er, cb)
|
|
1390
|
+
else
|
|
1391
|
+
self._readdirEntries(abs, entries, cb)
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
Glob.prototype._readdirEntries = function (abs, entries, cb) {
|
|
1396
|
+
if (this.aborted)
|
|
1397
|
+
return
|
|
1398
|
+
|
|
1399
|
+
// if we haven't asked to stat everything, then just
|
|
1400
|
+
// assume that everything in there exists, so we can avoid
|
|
1401
|
+
// having to stat it a second time.
|
|
1402
|
+
if (!this.mark && !this.stat) {
|
|
1403
|
+
for (var i = 0; i < entries.length; i ++) {
|
|
1404
|
+
var e = entries[i]
|
|
1405
|
+
if (abs === '/')
|
|
1406
|
+
e = abs + e
|
|
1407
|
+
else
|
|
1408
|
+
e = abs + '/' + e
|
|
1409
|
+
this.cache[e] = true
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
this.cache[abs] = entries
|
|
1414
|
+
return cb(null, entries)
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
Glob.prototype._readdirError = function (f, er, cb) {
|
|
1418
|
+
if (this.aborted)
|
|
1419
|
+
return
|
|
1420
|
+
|
|
1421
|
+
// handle errors, and cache the information
|
|
1422
|
+
switch (er.code) {
|
|
1423
|
+
case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
|
|
1424
|
+
case 'ENOTDIR': // totally normal. means it *does* exist.
|
|
1425
|
+
var abs = this._makeAbs(f)
|
|
1426
|
+
this.cache[abs] = 'FILE'
|
|
1427
|
+
if (abs === this.cwdAbs) {
|
|
1428
|
+
var error = new Error(er.code + ' invalid cwd ' + this.cwd)
|
|
1429
|
+
error.path = this.cwd
|
|
1430
|
+
error.code = er.code
|
|
1431
|
+
this.emit('error', error)
|
|
1432
|
+
this.abort()
|
|
1433
|
+
}
|
|
1434
|
+
break
|
|
1435
|
+
|
|
1436
|
+
case 'ENOENT': // not terribly unusual
|
|
1437
|
+
case 'ELOOP':
|
|
1438
|
+
case 'ENAMETOOLONG':
|
|
1439
|
+
case 'UNKNOWN':
|
|
1440
|
+
this.cache[this._makeAbs(f)] = false
|
|
1441
|
+
break
|
|
1442
|
+
|
|
1443
|
+
default: // some unusual error. Treat as failure.
|
|
1444
|
+
this.cache[this._makeAbs(f)] = false
|
|
1445
|
+
if (this.strict) {
|
|
1446
|
+
this.emit('error', er)
|
|
1447
|
+
// If the error is handled, then we abort
|
|
1448
|
+
// if not, we threw out of here
|
|
1449
|
+
this.abort()
|
|
1450
|
+
}
|
|
1451
|
+
if (!this.silent)
|
|
1452
|
+
console.error('glob error', er)
|
|
1453
|
+
break
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
return cb()
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) {
|
|
1460
|
+
var self = this
|
|
1461
|
+
this._readdir(abs, inGlobStar, function (er, entries) {
|
|
1462
|
+
self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
|
|
1463
|
+
})
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
Glob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {
|
|
1468
|
+
//console.error('pgs2', prefix, remain[0], entries)
|
|
1469
|
+
|
|
1470
|
+
// no entries means not a dir, so it can never have matches
|
|
1471
|
+
// foo.txt/** doesn't match foo.txt
|
|
1472
|
+
if (!entries)
|
|
1473
|
+
return cb()
|
|
1474
|
+
|
|
1475
|
+
// test without the globstar, and with every child both below
|
|
1476
|
+
// and replacing the globstar.
|
|
1477
|
+
var remainWithoutGlobStar = remain.slice(1)
|
|
1478
|
+
var gspref = prefix ? [ prefix ] : []
|
|
1479
|
+
var noGlobStar = gspref.concat(remainWithoutGlobStar)
|
|
1480
|
+
|
|
1481
|
+
// the noGlobStar pattern exits the inGlobStar state
|
|
1482
|
+
this._process(noGlobStar, index, false, cb)
|
|
1483
|
+
|
|
1484
|
+
var isSym = this.symlinks[abs]
|
|
1485
|
+
var len = entries.length
|
|
1486
|
+
|
|
1487
|
+
// If it's a symlink, and we're in a globstar, then stop
|
|
1488
|
+
if (isSym && inGlobStar)
|
|
1489
|
+
return cb()
|
|
1490
|
+
|
|
1491
|
+
for (var i = 0; i < len; i++) {
|
|
1492
|
+
var e = entries[i]
|
|
1493
|
+
if (e.charAt(0) === '.' && !this.dot)
|
|
1494
|
+
continue
|
|
1495
|
+
|
|
1496
|
+
// these two cases enter the inGlobStar state
|
|
1497
|
+
var instead = gspref.concat(entries[i], remainWithoutGlobStar)
|
|
1498
|
+
this._process(instead, index, true, cb)
|
|
1499
|
+
|
|
1500
|
+
var below = gspref.concat(entries[i], remain)
|
|
1501
|
+
this._process(below, index, true, cb)
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
cb()
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
Glob.prototype._processSimple = function (prefix, index, cb) {
|
|
1508
|
+
// XXX review this. Shouldn't it be doing the mounting etc
|
|
1509
|
+
// before doing stat? kinda weird?
|
|
1510
|
+
var self = this
|
|
1511
|
+
this._stat(prefix, function (er, exists) {
|
|
1512
|
+
self._processSimple2(prefix, index, er, exists, cb)
|
|
1513
|
+
})
|
|
1514
|
+
}
|
|
1515
|
+
Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) {
|
|
1516
|
+
|
|
1517
|
+
//console.error('ps2', prefix, exists)
|
|
1518
|
+
|
|
1519
|
+
if (!this.matches[index])
|
|
1520
|
+
this.matches[index] = Object.create(null)
|
|
1521
|
+
|
|
1522
|
+
// If it doesn't exist, then just mark the lack of results
|
|
1523
|
+
if (!exists)
|
|
1524
|
+
return cb()
|
|
1525
|
+
|
|
1526
|
+
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
1527
|
+
var trail = /[\/\\]$/.test(prefix)
|
|
1528
|
+
if (prefix.charAt(0) === '/') {
|
|
1529
|
+
prefix = path.join(this.root, prefix)
|
|
1530
|
+
} else {
|
|
1531
|
+
prefix = path.resolve(this.root, prefix)
|
|
1532
|
+
if (trail)
|
|
1533
|
+
prefix += '/'
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
if (process.platform === 'win32')
|
|
1538
|
+
prefix = prefix.replace(/\\/g, '/')
|
|
1539
|
+
|
|
1540
|
+
// Mark this as a match
|
|
1541
|
+
this._emitMatch(index, prefix)
|
|
1542
|
+
cb()
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
// Returns either 'DIR', 'FILE', or false
|
|
1546
|
+
Glob.prototype._stat = function (f, cb) {
|
|
1547
|
+
var abs = this._makeAbs(f)
|
|
1548
|
+
var needDir = f.slice(-1) === '/'
|
|
1549
|
+
|
|
1550
|
+
if (f.length > this.maxLength)
|
|
1551
|
+
return cb()
|
|
1552
|
+
|
|
1553
|
+
if (!this.stat && ownProp(this.cache, abs)) {
|
|
1554
|
+
var c = this.cache[abs]
|
|
1555
|
+
|
|
1556
|
+
if (Array.isArray(c))
|
|
1557
|
+
c = 'DIR'
|
|
1558
|
+
|
|
1559
|
+
// It exists, but maybe not how we need it
|
|
1560
|
+
if (!needDir || c === 'DIR')
|
|
1561
|
+
return cb(null, c)
|
|
1562
|
+
|
|
1563
|
+
if (needDir && c === 'FILE')
|
|
1564
|
+
return cb()
|
|
1565
|
+
|
|
1566
|
+
// otherwise we have to stat, because maybe c=true
|
|
1567
|
+
// if we know it exists, but not what it is.
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
var exists
|
|
1571
|
+
var stat = this.statCache[abs]
|
|
1572
|
+
if (stat !== undefined) {
|
|
1573
|
+
if (stat === false)
|
|
1574
|
+
return cb(null, stat)
|
|
1575
|
+
else {
|
|
1576
|
+
var type = stat.isDirectory() ? 'DIR' : 'FILE'
|
|
1577
|
+
if (needDir && type === 'FILE')
|
|
1578
|
+
return cb()
|
|
1579
|
+
else
|
|
1580
|
+
return cb(null, type, stat)
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
var self = this
|
|
1585
|
+
var statcb = inflight('stat\0' + abs, lstatcb_)
|
|
1586
|
+
if (statcb)
|
|
1587
|
+
self.fs.lstat(abs, statcb)
|
|
1588
|
+
|
|
1589
|
+
function lstatcb_ (er, lstat) {
|
|
1590
|
+
if (lstat && lstat.isSymbolicLink()) {
|
|
1591
|
+
// If it's a symlink, then treat it as the target, unless
|
|
1592
|
+
// the target does not exist, then treat it as a file.
|
|
1593
|
+
return self.fs.stat(abs, function (er, stat) {
|
|
1594
|
+
if (er)
|
|
1595
|
+
self._stat2(f, abs, null, lstat, cb)
|
|
1596
|
+
else
|
|
1597
|
+
self._stat2(f, abs, er, stat, cb)
|
|
1598
|
+
})
|
|
1599
|
+
} else {
|
|
1600
|
+
self._stat2(f, abs, er, lstat, cb)
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
Glob.prototype._stat2 = function (f, abs, er, stat, cb) {
|
|
1606
|
+
if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
|
|
1607
|
+
this.statCache[abs] = false
|
|
1608
|
+
return cb()
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
var needDir = f.slice(-1) === '/'
|
|
1612
|
+
this.statCache[abs] = stat
|
|
1613
|
+
|
|
1614
|
+
if (abs.slice(-1) === '/' && stat && !stat.isDirectory())
|
|
1615
|
+
return cb(null, false, stat)
|
|
1616
|
+
|
|
1617
|
+
var c = true
|
|
1618
|
+
if (stat)
|
|
1619
|
+
c = stat.isDirectory() ? 'DIR' : 'FILE'
|
|
1620
|
+
this.cache[abs] = this.cache[abs] || c
|
|
1621
|
+
|
|
1622
|
+
if (needDir && c === 'FILE')
|
|
1623
|
+
return cb()
|
|
1624
|
+
|
|
1625
|
+
return cb(null, c, stat)
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
|
|
1629
|
+
/***/ }),
|
|
1630
|
+
|
|
1631
|
+
/***/ 231:
|
|
1632
|
+
/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) {
|
|
1633
|
+
|
|
1634
|
+
module.exports = globSync
|
|
1635
|
+
globSync.GlobSync = GlobSync
|
|
1636
|
+
|
|
1637
|
+
var rp = __nccwpck_require__(945)
|
|
1638
|
+
var minimatch = __nccwpck_require__(480)
|
|
1639
|
+
var Minimatch = minimatch.Minimatch
|
|
1640
|
+
var Glob = (__nccwpck_require__(104).Glob)
|
|
1641
|
+
var util = __nccwpck_require__(837)
|
|
1642
|
+
var path = __nccwpck_require__(17)
|
|
1643
|
+
var assert = __nccwpck_require__(491)
|
|
1644
|
+
var isAbsolute = (__nccwpck_require__(17).isAbsolute)
|
|
1645
|
+
var common = __nccwpck_require__(686)
|
|
1646
|
+
var setopts = common.setopts
|
|
1647
|
+
var ownProp = common.ownProp
|
|
1648
|
+
var childrenIgnored = common.childrenIgnored
|
|
1649
|
+
var isIgnored = common.isIgnored
|
|
1650
|
+
|
|
1651
|
+
function globSync (pattern, options) {
|
|
1652
|
+
if (typeof options === 'function' || arguments.length === 3)
|
|
1653
|
+
throw new TypeError('callback provided to sync glob\n'+
|
|
1654
|
+
'See: https://github.com/isaacs/node-glob/issues/167')
|
|
1655
|
+
|
|
1656
|
+
return new GlobSync(pattern, options).found
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
function GlobSync (pattern, options) {
|
|
1660
|
+
if (!pattern)
|
|
1661
|
+
throw new Error('must provide pattern')
|
|
1662
|
+
|
|
1663
|
+
if (typeof options === 'function' || arguments.length === 3)
|
|
1664
|
+
throw new TypeError('callback provided to sync glob\n'+
|
|
1665
|
+
'See: https://github.com/isaacs/node-glob/issues/167')
|
|
1666
|
+
|
|
1667
|
+
if (!(this instanceof GlobSync))
|
|
1668
|
+
return new GlobSync(pattern, options)
|
|
1669
|
+
|
|
1670
|
+
setopts(this, pattern, options)
|
|
1671
|
+
|
|
1672
|
+
if (this.noprocess)
|
|
1673
|
+
return this
|
|
1674
|
+
|
|
1675
|
+
var n = this.minimatch.set.length
|
|
1676
|
+
this.matches = new Array(n)
|
|
1677
|
+
for (var i = 0; i < n; i ++) {
|
|
1678
|
+
this._process(this.minimatch.set[i], i, false)
|
|
1679
|
+
}
|
|
1680
|
+
this._finish()
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
GlobSync.prototype._finish = function () {
|
|
1684
|
+
assert.ok(this instanceof GlobSync)
|
|
1685
|
+
if (this.realpath) {
|
|
1686
|
+
var self = this
|
|
1687
|
+
this.matches.forEach(function (matchset, index) {
|
|
1688
|
+
var set = self.matches[index] = Object.create(null)
|
|
1689
|
+
for (var p in matchset) {
|
|
1690
|
+
try {
|
|
1691
|
+
p = self._makeAbs(p)
|
|
1692
|
+
var real = rp.realpathSync(p, self.realpathCache)
|
|
1693
|
+
set[real] = true
|
|
1694
|
+
} catch (er) {
|
|
1695
|
+
if (er.syscall === 'stat')
|
|
1696
|
+
set[self._makeAbs(p)] = true
|
|
1697
|
+
else
|
|
1698
|
+
throw er
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
})
|
|
1702
|
+
}
|
|
1703
|
+
common.finish(this)
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
GlobSync.prototype._process = function (pattern, index, inGlobStar) {
|
|
1708
|
+
assert.ok(this instanceof GlobSync)
|
|
1709
|
+
|
|
1710
|
+
// Get the first [n] parts of pattern that are all strings.
|
|
1711
|
+
var n = 0
|
|
1712
|
+
while (typeof pattern[n] === 'string') {
|
|
1713
|
+
n ++
|
|
1714
|
+
}
|
|
1715
|
+
// now n is the index of the first one that is *not* a string.
|
|
1716
|
+
|
|
1717
|
+
// See if there's anything else
|
|
1718
|
+
var prefix
|
|
1719
|
+
switch (n) {
|
|
1720
|
+
// if not, then this is rather simple
|
|
1721
|
+
case pattern.length:
|
|
1722
|
+
this._processSimple(pattern.join('/'), index)
|
|
1723
|
+
return
|
|
1724
|
+
|
|
1725
|
+
case 0:
|
|
1726
|
+
// pattern *starts* with some non-trivial item.
|
|
1727
|
+
// going to readdir(cwd), but not include the prefix in matches.
|
|
1728
|
+
prefix = null
|
|
1729
|
+
break
|
|
1730
|
+
|
|
1731
|
+
default:
|
|
1732
|
+
// pattern has some string bits in the front.
|
|
1733
|
+
// whatever it starts with, whether that's 'absolute' like /foo/bar,
|
|
1734
|
+
// or 'relative' like '../baz'
|
|
1735
|
+
prefix = pattern.slice(0, n).join('/')
|
|
1736
|
+
break
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
var remain = pattern.slice(n)
|
|
1740
|
+
|
|
1741
|
+
// get the list of entries.
|
|
1742
|
+
var read
|
|
1743
|
+
if (prefix === null)
|
|
1744
|
+
read = '.'
|
|
1745
|
+
else if (isAbsolute(prefix) ||
|
|
1746
|
+
isAbsolute(pattern.map(function (p) {
|
|
1747
|
+
return typeof p === 'string' ? p : '[*]'
|
|
1748
|
+
}).join('/'))) {
|
|
1749
|
+
if (!prefix || !isAbsolute(prefix))
|
|
1750
|
+
prefix = '/' + prefix
|
|
1751
|
+
read = prefix
|
|
1752
|
+
} else
|
|
1753
|
+
read = prefix
|
|
1754
|
+
|
|
1755
|
+
var abs = this._makeAbs(read)
|
|
1756
|
+
|
|
1757
|
+
//if ignored, skip processing
|
|
1758
|
+
if (childrenIgnored(this, read))
|
|
1759
|
+
return
|
|
1760
|
+
|
|
1761
|
+
var isGlobStar = remain[0] === minimatch.GLOBSTAR
|
|
1762
|
+
if (isGlobStar)
|
|
1763
|
+
this._processGlobStar(prefix, read, abs, remain, index, inGlobStar)
|
|
1764
|
+
else
|
|
1765
|
+
this._processReaddir(prefix, read, abs, remain, index, inGlobStar)
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {
|
|
1770
|
+
var entries = this._readdir(abs, inGlobStar)
|
|
1771
|
+
|
|
1772
|
+
// if the abs isn't a dir, then nothing can match!
|
|
1773
|
+
if (!entries)
|
|
1774
|
+
return
|
|
1775
|
+
|
|
1776
|
+
// It will only match dot entries if it starts with a dot, or if
|
|
1777
|
+
// dot is set. Stuff like @(.foo|.bar) isn't allowed.
|
|
1778
|
+
var pn = remain[0]
|
|
1779
|
+
var negate = !!this.minimatch.negate
|
|
1780
|
+
var rawGlob = pn._glob
|
|
1781
|
+
var dotOk = this.dot || rawGlob.charAt(0) === '.'
|
|
1782
|
+
|
|
1783
|
+
var matchedEntries = []
|
|
1784
|
+
for (var i = 0; i < entries.length; i++) {
|
|
1785
|
+
var e = entries[i]
|
|
1786
|
+
if (e.charAt(0) !== '.' || dotOk) {
|
|
1787
|
+
var m
|
|
1788
|
+
if (negate && !prefix) {
|
|
1789
|
+
m = !e.match(pn)
|
|
1790
|
+
} else {
|
|
1791
|
+
m = e.match(pn)
|
|
1792
|
+
}
|
|
1793
|
+
if (m)
|
|
1794
|
+
matchedEntries.push(e)
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
var len = matchedEntries.length
|
|
1799
|
+
// If there are no matched entries, then nothing matches.
|
|
1800
|
+
if (len === 0)
|
|
1801
|
+
return
|
|
1802
|
+
|
|
1803
|
+
// if this is the last remaining pattern bit, then no need for
|
|
1804
|
+
// an additional stat *unless* the user has specified mark or
|
|
1805
|
+
// stat explicitly. We know they exist, since readdir returned
|
|
1806
|
+
// them.
|
|
1807
|
+
|
|
1808
|
+
if (remain.length === 1 && !this.mark && !this.stat) {
|
|
1809
|
+
if (!this.matches[index])
|
|
1810
|
+
this.matches[index] = Object.create(null)
|
|
1811
|
+
|
|
1812
|
+
for (var i = 0; i < len; i ++) {
|
|
1813
|
+
var e = matchedEntries[i]
|
|
1814
|
+
if (prefix) {
|
|
1815
|
+
if (prefix.slice(-1) !== '/')
|
|
1816
|
+
e = prefix + '/' + e
|
|
1817
|
+
else
|
|
1818
|
+
e = prefix + e
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
if (e.charAt(0) === '/' && !this.nomount) {
|
|
1822
|
+
e = path.join(this.root, e)
|
|
1823
|
+
}
|
|
1824
|
+
this._emitMatch(index, e)
|
|
1825
|
+
}
|
|
1826
|
+
// This was the last one, and no stats were needed
|
|
1827
|
+
return
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
// now test all matched entries as stand-ins for that part
|
|
1831
|
+
// of the pattern.
|
|
1832
|
+
remain.shift()
|
|
1833
|
+
for (var i = 0; i < len; i ++) {
|
|
1834
|
+
var e = matchedEntries[i]
|
|
1835
|
+
var newPattern
|
|
1836
|
+
if (prefix)
|
|
1837
|
+
newPattern = [prefix, e]
|
|
1838
|
+
else
|
|
1839
|
+
newPattern = [e]
|
|
1840
|
+
this._process(newPattern.concat(remain), index, inGlobStar)
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
GlobSync.prototype._emitMatch = function (index, e) {
|
|
1846
|
+
if (isIgnored(this, e))
|
|
1847
|
+
return
|
|
1848
|
+
|
|
1849
|
+
var abs = this._makeAbs(e)
|
|
1850
|
+
|
|
1851
|
+
if (this.mark)
|
|
1852
|
+
e = this._mark(e)
|
|
1853
|
+
|
|
1854
|
+
if (this.absolute) {
|
|
1855
|
+
e = abs
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
if (this.matches[index][e])
|
|
1859
|
+
return
|
|
1860
|
+
|
|
1861
|
+
if (this.nodir) {
|
|
1862
|
+
var c = this.cache[abs]
|
|
1863
|
+
if (c === 'DIR' || Array.isArray(c))
|
|
1864
|
+
return
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
this.matches[index][e] = true
|
|
1868
|
+
|
|
1869
|
+
if (this.stat)
|
|
1870
|
+
this._stat(e)
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
|
|
1874
|
+
GlobSync.prototype._readdirInGlobStar = function (abs) {
|
|
1875
|
+
// follow all symlinked directories forever
|
|
1876
|
+
// just proceed as if this is a non-globstar situation
|
|
1877
|
+
if (this.follow)
|
|
1878
|
+
return this._readdir(abs, false)
|
|
1879
|
+
|
|
1880
|
+
var entries
|
|
1881
|
+
var lstat
|
|
1882
|
+
var stat
|
|
1883
|
+
try {
|
|
1884
|
+
lstat = this.fs.lstatSync(abs)
|
|
1885
|
+
} catch (er) {
|
|
1886
|
+
if (er.code === 'ENOENT') {
|
|
1887
|
+
// lstat failed, doesn't exist
|
|
1888
|
+
return null
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
var isSym = lstat && lstat.isSymbolicLink()
|
|
1893
|
+
this.symlinks[abs] = isSym
|
|
1894
|
+
|
|
1895
|
+
// If it's not a symlink or a dir, then it's definitely a regular file.
|
|
1896
|
+
// don't bother doing a readdir in that case.
|
|
1897
|
+
if (!isSym && lstat && !lstat.isDirectory())
|
|
1898
|
+
this.cache[abs] = 'FILE'
|
|
1899
|
+
else
|
|
1900
|
+
entries = this._readdir(abs, false)
|
|
1901
|
+
|
|
1902
|
+
return entries
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
GlobSync.prototype._readdir = function (abs, inGlobStar) {
|
|
1906
|
+
var entries
|
|
1907
|
+
|
|
1908
|
+
if (inGlobStar && !ownProp(this.symlinks, abs))
|
|
1909
|
+
return this._readdirInGlobStar(abs)
|
|
1910
|
+
|
|
1911
|
+
if (ownProp(this.cache, abs)) {
|
|
1912
|
+
var c = this.cache[abs]
|
|
1913
|
+
if (!c || c === 'FILE')
|
|
1914
|
+
return null
|
|
1915
|
+
|
|
1916
|
+
if (Array.isArray(c))
|
|
1917
|
+
return c
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
try {
|
|
1921
|
+
return this._readdirEntries(abs, this.fs.readdirSync(abs))
|
|
1922
|
+
} catch (er) {
|
|
1923
|
+
this._readdirError(abs, er)
|
|
1924
|
+
return null
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
GlobSync.prototype._readdirEntries = function (abs, entries) {
|
|
1929
|
+
// if we haven't asked to stat everything, then just
|
|
1930
|
+
// assume that everything in there exists, so we can avoid
|
|
1931
|
+
// having to stat it a second time.
|
|
1932
|
+
if (!this.mark && !this.stat) {
|
|
1933
|
+
for (var i = 0; i < entries.length; i ++) {
|
|
1934
|
+
var e = entries[i]
|
|
1935
|
+
if (abs === '/')
|
|
1936
|
+
e = abs + e
|
|
1937
|
+
else
|
|
1938
|
+
e = abs + '/' + e
|
|
1939
|
+
this.cache[e] = true
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
this.cache[abs] = entries
|
|
1944
|
+
|
|
1945
|
+
// mark and cache dir-ness
|
|
1946
|
+
return entries
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
GlobSync.prototype._readdirError = function (f, er) {
|
|
1950
|
+
// handle errors, and cache the information
|
|
1951
|
+
switch (er.code) {
|
|
1952
|
+
case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
|
|
1953
|
+
case 'ENOTDIR': // totally normal. means it *does* exist.
|
|
1954
|
+
var abs = this._makeAbs(f)
|
|
1955
|
+
this.cache[abs] = 'FILE'
|
|
1956
|
+
if (abs === this.cwdAbs) {
|
|
1957
|
+
var error = new Error(er.code + ' invalid cwd ' + this.cwd)
|
|
1958
|
+
error.path = this.cwd
|
|
1959
|
+
error.code = er.code
|
|
1960
|
+
throw error
|
|
1961
|
+
}
|
|
1962
|
+
break
|
|
1963
|
+
|
|
1964
|
+
case 'ENOENT': // not terribly unusual
|
|
1965
|
+
case 'ELOOP':
|
|
1966
|
+
case 'ENAMETOOLONG':
|
|
1967
|
+
case 'UNKNOWN':
|
|
1968
|
+
this.cache[this._makeAbs(f)] = false
|
|
1969
|
+
break
|
|
1970
|
+
|
|
1971
|
+
default: // some unusual error. Treat as failure.
|
|
1972
|
+
this.cache[this._makeAbs(f)] = false
|
|
1973
|
+
if (this.strict)
|
|
1974
|
+
throw er
|
|
1975
|
+
if (!this.silent)
|
|
1976
|
+
console.error('glob error', er)
|
|
1977
|
+
break
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {
|
|
1982
|
+
|
|
1983
|
+
var entries = this._readdir(abs, inGlobStar)
|
|
1984
|
+
|
|
1985
|
+
// no entries means not a dir, so it can never have matches
|
|
1986
|
+
// foo.txt/** doesn't match foo.txt
|
|
1987
|
+
if (!entries)
|
|
1988
|
+
return
|
|
1989
|
+
|
|
1990
|
+
// test without the globstar, and with every child both below
|
|
1991
|
+
// and replacing the globstar.
|
|
1992
|
+
var remainWithoutGlobStar = remain.slice(1)
|
|
1993
|
+
var gspref = prefix ? [ prefix ] : []
|
|
1994
|
+
var noGlobStar = gspref.concat(remainWithoutGlobStar)
|
|
1995
|
+
|
|
1996
|
+
// the noGlobStar pattern exits the inGlobStar state
|
|
1997
|
+
this._process(noGlobStar, index, false)
|
|
1998
|
+
|
|
1999
|
+
var len = entries.length
|
|
2000
|
+
var isSym = this.symlinks[abs]
|
|
2001
|
+
|
|
2002
|
+
// If it's a symlink, and we're in a globstar, then stop
|
|
2003
|
+
if (isSym && inGlobStar)
|
|
2004
|
+
return
|
|
2005
|
+
|
|
2006
|
+
for (var i = 0; i < len; i++) {
|
|
2007
|
+
var e = entries[i]
|
|
2008
|
+
if (e.charAt(0) === '.' && !this.dot)
|
|
2009
|
+
continue
|
|
2010
|
+
|
|
2011
|
+
// these two cases enter the inGlobStar state
|
|
2012
|
+
var instead = gspref.concat(entries[i], remainWithoutGlobStar)
|
|
2013
|
+
this._process(instead, index, true)
|
|
2014
|
+
|
|
2015
|
+
var below = gspref.concat(entries[i], remain)
|
|
2016
|
+
this._process(below, index, true)
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
GlobSync.prototype._processSimple = function (prefix, index) {
|
|
2021
|
+
// XXX review this. Shouldn't it be doing the mounting etc
|
|
2022
|
+
// before doing stat? kinda weird?
|
|
2023
|
+
var exists = this._stat(prefix)
|
|
2024
|
+
|
|
2025
|
+
if (!this.matches[index])
|
|
2026
|
+
this.matches[index] = Object.create(null)
|
|
2027
|
+
|
|
2028
|
+
// If it doesn't exist, then just mark the lack of results
|
|
2029
|
+
if (!exists)
|
|
2030
|
+
return
|
|
2031
|
+
|
|
2032
|
+
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
2033
|
+
var trail = /[\/\\]$/.test(prefix)
|
|
2034
|
+
if (prefix.charAt(0) === '/') {
|
|
2035
|
+
prefix = path.join(this.root, prefix)
|
|
2036
|
+
} else {
|
|
2037
|
+
prefix = path.resolve(this.root, prefix)
|
|
2038
|
+
if (trail)
|
|
2039
|
+
prefix += '/'
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
if (process.platform === 'win32')
|
|
2044
|
+
prefix = prefix.replace(/\\/g, '/')
|
|
2045
|
+
|
|
2046
|
+
// Mark this as a match
|
|
2047
|
+
this._emitMatch(index, prefix)
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
// Returns either 'DIR', 'FILE', or false
|
|
2051
|
+
GlobSync.prototype._stat = function (f) {
|
|
2052
|
+
var abs = this._makeAbs(f)
|
|
2053
|
+
var needDir = f.slice(-1) === '/'
|
|
2054
|
+
|
|
2055
|
+
if (f.length > this.maxLength)
|
|
2056
|
+
return false
|
|
2057
|
+
|
|
2058
|
+
if (!this.stat && ownProp(this.cache, abs)) {
|
|
2059
|
+
var c = this.cache[abs]
|
|
2060
|
+
|
|
2061
|
+
if (Array.isArray(c))
|
|
2062
|
+
c = 'DIR'
|
|
2063
|
+
|
|
2064
|
+
// It exists, but maybe not how we need it
|
|
2065
|
+
if (!needDir || c === 'DIR')
|
|
2066
|
+
return c
|
|
2067
|
+
|
|
2068
|
+
if (needDir && c === 'FILE')
|
|
2069
|
+
return false
|
|
2070
|
+
|
|
2071
|
+
// otherwise we have to stat, because maybe c=true
|
|
2072
|
+
// if we know it exists, but not what it is.
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
var exists
|
|
2076
|
+
var stat = this.statCache[abs]
|
|
2077
|
+
if (!stat) {
|
|
2078
|
+
var lstat
|
|
2079
|
+
try {
|
|
2080
|
+
lstat = this.fs.lstatSync(abs)
|
|
2081
|
+
} catch (er) {
|
|
2082
|
+
if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
|
|
2083
|
+
this.statCache[abs] = false
|
|
2084
|
+
return false
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
if (lstat && lstat.isSymbolicLink()) {
|
|
2089
|
+
try {
|
|
2090
|
+
stat = this.fs.statSync(abs)
|
|
2091
|
+
} catch (er) {
|
|
2092
|
+
stat = lstat
|
|
2093
|
+
}
|
|
2094
|
+
} else {
|
|
2095
|
+
stat = lstat
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
this.statCache[abs] = stat
|
|
2100
|
+
|
|
2101
|
+
var c = true
|
|
2102
|
+
if (stat)
|
|
2103
|
+
c = stat.isDirectory() ? 'DIR' : 'FILE'
|
|
2104
|
+
|
|
2105
|
+
this.cache[abs] = this.cache[abs] || c
|
|
2106
|
+
|
|
2107
|
+
if (needDir && c === 'FILE')
|
|
2108
|
+
return false
|
|
2109
|
+
|
|
2110
|
+
return c
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
GlobSync.prototype._mark = function (p) {
|
|
2114
|
+
return common.mark(this, p)
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
GlobSync.prototype._makeAbs = function (f) {
|
|
2118
|
+
return common.makeAbs(this, f)
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
/***/ }),
|
|
2123
|
+
|
|
2124
|
+
/***/ 480:
|
|
2125
|
+
/***/ (function(module) {
|
|
2126
|
+
|
|
2127
|
+
"use strict";
|
|
2128
|
+
module.exports = require("../minimatch");
|
|
2129
|
+
|
|
2130
|
+
/***/ }),
|
|
2131
|
+
|
|
2132
|
+
/***/ 491:
|
|
2133
|
+
/***/ (function(module) {
|
|
2134
|
+
|
|
2135
|
+
"use strict";
|
|
2136
|
+
module.exports = require("assert");
|
|
2137
|
+
|
|
2138
|
+
/***/ }),
|
|
2139
|
+
|
|
2140
|
+
/***/ 361:
|
|
2141
|
+
/***/ (function(module) {
|
|
2142
|
+
|
|
2143
|
+
"use strict";
|
|
2144
|
+
module.exports = require("events");
|
|
2145
|
+
|
|
2146
|
+
/***/ }),
|
|
2147
|
+
|
|
2148
|
+
/***/ 147:
|
|
2149
|
+
/***/ (function(module) {
|
|
2150
|
+
|
|
2151
|
+
"use strict";
|
|
2152
|
+
module.exports = require("fs");
|
|
2153
|
+
|
|
2154
|
+
/***/ }),
|
|
2155
|
+
|
|
2156
|
+
/***/ 17:
|
|
2157
|
+
/***/ (function(module) {
|
|
2158
|
+
|
|
2159
|
+
"use strict";
|
|
2160
|
+
module.exports = require("path");
|
|
2161
|
+
|
|
2162
|
+
/***/ }),
|
|
2163
|
+
|
|
2164
|
+
/***/ 837:
|
|
2165
|
+
/***/ (function(module) {
|
|
2166
|
+
|
|
2167
|
+
"use strict";
|
|
2168
|
+
module.exports = require("util");
|
|
2169
|
+
|
|
2170
|
+
/***/ })
|
|
2171
|
+
|
|
2172
|
+
/******/ });
|
|
2173
|
+
/************************************************************************/
|
|
2174
|
+
/******/ // The module cache
|
|
2175
|
+
/******/ var __webpack_module_cache__ = {};
|
|
2176
|
+
/******/
|
|
2177
|
+
/******/ // The require function
|
|
2178
|
+
/******/ function __nccwpck_require__(moduleId) {
|
|
2179
|
+
/******/ // Check if module is in cache
|
|
2180
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
2181
|
+
/******/ if (cachedModule !== undefined) {
|
|
2182
|
+
/******/ return cachedModule.exports;
|
|
2183
|
+
/******/ }
|
|
2184
|
+
/******/ // Create a new module (and put it into the cache)
|
|
2185
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
2186
|
+
/******/ // no module.id needed
|
|
2187
|
+
/******/ // no module.loaded needed
|
|
2188
|
+
/******/ exports: {}
|
|
2189
|
+
/******/ };
|
|
2190
|
+
/******/
|
|
2191
|
+
/******/ // Execute the module function
|
|
2192
|
+
/******/ var threw = true;
|
|
2193
|
+
/******/ try {
|
|
2194
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__);
|
|
2195
|
+
/******/ threw = false;
|
|
2196
|
+
/******/ } finally {
|
|
2197
|
+
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
|
2198
|
+
/******/ }
|
|
2199
|
+
/******/
|
|
2200
|
+
/******/ // Return the exports of the module
|
|
2201
|
+
/******/ return module.exports;
|
|
2202
|
+
/******/ }
|
|
2203
|
+
/******/
|
|
2204
|
+
/************************************************************************/
|
|
2205
|
+
/******/ /* webpack/runtime/compat */
|
|
2206
|
+
/******/
|
|
2207
|
+
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
|
|
2208
|
+
/******/
|
|
2209
|
+
/************************************************************************/
|
|
2210
|
+
/******/
|
|
2211
|
+
/******/ // startup
|
|
2212
|
+
/******/ // Load entry module and return exports
|
|
2213
|
+
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
2214
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(104);
|
|
2215
|
+
/******/ module.exports = __webpack_exports__;
|
|
2216
|
+
/******/
|
|
2217
|
+
/******/ })()
|
|
2218
|
+
;
|