Skip to content

Instantly share code, notes, and snippets.

build:
image: itkaboom/drone-nodejs
commands:
- source ~/.nvm/nvm.sh && nvm use v4.2
- npm --version
- npm install --loglevel verbose --global --unsafe-perm 'gulp@3.9.0' jspm babel babel-core systemjs browser-sync
- jspm config registries.github.auth '$$JSPM_GITHUB_AUTH_TOKEN'
- npm install --production --unsafe-perm
- gulp release
environment:
[info] Pulling image plugins/drone-git:latest
Drone Git Plugin built from 8be7aa9
$ git init
Initialized empty Git repository in /drone/src/bitbucket.org/kepkin/imigo-front-test-drone/.git/
$ git remote add origin https://bitbucket.org/kepkin/imigo-front-test-drone.git
$ git fetch --no-tags --depth=50 origin +refs/heads/drone_build:
From https://bitbucket.org/kepkin/imigo-front-test-drone
* branch drone_build -> FETCH_HEAD
* [new branch] drone_build -> origin/drone_build
$ git reset --hard -q b38eb9b6de13d86efd97b19152390362a6e0627c
@kepkin
kepkin / cygwin_trick.sh
Created August 6, 2015 09:14
bash trick to transform cygwin paths
ARGS=()
if [ "$(uname -o)" == "Cygwin" ]; then
for arg in "$@"
do
if [ "${arg:0:1}" == "/" ]; then
arg=$(cygpath -w $arg)
fi
ARGS+=($arg)
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);