Skip to content

Commit

Permalink
add whiggle setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikstoetter committed Jul 5, 2018
0 parents commit 87b7871
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "whigglejs",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"start": "node ./src/index.js"
},
"dependencies": {
"sleep": "^5.1.1"
}
}
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const whiggle = require('./whiggle')
const { msleep } = require('sleep');

while(true) {
whiggle.map(line => {
console.log(line)
msleep(20)
})
}
19 changes: 19 additions & 0 deletions src/whiggle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = [
'WIGGLE WIGGLE',
'WIGGLE WIGGLE',
' WIGGLE WIGGLE',
' WIGGLE WIGGLE',
' WIGGLE WIGGLE',
' WIGGLE WIGGLE',
' WIGGLE WIGGLE',
' WIGGLE WIGGLE',
' WIGGLE WIGGLE',
' WIGGLE WIGGLE',
' WIGGLE WIGGLE',
' WIGGLE WIGGLE',
' WIGGLE WIGGLE',
' WIGGLE WIGGLE',
' WIGGLE WIGGLE',
'WIGGLE WIGGLE',
'WIGGLE WIGGLE',
]
44 changes: 44 additions & 0 deletions yarn-error.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Arguments:
/usr/local/bin/node /usr/local/Cellar/yarn/1.6.0/libexec/bin/yarn.js start

PATH:
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Applications/Wireshark.app/Contents/MacOS

Yarn version:
1.6.0

Node version:
8.6.0

Platform:
darwin x64

Trace:
SyntaxError: /Volumes/Workspace/whigglejs/package.json: Unexpected token   in JSON at position 101
at JSON.parse (<anonymous>)
at /usr/local/Cellar/yarn/1.6.0/libexec/lib/cli.js:1130:59
at Generator.next (<anonymous>)
at step (/usr/local/Cellar/yarn/1.6.0/libexec/lib/cli.js:98:30)
at /usr/local/Cellar/yarn/1.6.0/libexec/lib/cli.js:109:13
at <anonymous>

npm manifest:
{
"name": "whigglejs",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"start": ""
},
"dependencies": {
"sleep": "^5.1.1"
}
}

yarn manifest:
No manifest

Lockfile:
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


nan@>=2.5.1:
version "2.10.0"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f"

sleep@^5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/sleep/-/sleep-5.1.1.tgz#878fa1d44d08eeb0f26fb2018ef8629eb1a3ab94"
dependencies:
nan ">=2.5.1"

0 comments on commit 87b7871

Please sign in to comment.