Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
local-cdn
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
local-cdn
Commits
c383d865
Commit
c383d865
authored
Nov 29, 2017
by
Дмитрий Никулин
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for directories in customLinks
parent
a1c5e093
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
functions.sh
functions.sh
+7
-7
No files found.
functions.sh
View file @
c383d865
...
...
@@ -42,7 +42,7 @@ add_custom_link () {
local
public_base
=
"public/
$library
/
$version
"
local
library_base
=
"packages/
$library
/
$version
/node_modules/
$library
"
link
_and_print
"
$library_base
/
$local_name
"
"
$public_base
/
$public_name
"
copy
_and_print
"
$library_base
/
$local_name
"
"
$public_base
/
$public_name
"
}
add_custom_links
()
{
...
...
@@ -87,12 +87,12 @@ create_dist_link () {
#else
#fi
if
[
"
$main_file_minified
"
!=
"-"
]
;
then
link
_and_print
"
$library_base
/
$main_file_minified
"
"
$public_base
/
$library
.min.js"
link
_and_print
"
$public_base
/
$library
.min.js"
"
$public_base
/
$library
.js"
copy
_and_print
"
$library_base
/
$main_file_minified
"
"
$public_base
/
$library
.min.js"
copy
_and_print
"
$public_base
/
$library
.min.js"
"
$public_base
/
$library
.js"
fi
;
if
[
"
$main_file
"
!=
"-"
]
;
then
link
_and_print
"
$library_base
/
$main_file
"
"
$public_base
/
$library
.development.js"
copy
_and_print
"
$library_base
/
$main_file
"
"
$public_base
/
$library
.development.js"
fi
add_custom_links
"
$library
"
"
$version
"
}
...
...
@@ -126,7 +126,7 @@ install_or_update_package () {
cd
../../../
||
fatal
}
link
_and_print
()
{
copy
_and_print
()
{
[
-e
"
$1
"
]
||
fatal
"File not found:
$1
"
local
target_dirname
=
"
$(
dirname
"
$2
"
)
"
...
...
@@ -134,8 +134,8 @@ link_and_print () {
mkdir
-p
"
$target_dirname
"
||
fatal
fi
ln
-
f
"
$1
"
"
$2
"
||
fatal
echo
"Created
hardlink:
$2
->
$1
"
cp
-al
f
"
$1
"
"
$2
"
||
fatal
echo
"Created
in public:
$2
(same as
$1
)
"
}
registry_add_library_version
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment