Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/cdnjs/buildScript

🛠 Script for artifacts building ⚙
https://github.com/cdnjs/buildScript

fix nvm import

bc1031250a8a0be670a31c807e011041f11c58f7 authored almost 9 years ago by Peter Dave Hello <[email protected]>
import nvm if it exists

71840bd8eb55e0f776b87ea28914bfade0e01810 authored almost 9 years ago by Peter Dave Hello <[email protected]>
print nvm/nodejs/npm version as info

dea4c3f1acfe8434631feedfc0dafbab9a1c5a43 authored almost 9 years ago by Peter Dave Hello <[email protected]>
fix syntax error caused in 63cf9db

c323c713434409586a6954b03fc472fedf3901a1 authored almost 9 years ago by Peter Dave Hello <[email protected]>
add NVM_BIN to PATH if it exists, fix #36

63cf9dbd132f8b7655e0e70832b1d1364e92976f authored almost 9 years ago by Peter Dave Hello <[email protected]>
print $PATH info

11fa5ae0fdb236f23bb8895daf3ee8617c3b377a authored almost 9 years ago by Peter Dave Hello <[email protected]>
set +e in update-website.sh to prevent bash catch any error

bba046db17f9fac70f0605c6ca59af8efc9a9d68 authored almost 9 years ago by Peter Dave Hello <[email protected]>
support output() without type, normal echo

3e2e988db137f1c5bb855d966d7d86a266800b2a authored about 9 years ago by Peter Dave Hello <[email protected]>
set pth in init()

f985f52d05dd0779bd8e4a372677a65b8a7a7de6 authored about 9 years ago by Peter Dave Hello <[email protected]>
only set -e for bash in build

077f249b642752a6ab78e59895cc2dc02c9a80e4 authored about 9 years ago by Peter Dave Hello <[email protected]>
only run the build process when getting "build"

34d2d7f1a441ee087507e56a8036cc6a1485713b authored about 9 years ago by Peter Dave Hello <[email protected]>
improve setBasePath()

6e4b4ed04d26097bacf00323f8ca3fad988ff0f9 authored about 9 years ago by Peter Dave Hello <[email protected]>
miss to use run() to call git when deploy repo

606dee6ff6d0fd8d324b3dd36f52a0d528d4bce2 authored about 9 years ago by Peter Dave Hello <[email protected]>
use `gsed` but not `sed` for FreeBSD/Mac, fix #21

747dff9d358832eaec84336c997cfce62f05117b authored about 9 years ago by Peter Dave Hello <[email protected]>
Merge branch 'refactor', separate functions out

a3eb5d3706b3ffd4d780f5242fd98e533147d691 authored about 9 years ago by PeterDaveHello <[email protected]>
separate setBasePath() & init() function

a7ab57fe7f711affaef0937b3a8c5462d7fa5742 authored about 9 years ago by PeterDaveHello <[email protected]>
separate main build process into build() function

858e1c9cb44dd16f950158b6719def60410de0db authored about 9 years ago by PeterDaveHello <[email protected]>
make var MSG/exitStatus in error()/run() local

2dd24a876dd988ba66f4004b7ff98703711aff92 authored about 9 years ago by PeterDaveHello <[email protected]>
move nice utility into run()

a0eba86fda8ae2030904a0f7c07956cbafe66910 authored about 9 years ago by PeterDaveHello <[email protected]>
move nice value to var

deac9112c3f24130f5a64d5cf1e322a788c9a876 authored about 9 years ago by PeterDaveHello <[email protected]>
exit 1 on error, fix #15

67db1bedb84f9d9158fa3be77d57eaaf7cf41062 authored about 9 years ago by PeterDaveHello <[email protected]>
specify remote / branch of website reposiroty

7d539f4b868b78bd59788480364c7bd874632325 authored about 9 years ago by PeterDaveHello <[email protected]>
make npm test silent, no need the report here

make vows test silent will make test faster!

With --silent, take about 2.8 secs:
```
$ time npm...

ed941bc8cffe8c5185091b8cb39f3500695f4244 authored about 9 years ago by Peter Dave Hello <[email protected]>
[refactor] no need to use git -C for changed dir

a191b6da1d82ae660e12d845ba5a78a24d990faa authored about 9 years ago by PeterDaveHello <[email protected]>
forgot to use run() to call some git command

ca1c6a8b3f827ae7c8297854846675b0e395cda8 authored about 9 years ago by PeterDaveHello <[email protected]>
adj initial msg/cd order to make sense

0dcf8b282d436f275a31b127fec3d7cf7faa6d22 authored about 9 years ago by PeterDaveHello <[email protected]>
export path->PATH

5443564132528eae2ce98eb2049c03421208bb9b authored about 9 years ago by PeterDaveHello <[email protected]>
add path var for search path in config

8aa1b5d3b4270eeb3991e065e6a3a43c2f54cdc0 authored about 9 years ago by PeterDaveHello <[email protected]>
forgot to use run() to call cd

079bae1006bcdd11eb069e5c7a9da2ce11aaf122 authored about 9 years ago by PeterDaveHello <[email protected]>
use serverOwner var

230f196410b989d3c0f7a8696dc4a89ce88bdbb2 authored about 9 years ago by PeterDaveHello <[email protected]>
ajd ending msg order

011c1f72b83328248771d39b4488a131c63d83f7 authored about 9 years ago by PeterDaveHello <[email protected]>
record working directory path when getting error

close #22

ee62252a2f4a76e16983aae99a3bfe0974898eae authored about 9 years ago by Peter Dave Hello <[email protected]>
only use `timelimit` to call non-built-in command

fix #23

060405de9bbfc7b29ee7e0c176e06d9188fbb774 authored about 9 years ago by PeterDaveHello <[email protected]>
should reset before checkout branch

68541aad074cfebae7b2ddb5efa91cf02233f7a7 authored about 9 years ago by PeterDaveHello <[email protected]>
add timeout support, default=600 secs, close #16

c2bf4856b33739ebc2824f6b545af43560bea4f9 authored about 9 years ago by PeterDaveHello <[email protected]>
update var name in config

add "force" prefix to updateMeta/updateRepo

6773a4b26942554f93445fe7674ed82562fe43b7 authored about 9 years ago by PeterDaveHello <[email protected]>
write callee command to log

ebeb1ce026c3fea9d4864c7eaba069583e8b0f14 authored about 9 years ago by PeterDaveHello <[email protected]>
handle submodule update/initial, fix #14

7c90ab1e04ca49e71e67b0fdc2d8e9c002559f9f authored about 9 years ago by PeterDaveHello <[email protected]>
print repo path when not found

e9ec9201afbb1bdb8e5e1e8a5a684ba2258c261f authored about 9 years ago by PeterDaveHello <[email protected]>
Show total time spent for each build

6ae8f2643876e863903e9a29e26637a40e13362e authored about 9 years ago by PeterDaveHello <[email protected]>
adj repository reset / pull / fetch order

1ec9d8a4a369a843bd1183727ca4a8b9182ec695 authored about 9 years ago by Peter Dave Hello <[email protected]>
add new file GitHub.repos.meta.json in artifacts

21f6a8de5f4b4371268cf25387bf4b99e0077676 authored about 9 years ago by Peter Dave Hello <[email protected]>
Update readme.md

7130997d3b9bba2660330ee5b997e96ca498f578 authored about 9 years ago by Peter Dave Hello <[email protected]>
should reset website repo before building artifact

2c318afaf414be101dd89b8850664692787c3a4c authored about 9 years ago by Peter Dave Hello <[email protected]>
do npm update after npm install

If there is a package already been installed and matched its version requirement,
then `npm inst...

9abf1def0bf583534d4bc7bff623720542be125e authored about 9 years ago by Peter Dave Hello <[email protected]>
fix typo caused syntax error

11ac084bec539a60dcfd5e14c8fe1bce13430bda authored over 9 years ago by Peter Dave Hello <[email protected]>
show start and end datetime locally

b7e946bb690229b8de26c68a432ebde3fca30ba7 authored over 9 years ago by Peter Dave Hello <[email protected]>
update npm install behavior

always do `npm install` no matter pulled new commits or not

6dfd95bbd0e2b214fd1fc043b980f0efac4d47ec authored over 9 years ago by Peter Dave Hello <[email protected]>
update meta branch rebase behavior

always rebase with master no matter pulled new commits or not

8ce024e7c352024cebb52e0f73e78ff30b99e681 authored over 9 years ago by Peter Dave Hello <[email protected]>
reset repo before pull, cc cdnjs/cdnjs#5564

1bf2aa5eeb4510d41f17d46ba4b30a0d47ca3f30 authored over 9 years ago by Peter Dave Hello <[email protected]>
set finish message to "Success" level

