Script to update jquery.
This commit is contained in:
parent
61e7720395
commit
2f1bceabb1
@ -1,4 +1,4 @@
|
|||||||
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
|
Copyright JS Foundation and other contributors, https://js.foundation/
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
a copy of this software and associated documentation files (the
|
a copy of this software and associated documentation files (the
|
||||||
|
|||||||
@ -26,6 +26,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@simonwep/pickr": "1.8.2",
|
"@simonwep/pickr": "1.8.2",
|
||||||
"fflate": "0.7.1",
|
"fflate": "0.7.1",
|
||||||
|
"jquery": "3.5.1",
|
||||||
"rhino3dm": "7.7.0",
|
"rhino3dm": "7.7.0",
|
||||||
"three": "0.134.0"
|
"three": "0.134.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -8,6 +8,17 @@ import urllib.request
|
|||||||
|
|
||||||
from lib import tools_lib as Tools
|
from lib import tools_lib as Tools
|
||||||
|
|
||||||
|
jqueryFileMap = [
|
||||||
|
[os.path.join ('jquery', 'LICENSE.txt'), os.path.join ('jquery.license.md')],
|
||||||
|
[os.path.join ('jquery', 'dist', 'jquery.min.js'), os.path.join ('jquery.min.js')]
|
||||||
|
]
|
||||||
|
|
||||||
|
pickrFileMap = [
|
||||||
|
[os.path.join ('@simonwep', 'pickr', 'LICENSE'), os.path.join ('pickr.license.md')],
|
||||||
|
[os.path.join ('@simonwep', 'pickr', 'dist', 'pickr.es5.min.js'), os.path.join ('pickr.es5.min.js')],
|
||||||
|
[os.path.join ('@simonwep', 'pickr', 'dist', 'themes', 'monolith.min.css'), os.path.join ('pickr.monolith.min.css')]
|
||||||
|
]
|
||||||
|
|
||||||
threeJsFileMap = [
|
threeJsFileMap = [
|
||||||
[os.path.join ('three', 'LICENSE'), os.path.join ('three.license.md')],
|
[os.path.join ('three', 'LICENSE'), os.path.join ('three.license.md')],
|
||||||
[os.path.join ('three', 'build', 'three.min.js'), os.path.join ('three.min.js')],
|
[os.path.join ('three', 'build', 'three.min.js'), os.path.join ('three.min.js')],
|
||||||
@ -18,12 +29,6 @@ threeJsFileMap = [
|
|||||||
[os.path.join ('three', 'examples', 'js', 'loaders', 'VRMLLoader.js'), os.path.join ('three_loaders', 'VRMLLoader.js')]
|
[os.path.join ('three', 'examples', 'js', 'loaders', 'VRMLLoader.js'), os.path.join ('three_loaders', 'VRMLLoader.js')]
|
||||||
]
|
]
|
||||||
|
|
||||||
pickrFileMap = [
|
|
||||||
[os.path.join ('@simonwep', 'pickr', 'LICENSE'), os.path.join ('pickr.license.md')],
|
|
||||||
[os.path.join ('@simonwep', 'pickr', 'dist', 'pickr.es5.min.js'), os.path.join ('pickr.es5.min.js')],
|
|
||||||
[os.path.join ('@simonwep', 'pickr', 'dist', 'themes', 'monolith.min.css'), os.path.join ('pickr.monolith.min.css')]
|
|
||||||
]
|
|
||||||
|
|
||||||
rhino3dmFileMap = [
|
rhino3dmFileMap = [
|
||||||
[os.path.join ('rhino3dm', 'rhino3dm.js'), os.path.join ('loaders', 'rhino3dm.min.js')],
|
[os.path.join ('rhino3dm', 'rhino3dm.js'), os.path.join ('loaders', 'rhino3dm.min.js')],
|
||||||
[os.path.join ('rhino3dm', 'rhino3dm.wasm'), os.path.join ('loaders', 'rhino3dm.wasm')],
|
[os.path.join ('rhino3dm', 'rhino3dm.wasm'), os.path.join ('loaders', 'rhino3dm.wasm')],
|
||||||
@ -55,8 +60,9 @@ def Main (argv):
|
|||||||
nodeModulesDir = os.path.join (rootDir, 'node_modules')
|
nodeModulesDir = os.path.join (rootDir, 'node_modules')
|
||||||
libsDir = os.path.join (rootDir, 'libs')
|
libsDir = os.path.join (rootDir, 'libs')
|
||||||
|
|
||||||
UpdateModule (threeJsFileMap, nodeModulesDir, libsDir)
|
UpdateModule (jqueryFileMap, nodeModulesDir, libsDir)
|
||||||
UpdateModule (pickrFileMap, nodeModulesDir, libsDir)
|
UpdateModule (pickrFileMap, nodeModulesDir, libsDir)
|
||||||
|
UpdateModule (threeJsFileMap, nodeModulesDir, libsDir)
|
||||||
UpdateModule (rhino3dmFileMap, nodeModulesDir, libsDir)
|
UpdateModule (rhino3dmFileMap, nodeModulesDir, libsDir)
|
||||||
UpdateModule (fflateFileMap, nodeModulesDir, libsDir)
|
UpdateModule (fflateFileMap, nodeModulesDir, libsDir)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user