Skip to content

Commit 18e527b

Browse files
committed
update build script to also copy entries folder
1 parent 4b5c21b commit 18e527b

40 files changed

+690
-5
lines changed

build.ls

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require! <[fs fs-extra progress colors stylus pug uglifycss]>
1+
require! <[fs fs-extra path progress colors stylus pug uglifycss]>
22

33
console.log "Build all CSS-spinners..."
44

@@ -42,12 +42,15 @@ spinners.map ->
4242
"""
4343
bar.tick!
4444
45+
weblib = "web/static/assets/lib/@loadingio/css-spinner/dev"
4546
all-css-min = uglifycss.processString(all-css, uglyComments: true)
4647
fs.write-file-sync "dist/index.css", all-css
4748
fs.write-file-sync "dist/index.min.css", all-css-min
4849
fs.write-file-sync "dist/mixin.pug", all-pug
49-
fs-extra.ensure-dir-sync "web/static/assets/lib/css-spinner/dev"
50-
fs.write-file-sync "web/static/assets/lib/css-spinner/dev/index.css", all-css
51-
fs.write-file-sync "web/static/assets/lib/css-spinner/dev/index.min.css", all-css-min
52-
fs.write-file-sync "web/static/assets/lib/css-spinner/dev/mixin.pug", all-pug
50+
fs-extra.ensure-dir-sync weblib
51+
fs.write-file-sync path.join(weblib, "index.css"), all-css
52+
fs.write-file-sync path.join(weblib, "index.min.css"), all-css-min
53+
fs.write-file-sync path.join(weblib, "mixin.pug"), all-pug
54+
fs-extra.remove-sync path.join(weblib, "entries")
55+
fs-extra.copy-sync "dist/entries", path.join(weblib, "entries")
5356
console.log "\nFinished."
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.lds-circle,
2+
.lds-circle div {
3+
box-sizing: border-box;
4+
}
5+
.lds-circle {
6+
display: inline-block;
7+
transform: translateZ(1px);
8+
}
9+
.lds-circle > div {
10+
display: inline-block;
11+
width: 64px;
12+
height: 64px;
13+
margin: 8px;
14+
background: currentColor;
15+
border-radius: 50%;
16+
animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
17+
}
18+
@keyframes lds-circle {
19+
0%, 100% {
20+
animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
21+
}
22+
0% {
23+
transform: rotateY(0deg);
24+
}
25+
50% {
26+
transform: rotateY(1800deg);
27+
animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
28+
}
29+
100% {
30+
transform: rotateY(3600deg);
31+
}
32+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="lds-circle"><div></div></div>

web/static/assets/lib/@loadingio/css-spinner/dev/entries/circle/index.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
.lds-default,
2+
.lds-default div {
3+
box-sizing: border-box;
4+
}
5+
.lds-default {
6+
display: inline-block;
7+
position: relative;
8+
width: 80px;
9+
height: 80px;
10+
}
11+
.lds-default div {
12+
position: absolute;
13+
width: 6.4px;
14+
height: 6.4px;
15+
background: currentColor;
16+
border-radius: 50%;
17+
animation: lds-default 1.2s linear infinite;
18+
}
19+
.lds-default div:nth-child(1) {
20+
animation-delay: 0s;
21+
top: 36.8px;
22+
left: 66.24px;
23+
}
24+
.lds-default div:nth-child(2) {
25+
animation-delay: -0.1s;
26+
top: 22.08px;
27+
left: 62.29579px;
28+
}
29+
.lds-default div:nth-child(3) {
30+
animation-delay: -0.2s;
31+
top: 11.30421px;
32+
left: 51.52px;
33+
}
34+
.lds-default div:nth-child(4) {
35+
animation-delay: -0.3s;
36+
top: 7.36px;
37+
left: 36.8px;
38+
}
39+
.lds-default div:nth-child(5) {
40+
animation-delay: -0.4s;
41+
top: 11.30421px;
42+
left: 22.08px;
43+
}
44+
.lds-default div:nth-child(6) {
45+
animation-delay: -0.5s;
46+
top: 22.08px;
47+
left: 11.30421px;
48+
}
49+
.lds-default div:nth-child(7) {
50+
animation-delay: -0.6s;
51+
top: 36.8px;
52+
left: 7.36px;
53+
}
54+
.lds-default div:nth-child(8) {
55+
animation-delay: -0.7s;
56+
top: 51.52px;
57+
left: 11.30421px;
58+
}
59+
.lds-default div:nth-child(9) {
60+
animation-delay: -0.8s;
61+
top: 62.29579px;
62+
left: 22.08px;
63+
}
64+
.lds-default div:nth-child(10) {
65+
animation-delay: -0.9s;
66+
top: 66.24px;
67+
left: 36.8px;
68+
}
69+
.lds-default div:nth-child(11) {
70+
animation-delay: -1s;
71+
top: 62.29579px;
72+
left: 51.52px;
73+
}
74+
.lds-default div:nth-child(12) {
75+
animation-delay: -1.1s;
76+
top: 51.52px;
77+
left: 62.29579px;
78+
}
79+
@keyframes lds-default {
80+
0%, 20%, 80%, 100% {
81+
transform: scale(1);
82+
}
83+
50% {
84+
transform: scale(1.5);
85+
}
86+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="lds-default"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>

web/static/assets/lib/@loadingio/css-spinner/dev/entries/default/index.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.lds-dual-ring,
2+
.lds-dual-ring:after {
3+
box-sizing: border-box;
4+
}
5+
.lds-dual-ring {
6+
display: inline-block;
7+
width: 80px;
8+
height: 80px;
9+
}
10+
.lds-dual-ring:after {
11+
content: " ";
12+
display: block;
13+
width: 64px;
14+
height: 64px;
15+
margin: 8px;
16+
border-radius: 50%;
17+
border: 6.4px solid currentColor;
18+
border-color: currentColor transparent currentColor transparent;
19+
animation: lds-dual-ring 1.2s linear infinite;
20+
}
21+
@keyframes lds-dual-ring {
22+
0% {
23+
transform: rotate(0deg);
24+
}
25+
100% {
26+
transform: rotate(360deg);
27+
}
28+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="lds-dual-ring"></div>

web/static/assets/lib/@loadingio/css-spinner/dev/entries/dual-ring/index.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)