-
Notifications
You must be signed in to change notification settings - Fork 149
/
package.ls
executable file
·48 lines (48 loc) · 2.12 KB
/
package.ls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env lsc -cj
name: \webworker-threads
version: \0.8.0
main: \index.js
description: 'Lightweight Web Worker API implementation with native threads'
keywords: [ 'threads' 'web worker' 'a gogo' ]
author:
name: 'Audrey Tang'
email: \[email protected]
twitter: \audreyt
homepage: \https://github.com/audreyt/node-webworker-threads
bugs:
url: \http://github.com/audreyt/node-webworker-threads/issues
email: \[email protected]
license: "(MIT AND Apache-2.0)"
licenses: [
{ type: "Apache License, Version 2.0", url: "http://www.apache.org/licenses/LICENSE-2.0" }
{ type: 'MIT', url: "file:LICENSE" }
]
repository:
type: \git
url: \http://github.com/audreyt/node-webworker-threads.git
scripts:
# prepublish: 'env PATH=./node_modules/.bin:"$PATH" lsc -cj package.ls'
js: """
env PATH=./node_modules/.bin:"$PATH" lsc -cj package.ls;
gcc deps/minifier/src/minify.c -o deps/minifier/bin/minify;
env PATH=./node_modules/.bin:"$PATH" lsc -cbp src/worker.ls > src/worker.js;
./deps/minifier/bin/minify kWorker_js < src/worker.js > src/worker.js.c;
env PATH=./node_modules/.bin:"$PATH" lsc -cbp src/events.ls > src/events.js;
./deps/minifier/bin/minify kEvents_js < src/events.js > src/events.js.c;
env PATH=./node_modules/.bin:"$PATH" lsc -cbp src/createPool.ls > src/createPool.js;
./deps/minifier/bin/minify kCreatePool_js < src/createPool.js > src/createPool.js.c;
env PATH=./node_modules/.bin:"$PATH" lsc -cbp src/thread_nextTick.ls > src/thread_nextTick.js;
./deps/minifier/bin/minify kThread_nextTick_js 1 < src/thread_nextTick.js > src/thread_nextTick.js.c;
env PATH=./node_modules/.bin:"$PATH" lsc -cbp src/load.ls > src/load.js;
./deps/minifier/bin/minify kLoad_js 1 1 < src/load.js > src/load.js.c;
"""
pretest: 'npm run js && node-gyp rebuild'
test: './run-all-tests.sh'
dependencies:
bindings: \^1.3.0
nan: \^2.12.1
dev-dependencies:
livescript: \^1.6.0
tap: \^5.7.1
gypfile: true
engines: { node: '>= 0.10.16' }