Refactored repo organization. Added Jenkinsfile.
This commit is contained in:
@@ -10,5 +10,5 @@ def clear():
|
||||
shutil.rmtree(CACHE_DIR, ignore_errors=True)
|
||||
|
||||
|
||||
if __name__ == "main":
|
||||
if __name__ == "__main__":
|
||||
clear()
|
26
scripts/load_shop_modules.py
Normal file
26
scripts/load_shop_modules.py
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
from glob import glob
|
||||
import os
|
||||
import shutil
|
||||
|
||||
|
||||
PROP_SHOP_MODULES_DIR = "Props.Shop"
|
||||
PROPS_SHOP_MODULES_DST = "Props/shops"
|
||||
NET_VER = "net6.0"
|
||||
|
||||
SHOP_MODULE_GLOB = "**/bin/Release/{net_ver}/publish/*.{ext}"
|
||||
EXTS = ["deps.json", "dll"]
|
||||
|
||||
|
||||
def load():
|
||||
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
||||
os.chdir("..")
|
||||
os.chdir(PROP_SHOP_MODULES_DIR)
|
||||
for ext in EXTS:
|
||||
results = glob(SHOP_MODULE_GLOB.format(net_ver=NET_VER, ext=ext))
|
||||
for result in results:
|
||||
shutil.copy(result, PROPS_SHOP_MODULES_DST)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
load()
|
@@ -1,3 +0,0 @@
|
||||
import utils.clear_webpack_cache as clear_webpack_cache
|
||||
|
||||
clear_webpack_cache.clear() # Refer to https://webpack.js.org/guides/build-performance/#persistent-cache and https://webpack.js.org/blog/2020-10-10-webpack-5-release/#persistent-caching
|
@@ -1 +0,0 @@
|
||||
|
Reference in New Issue
Block a user