9abd4a5cd1032f142e386ee302ad6bb5600bc5f0 authored over 9 years ago by Peter Dave Hello <[email protected]>
fix message/log level, close #8

5dce8c0625e0eae75fb4dbf47fa09b1fef19c352 authored over 9 years ago by Peter Dave Hello <[email protected]>
run npm test before building the meta data/artifacts

8f20e6059b900fc8c152a1474c790992bd5ae378 authored over 9 years ago by Peter Dave Hello <[email protected]>
add $logPath to save logfile at custom path, cc #6

0b1a8f437aac77349117d7af38bb8aff9e0b844d authored over 9 years ago by Peter Dave Hello <[email protected]>
add $logMode to decide clean the log or not, cc #6

ff1c0c0be8c7556ba92c82e28318b832d3c27453 authored over 9 years ago by Peter Dave Hello <[email protected]>
apply run() for npm

7fceb20b05acf57b7d8bde5b6d1eff512085739a authored over 9 years ago by Peter Dave Hello <[email protected]>
use "run()" to handle general cmds with error msg

For the commands non-specified general error message, we now use the new function "run()" to han...

aeff92f283a18f5f85b68840378ba3773adbe754 authored over 9 years ago by Peter Dave Hello <[email protected]>
[refactor] separate "error()" to handle error msg

cc723ead0565d6f7a68955c3255ae088fec850c0 authored over 9 years ago by Peter Dave Hello <[email protected]>
add datetime mark in logfile, cc #6

616ca401cddfb87eaa84bc5b7e11167b79219557 authored over 9 years ago by Peter Dave Hello <[email protected]>
add $pth (path) prefix for logfile, fix #4

Without the fix, the logfile may be put at different places due to changing directories during t...

71fb66fda287d193118775f2bb2fca4ed2ed0614 authored over 9 years ago by Peter Dave Hello <[email protected]>
Revert "remove duplicated redirection. curl has "--silent""

This reverts commit 75584e7e9981b1d03e37271e913f3873cd909f6d.

We still need that redirection to...

0937056d7bf5f71500c903cb09b18c1fc0672d28 authored over 9 years ago by Peter Dave Hello <[email protected]>
Prevent curl break the whole build process, fix #5

If curl failed, just print the error message locally.

Reference about the `||` syntax:
https://...

0917168f9df78f9bd0dadc6170ac387e61bbe130 authored over 9 years ago by Peter Dave Hello <[email protected]>
remove duplicated redirection. curl has "--silent"

75584e7e9981b1d03e37271e913f3873cd909f6d authored over 9 years ago by Peter Dave Hello <[email protected]>
mention/tag team intern and team-cdnjs when getting error

8038013864e314a9d0afb93cac2bf06e5edcbe35 authored over 9 years ago by Peter Dave Hello <[email protected]>
add notes about the automatically openned ticket

205356c8036924e37584efb907b828d03acda52b authored over 9 years ago by Peter Dave Hello <[email protected]>
adj issueTemplate

861f8c3b5a4a763418faf6c0795bf41b0aa37367 authored over 9 years ago by Peter Dave Hello <[email protected]>
fix the url of website and api repo, not point to the main repo

31840101074a8517ed8dff3bf5a112e66e7ddc4f authored over 9 years ago by Peter Dave Hello <[email protected]>
adj the part of algolia reindex

f6eff5772b6c001f6fd48ffce59fab846015cd0c authored over 9 years ago by Peter Dave Hello <[email protected]>
fix 42658805b5 / #3, default not push "meta"

9777912382c018ec0378c3b0f704c2bb5a7af0b5 authored over 9 years ago by Peter Dave Hello <[email protected]>
default not push "meta" branch on GitHub

This build script is now stable enough, and has error detection mechanism,
there is no need to k...

42658805b5e94b14de22292cf1e4e9d3ad9dcbc8 authored over 9 years ago by Peter Dave Hello <[email protected]>
do not hide output from update-website.sh in build.sh

3304070c42772eaf553551e78c6ebf44576f7a46 authored over 9 years ago by Peter Dave Hello <[email protected]>
forgot to push to GitHub(origin) when update website only

b89e92aaa3a695a7ccf0dd17283fed86933f7797 authored over 9 years ago by Peter Dave Hello <[email protected]>
set nice to 15 in build.sh for cronjob

fe2d331ca6ad58cd3b5093f047ee56ce84997724 authored over 9 years ago by Peter Dave Hello <[email protected]>
add comment in build.sh

