forked from audreyt/node-webworker-threads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.ls
executable file
·47 lines (47 loc) · 2.07 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
#!/usr/bin/env lsc -cj
name: \webworker-threads
version: \0.6.2
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;
"""
test: 'tap test-package.js'
dependencies:
bindings: \1.2.x
nan: \2.1.x
dev-dependencies:
LiveScript: \1.3.x
tap: \2.1.x
gypfile: true
engines: { node: '>= 0.10.16' }