-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
63 lines (62 loc) · 4.86 KB
/
package.json
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"name": "spromisemespeed",
"version": "1.0.4",
"description": "The JavaScript library that promises you the fastest ES6 promises",
"keywords": [
"javascript",
"promise",
"promises",
"promise-library",
"js",
"es6-promise",
"bluebird",
"javascript-library",
"bluebird-promise",
"promise-api",
"promises-aplus",
"promise-queue",
"promisify",
"promiserejectionevent",
"promise-chain",
"polyfill",
"easy-to-use",
"vanilla-javascript",
"vanilla-js",
"vanillajs"
],
"homepage": "https://github.com/anonyco/SPromiseMeSpeedJS#quick-start",
"bugs": {
"url": "https://github.com/anonyco/SPromiseMeSpeedJS/issues",
"email": "wowzeryest@gmail.com"
},
"scripts": {
"install-dev": "mkdir compiler-latest 2> /dev/null; wget -P ./compiler-latest/ 'https://dl.google.com/closure-compiler/compiler-latest.tar.gz'; unlink ./closure-compiler.jar 2> /dev/null; wget -P ./compiler-latest/ 'https://github.com/google/zopfli/archive/zopfli-1.0.3.tar.gz'; cd compiler-latest; tar xvzf compiler-latest.tar.gz 1> /dev/null; tar xvzf compiler-latest.tar.gz 1> /dev/null; bash -c 'for j in closure-compiler-*; do mv -- \"$j\" \"../closure-compiler.jar\" 1> /dev/null; done' 1> /dev/null 2> /dev/null; cd zopfli-zopfli-1.0.3; make zopfli 1> /dev/null; mv ./zopfli ../../; cd ..; rm -rf compiler-latest 2> /dev/null; chmod +x zopfli; curl -V 1>/dev/null 2>&1 || (echo 'Curl must be installed in order to upload to NPM. Installing...'; if type apk > /dev/null; then sudo apk add --no-cache curl; elif type apt-get > /dev/null; then sudo apt-get install curl; elif type dnf > /dev/null; then sudo dnf install curl; elif type zypper > /dev/null; then sudo zypper install curl; fi ); wait",
"build": "if ! [ -s 'closure-compiler.jar' ]; then npm run install-dev; fi; (npm run build-repo-fast & ); (npm run build-module & ); npm run build-browser; npm run build-gzip; wait; printf '\n'; sleep 0.0625",
"build-browser": "java -Xms32M -Xmx1024M -jar ./closure-compiler.jar --D DEBUGMODE=true --source_map_format V3 --js './src/SPromiseMeSpeed.src.js' --js_output_file './dist/SPromiseMeSpeed.min.js' --create_source_map './dist/SPromiseMeSpeed.min.js.map' --language_out ECMASCRIPT5_STRICT --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper '%output%//AnonyCo\n//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/SPromiseMeSpeed/dist/SPromiseMeSpeed.min.js.map'; sed -i -e 's/\"undefined\"/\"\"+void 0/g' './dist/SPromiseMeSpeed.min.js'",
"build-module": "java -Xms32M -Xmx1024M -jar ./closure-compiler.jar --D DEBUGMODE=true --source_map_format V3 --js './src/SPromiseMeSpeed.src.module.js' --js_output_file ./dist/SPromiseMeSpeed.min.module.js --create_source_map ./dist/SPromiseMeSpeed.min.module.js.map --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper '%output%//AnonyCo\n//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/SPromiseMeSpeed/dist/SPromiseMeSpeed.min.module.js.map' --language_out ECMASCRIPT_2017; sed -i -e 's/window\\.export_/export var /g' './dist/SPromiseMeSpeed.min.module.js'",
"build-es6": "npm run build-module",
"build-gzip": "if [ -f 'zopfli' ]; then cd dist; ../zopfli -i20 SPromiseMeSpeed.min.js; fi",
"build-repo-fast": "if ! [ \"${PWD##*/}\" = 'dist' ]; then cd dist; ln -fsT ../src src; echo 'Please see [spromisemespeed](https://www.npmjs.com/package/spromisemespeed) for usage and details' > README.md; ln -fsT ../LICENSE LICENSE; ln -fsT ../closure-compiler.jar closure-compiler.jar; sed -e 's/\"spromisemespeed\"/\"spromisemespeed-fast\"/; s/--D [D]EBUGMODE=true/--D DEBUGMODE=false/g; s/gh\\/AnonyCo\\/SPromiseMeSpeed/gh\\/AnonyCo\\/SPromiseMeSpeed\\/dist/g' > './package.json' < '../package.json'; mkdir -p dist; npm run build; cd ..; unlink src/src 2> /dev/null; fi; exit 0",
"prepublishOnly": "if [ -f 'dist/package.json' ]; then cd dist || exit 0; npm publish; cd ..; fi",
"publish-pkg-github": "if ! [ \"${PWD##*/}\" = '.pkg.github' ]; then mkdir -p '.pkg.github'; for f in *; do case $f in '..' | '.' | '.pkg.github' | '.git' | 'package.json') ;; *) ln -fs \"../$f\" './.pkg.github/'; esac; done; cd '.pkg.github'; sed -e 's/'\"$(npm config get registry | sed -e 's/[\\/\\r\\n ]*$//; s/\\//\\\\\\//g')\"'/https\\:\\/\\/npm.pkg.github.com/g' > package.json < '../package.json'; for f in *; do if ! [ -e \"../$f\" ]; then rm -f \"$f\"; fi; done; (npm publish & ); cd ..; echo DO STUFF HERE; fi"
},
"license": "CC0-1.0",
"author": {
"name": "Jack Giffin",
"email": "wowzeryest@gmail.com",
"url": "https://jackgiffin.com/"
},
"main": "dist/SPromiseMeSpeed.min.js",
"module": "dist/SPromiseMeSpeed.min.module.js",
"es2015": "dist/SPromiseMeSpeed.min.module.js",
"browser": "dist/SPromiseMeSpeed.min.js",
"repository": {
"type": "git",
"url": "https://github.com/anonyco/SPromiseMeSpeedJS.git"
},
"files": [
"dist/SPromiseMeSpeed.min.js",
"dist/SPromiseMeSpeed.min.module.js"
],
"publishConfig": { "registry": "https://registry.npmjs.org/" }
}