2f9faf0196affde9b06b7e560bade26701a024ef authored over 9 years ago by Peter Dave Hello <[email protected]>
redirect output to /dev/null

319bcd1001e2d3e673f61c5b090ea21139116f59 authored over 9 years ago by Peter Dave Hello <[email protected]>
should add force option for rm

bc55c949742d2c13d24b4a9a13685e2fb2eff271 authored over 9 years ago by Peter Dave Hello <[email protected]>
fix path issue

643172b4a1a9812a4b1eaf15c2f529ec7b53e0e3 authored over 9 years ago by Peter Dave Hello <[email protected]>
write log

e8a51a54be41215b2f7922b1fcc2e6a22b4ef124 authored over 9 years ago by Peter Dave Hello <[email protected]>
update readme.md

63d458068c2abb4520ed6cbc7135396c16899492 authored over 9 years ago by Peter Dave Hello <[email protected]>
[refactor] use new function output to integrate output

Including console output and message to gitter.im

09801a9ea239d8d6b456c0d9c2d6b4084f6b640a authored over 9 years ago by Peter Dave Hello <[email protected]>
forgot to send msg to gitter while install npm pkg

36cb2ebf0375cd13e56d064b67ec657cef149370 authored over 9 years ago by Peter Dave Hello <[email protected]>
open issue on GitHub if got error

cb9b8e0a1008200474e4b9111243f908d12d240b authored over 9 years ago by Peter Dave Hello <[email protected]>
exit 1 when failed

a13d6af1ae738a75a8d146dcddd2c71e9f0883bd authored over 9 years ago by Peter Dave Hello <[email protected]>
separate configs into config.sh

2370550654182d32fb74f24c11dceadbf7d00bcf authored over 9 years ago by Peter Dave Hello <[email protected]>
use env to determine bash path

fb467a4a908fdbba2c9189fecdce38fc6bdb52fa authored over 9 years ago by Peter Dave Hello <[email protected]>
set e for shell, exit immediately when getting error

a25192e9c99d2d948017924059984cd2946290b3 authored over 9 years ago by Peter Dave Hello <[email protected]>
do npm install if need

6676d452ea5509e8474541b1b53f40e68984484c authored over 9 years ago by Peter Dave Hello <[email protected]>
update colorEcho

c0735e3857fec10e427bfe044f43af38ebf6ccbe authored over 9 years ago by Peter Dave Hello <[email protected]>
use colorEcho as submodule

2aee9ba5da70cf3556bb14c2ec70f50df0597c89 authored over 9 years ago by Peter Dave Hello <[email protected]>
change website push order

45601d8537022198ba2f4b04bb84a3a8192c4f00 authored over 9 years ago by Peter Dave Hello <[email protected]>
also send msg to gitter when meta need to rebase on master

4bb9e2733c12b5f5771b8e0e25b68d74dbef1240 authored over 9 years ago by Peter Dave Hello <[email protected]>
add finished msg

239ed82d4328be1a1df4aa84be41ad8f00733d7f authored over 9 years ago by Peter Dave Hello <[email protected]>
fix wrong condition on api key checking, caused in 3125ff36

148a56bb15890b732690129721fd111d0b125e48 authored over 9 years ago by Peter Dave Hello <[email protected]>
hide curl output

4aeb8ea4ef43588d032c654b358ee2a7da71f56e authored over 9 years ago by Peter Dave Hello <[email protected]>
add prefix wording for gitter webhook

a2183da8e9aa333c4516a49a72589c4c4b3705c2 authored over 9 years ago by Peter Dave Hello <[email protected]>
update wording

3ca7d1e9944a8793ca648b0a083b4dd29b68d494 authored over 9 years ago by Peter Dave Hello <[email protected]>
also send msg to gitter when website no need to update

d2afdd071131ed948918ccb7a6bae0e08be2a552 authored over 9 years ago by Peter Dave Hello <[email protected]>
update wording

dce66d98ff461da22e6af9145e4b69acdc6e56c6 authored over 9 years ago by Peter Dave Hello <[email protected]>
silent curl

f40faef88dc1961169fd3491a9659e8c58315135 authored over 9 years ago by Peter Dave Hello <[email protected]>
fix syntax for string

c0094225a480ef1305649da0d68c268025fe0b41 authored over 9 years ago by Peter Dave Hello <[email protected]>