Skip to content

Commit

Permalink
upgrade externs, fix @, install nodjes + externs
Browse files Browse the repository at this point in the history
  • Loading branch information
zavr-1 committed Jul 16, 2019
1 parent 14f0d38 commit 8fca0e1
Show file tree
Hide file tree
Showing 11 changed files with 396 additions and 360 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 16 July 2019

### [0.0.2](https://github.com/dpck/depack/compare/v0.0.1-alpha...v0.0.2)

- [docs] Fix `@` to `` in types.

## 1 November 2018

### 1.0.0
Expand Down
8 changes: 0 additions & 8 deletions build/depack.js.map

This file was deleted.

File renamed without changes.
577 changes: 301 additions & 276 deletions build/depack.js → compile/depack.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions compile/depack.js.map

Large diffs are not rendered by default.

Empty file added compile/index.js
Empty file.
27 changes: 15 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "depack",
"version": "0.0.1-alpha",
"description": "Front-End Code and Node.js Package Bundler With Google Closure Compiler.",
"main": "build",
"main": "compile/index.js",
"scripts": {
"t": "zoroaster -a -t 60000",
"test": "yarn t test/spec test/mask",
Expand All @@ -12,21 +12,21 @@
"lint": "eslint .",
"dev": "node src",
"doc": "NODE_DEBUG=doc doc -o README.md",
"b": "GOOGLE_CLOSURE_COMPILER=/Volumes/backup/closure-compiler/target/closure-compiler-1.0-SNAPSHOT.jar yarn dev src/depack.js -c -o build -a -p -s",
"depack": "GOOGLE_CLOSURE_COMPILER=/Volumes/backup/closure-compiler/target/closure-compiler-1.0-SNAPSHOT.jar build/depack.js src/depack -c -o build -a -p -s",
"compile": "yarn dev src/depack -c -o compile -a -p -s",
"depack": "compile/depack.js src/depack -c -o build -a -p -s",
"build": "yarn-s d b doc",
"rec": "NODE_DEBUG=appshot appshot -T 23 -a Terminal -y 150 -f",
"e": "node example",
"example/": "yarn e example/example.js",
"args": "argufy types/arguments/index.xml types/arguments/bundle.xml types/arguments/compile.xml -o src/get-args.js"
"args": "argufy types/arguments/*.xml -o src/get-args.js"
},
"files": [
"build",
"compile",
"externs",
"preact"
],
"bin": {
"depack": "build/depack.js",
"depack": "compile/depack.js",
"depack-dev": "src/index.js"
},
"repository": {
Expand All @@ -49,14 +49,14 @@
},
"homepage": "https://github.com/dpck/depack#readme",
"devDependencies": {
"@a-la/fixture-babel": "^1.1.1",
"@a-la/fixture-babel": "^1.2.2",
"@a-la/jsx": "^1.6.0",
"@depack/depack": "^1.3.1",
"alamode": "^2.2.0",
"argufy": "^1.7.0",
"@depack/depack": "^1.3.2",
"alamode": "^2.3.4",
"argufy": "^1.7.1",
"catchment": "^3.3.0",
"clearr": "^1.0.0",
"documentary": "^1.27.2",
"documentary": "^1.27.4",
"erte": "^1.2.0",
"eslint-config-artdeco": "1.0.1",
"indicatrix": "^1.2.0",
Expand All @@ -70,5 +70,8 @@
"peerDependencies": {
"google-closure-compiler-java": "*"
},
"dependencies": {}
"dependencies": {
"@depack/externs": "^1.4.3",
"@depack/nodejs": "^1.1.3"
}
}
4 changes: 2 additions & 2 deletions src/depack.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ const restorePreact = () => {
process.on('SIGTERM', () => {})
process.on('beforeExit', restorePreact)

const rl = createInterface({
const rl = createInterface(/** @type {!readline.ReadLineOptions} */({
input: process.stdin,
output: process.stdout,
})
}))
rl.question('Press enter to continue', () => {
rl.close()
})
Expand Down
6 changes: 3 additions & 3 deletions src/get-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const argsConfigBundle = {
short: 'H',
},
'external': {
description: 'The `preact` dependency in `node_modules` will be temprorary\nrenamed to `_preact`, and a monkey-patching package that\nimports `@externs/preact` will take its place. This is to allow\nbundles to import from _Preact_ installed as a script on a webpage,\nbut exclude it from compilation. `preact` will be restored at the end.',
description: 'The `preact` dependency in `node_modules` will be temporary\nrenamed to `_preact`, and a monkey-patching package that\nimports `externs/preact` will take its place. This is to allow\nbundles to import from _Preact_ installed as a script on a webpage,\nbut exclude it from compilation. `preact` will be restored at the end.',
boolean: true,
short: 'E',
},
Expand Down Expand Up @@ -179,9 +179,9 @@ export const _temp = /** @type {string} */ (argsBundle['temp'] || 'depack-temp')
export const _preact = /** @type {boolean} */ (argsBundle['preact'])

/**
* The `preact` dependency in `node_modules` will be temprorary
* The `preact` dependency in `node_modules` will be temporary
renamed to `_preact`, and a monkey-patching package that
imports `@externs/preact` will take its place. This is to allow
imports `externs/preact` will take its place. This is to allow
bundles to import from _Preact_ installed as a script on a webpage,
but exclude it from compilation. `preact` will be restored at the end.
*/
Expand Down
4 changes: 2 additions & 2 deletions types/arguments/bundle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
e.g., with ÀLaMode transpiler.
</arg>
<arg boolean name="external" short="E">
The `preact` dependency in `node_modules` will be temprorary
The `preact` dependency in `node_modules` will be temporary
renamed to `_preact`, and a monkey-patching package that
imports `@externs/preact` will take its place. This is to allow
imports `externs/preact` will take its place. This is to allow
bundles to import from _Preact_ installed as a script on a webpage,
but exclude it from compilation. `preact` will be restored at the end.
</arg>
Expand Down
116 changes: 59 additions & 57 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
resolved "https://registry.yarnpkg.com/@a-la/detect-jsx/-/detect-jsx-1.0.1.tgz#ef36b5f3c129e0901d5752a86999a9910f6b5e7a"
integrity sha512-ZxWfYmzeFt0CUDylMM8ZiZwSDOrZHyDnf5iVkimZKOfB5VwNEhC52NZCv5zctMFI2y3H4+jsePq6fXHc46FrFw==

"@a-la/fixture-babel@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@a-la/fixture-babel/-/fixture-babel-1.1.1.tgz#16bf577cd471ba3c71ae63b98451a7249a4c484d"
integrity sha512-av2Wjs6T2uTEqnmLcTJuxqIwDT1B0MAi987UoIM4z53wXKYt+RPl+C7hd5J9vFXrgZy5fdA2fIAnPZlestDV1g==
"@a-la/fixture-babel@^1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@a-la/fixture-babel/-/fixture-babel-1.2.2.tgz#c7951f1ea879c1425d64f9865e770ad5c2c522f9"
integrity sha512-kDML6Je15hi+RaPcfNEExNbfmuXK1zXnwfy8xE/EOW9oLqEqVlrxiRgbR9AiW7h8Vn+iBzMKbSgtcEDyoAOyKg==

"@a-la/jsx@^1.6.0":
version "1.6.0"
Expand Down Expand Up @@ -50,13 +50,13 @@
resolve-dependency "^1.0.2"
static-analysis "^1.3.3"

"@depack/depack@^1.3.1":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@depack/depack/-/depack-1.3.1.tgz#028472ab3ed5dd64c4acc27f8feb70718e7063de"
integrity sha512-tHZ4IV8+z2A2ZC5sDDnCOOJslhbnRZ1XQyfuMI4ZHi0gAwuzx/6o0GKKwOEdTx8MY8GZX/AMC46T3lgpdcRHIA==
"@depack/depack@^1.3.2":
version "1.3.2"
resolved "https://registry.yarnpkg.com/@depack/depack/-/depack-1.3.2.tgz#b6d1b48a597b915923c2262d1322998d2fa4a530"
integrity sha512-Es06UFF9UwNzqdbSvN5Tsl7L0oDGk2eZKpO3y5l01oVFLzftgrEN/56RBrkmj9oVdUmpMzghQOcyHv0WCHRCXg==
dependencies:
"@depack/bundle" "^1.1.1"
"@depack/externs" "^1.4.1"
"@depack/externs" "^1.4.2"
"@depack/nodejs" "^1.1.3"
"@wrote/wrote" "^1.2.3"
erte "^1.2.0"
Expand All @@ -73,20 +73,20 @@
dependencies:
mismatch "^1.2.0"

"@depack/externs@^1.4.1":
version "1.4.1"
resolved "https://registry.yarnpkg.com/@depack/externs/-/externs-1.4.1.tgz#7770a5e617633cec9558335e6977d72204ad83dd"
integrity sha512-8Ok8i5r8Z50W8/AwAh9SrVoK6idiZD2/ZvEuY+0THcZv6qYSgwAvcRvNwJf9kB+uyUOrkrAW8ZX2ABInqw2eow==
"@depack/externs@^1.4.2", "@depack/externs@^1.4.3":
version "1.4.3"
resolved "https://registry.yarnpkg.com/@depack/externs/-/externs-1.4.3.tgz#ee9bd8b7219ddf557b9737cf4162268190bd25e5"
integrity sha512-rfnRgW1G8CN9+yXM5tjuiyBqSHLQLEhIRZlWg//2c3nA7McHYnQ4VeAQ037lHBpHlTrYDM3apz0Gj4Cyjeay5w==

"@depack/nodejs@^1.1.3":
version "1.1.3"
resolved "https://registry.yarnpkg.com/@depack/nodejs/-/nodejs-1.1.3.tgz#13fe2c6c9d8ebe459ba6c3a1169a9e4791d6ca21"
integrity sha512-KXVqVr3iPM4ktKGk69Uhww3Jrr3YJBp7B0xovLVWU5MCdnMO3NMxeVodImNb+tv6pwy4lsvPvHiyoWY78uPvUg==

"@depack/render@^1.1.4":
version "1.1.4"
resolved "https://registry.yarnpkg.com/@depack/render/-/render-1.1.4.tgz#8586d55f60502c8bfae7bbb0bd0a0513670fbcbd"
integrity sha512-/dotKRTngUMOZpVwZvdMYZz6NID6fJENTaG1sa14UbAS3bleGa7OeXie5468Huw/NRZcGPf/390ndegXbdNSpA==
"@depack/render@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@depack/render/-/render-1.2.0.tgz#014fb920195f207f2697d1533616faf46988a228"
integrity sha512-XfegLkYLxXBJLTZ4brXsU51tKFv8l1cuF4RGMYpnS48pXC+AUYw99kbws0/gbCNyFy3/H23rDSCHakVvh49zug==

"@depack/split@^1.0.0":
version "1.0.0"
Expand All @@ -108,9 +108,9 @@
makepromise "^3.1.0"

"@wrote/ensure-path@^1.0.6", "@wrote/ensure-path@^1.0.8":
version "1.0.8"
resolved "https://registry.yarnpkg.com/@wrote/ensure-path/-/ensure-path-1.0.8.tgz#68b985c851948dc5094f1019d0b0a979ccf585e9"
integrity sha512-IlK31uEKPlCTLG9E4WRWW6KqgF6LHOQ6erxdwycIc63Aa/6GwrJZG8mgxebOsPbTkcFyXxfiGzbb5eOZYyq2rA==
version "1.1.0"
resolved "https://registry.yarnpkg.com/@wrote/ensure-path/-/ensure-path-1.1.0.tgz#2b5875dd4e215f209329c9c774702e4e67c3e07f"
integrity sha512-yZigiFQhgAMAVrec9BoPdJzqjSBdHuCyDrAacWSHIUByxiMcmY9i/1dGM4RbGZg/bN8XWrxDDmcWLuPUmsJYFg==
dependencies:
makepromise "^3.1.0"

Expand Down Expand Up @@ -172,15 +172,15 @@
resolved "https://registry.yarnpkg.com/@zoroaster/mask/-/mask-2.2.0.tgz#fecdcb6f863440519b91b51f09549b1e981e84da"
integrity sha512-/k9B/ofxE4x9Vs6EOjXQjcsltraJzNLg/uxEwzfCZUN+foiJxK/j+YBiyJmN3Gwpnry2D3Qs0D3Qm+SMkLqkTg==

alamode@^2.1.2, alamode@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/alamode/-/alamode-2.2.0.tgz#723f81246b19c966b3b819fcff6debb39228dbd2"
integrity sha512-+TLcQ4iKjs7zIUBzuchPlhna3TS2XAz2Lk2NMsSfnI/XrnUfSAUKyk67Wbaf9+hQ4wSxXguIrbBC/VV/vhE5Vg==
alamode@^2.1.2, alamode@^2.3.4:
version "2.3.4"
resolved "https://registry.yarnpkg.com/alamode/-/alamode-2.3.4.tgz#b5c12e17458b38ba7611c6539cbf23fb59ce6ded"
integrity sha512-fQSQU0zW1kDGH5d/BmJq74UIpkGmpnh9mqoQVArkBJ04AbVUpkETrHqXENtNmxDWp0HNwI5HHE70YVNchpkkdg==

argufy@^1.7.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/argufy/-/argufy-1.7.0.tgz#189109155b6200c283350b1c23dbeee2a7519f7b"
integrity sha512-iK7Nx5wv4XXbid/udPVu54EN6pA8w1RqkPp6NOZqBB/8cmpaxdjuWszw8VpPYQN6WWqAXJuLMNXZHEgFTvm0eA==
argufy@^1.7.0, argufy@^1.7.1:
version "1.7.1"
resolved "https://registry.yarnpkg.com/argufy/-/argufy-1.7.1.tgz#9ce00778d9d404e083c5e5dd0ac1677c950d4d4b"
integrity sha512-xsy9ooVGfFn0V2J7IbsCPg5Hx6Qw93jnBMl/I35qt9lRS+53ioLdAOvStYSdI6sdCCTnrw1fZFR5m16FIcfPCg==

catchment@^1.0.0:
version "1.0.0"
Expand All @@ -200,41 +200,41 @@ clearr@^1.0.0:
resolved "https://registry.yarnpkg.com/clearr/-/clearr-1.0.0.tgz#47f2a0a24aa910ef6b54e998732b825e3b4f90a0"
integrity sha512-OaDCLwxycJoODRWeNZT2j152jBp59wND+N+WkgkO3UhZM4cGXWwqPNUA1xmZXeKpt9pjdRcsn8L+mw0SZJ/wWg==

competent@^1.1.1:
version "1.3.1"
resolved "https://registry.yarnpkg.com/competent/-/competent-1.3.1.tgz#024976f83588b235ab42da1884325c4e4a087ccc"
integrity sha512-Aaz8KdxLzTcs5F1ClKwv++0GoEuT0VOOiSec7DgicGFu/He0oq5CdJbfV9Tf7MVQbJGAm0g9WRcSm1O5T9reUA==
competent@^1.7.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/competent/-/competent-1.7.0.tgz#8b4cb4eb0270a14522c87b99ce3da7eb9f5a3090"
integrity sha512-eBUa5bPNHCGg2O1naPqFIYB5r2N1bJ+CjINztlHw1BGN3xAXEcVW9bw3Fp8oWhlQEKkyGlWk+3yPh72pv9fPGg==
dependencies:
"@depack/render" "^1.1.4"
"@depack/render" "^1.2.0"
restream "^3.7.1"
rexml "^1.4.0"
rexml "^2.0.0"

documentary@^1.27.2:
version "1.27.2"
resolved "https://registry.yarnpkg.com/documentary/-/documentary-1.27.2.tgz#ca21678cd9a0923ea0e932520d96aa73a95efb89"
integrity sha512-N763hqO638BL++KXxKJXZs4W3TXthkOE5BW9DBhWFMJG65Oas7bHBWhsAXMwx78+oHMS3GoDJR+1q+73BUV9sA==
documentary@^1.27.4:
version "1.27.4"
resolved "https://registry.yarnpkg.com/documentary/-/documentary-1.27.4.tgz#5dcf9b6e75c4e142e4bc1e867799a940ce07418e"
integrity sha512-Z5g3T8xWTsmmqxmt0XwREcOc6LCpnJP/cb5UjhrATIDu+exd+LUHll2ZuxsT1ZxKa9awpbe5Yh05BPhOKZs2Aw==
dependencies:
"@depack/cache" "^1.0.0"
"@depack/render" "^1.1.4"
"@depack/render" "^1.2.0"
"@wrote/clone" "^1.2.1"
"@wrote/ensure-path" "^1.0.8"
"@wrote/write" "^1.0.4"
alamode "^2.1.2"
alamode "^2.3.4"
argufy "^1.7.0"
catchment "^3.3.0"
clearr "^1.0.0"
competent "^1.1.1"
competent "^1.7.0"
erte "^1.2.0"
makepromise "^3.1.0"
mismatch "^1.2.0"
pedantry "^2.3.2"
pedantry "^2.4.0"
preact "8.4.2"
resolve-dependency "^1.0.3"
restream "^3.7.1"
rexml "^1.4.0"
rexml "^2.0.2"
spawncommand "^2.2.0"
static-analysis "^1.7.1"
typal "^1.12.0"
typal "^1.14.0"
usually "^1.2.0"
which-stream "^1.1.0"

Expand Down Expand Up @@ -293,10 +293,10 @@ paddys@^1.2.0:
resolved "https://registry.yarnpkg.com/paddys/-/paddys-1.2.0.tgz#984d61e0e7d96cc4c49fb5b5cfd6c9b7c080161d"
integrity sha512-wVss/tiodStz+HYquccKuE0T3IzxF4bXONeu4N9Goy5j++9MT07Aqe+I/vrjZG6z58HMjKr1R6QYtjXUs9+kug==

pedantry@^2.3.1, pedantry@^2.3.2:
version "2.3.2"
resolved "https://registry.yarnpkg.com/pedantry/-/pedantry-2.3.2.tgz#d31f36e360a466f49a19384b726ba2e7a8bc79b4"
integrity sha512-dx7nkmHTD/n2jVZmcZ9ciN5nUY2Kei9ZzW7QSSvkpjiuYRJa3Z0hAbKbSF63I9zfyUWJPqJQe8cdH6U99Tx6rw==
pedantry@^2.3.1, pedantry@^2.4.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/pedantry/-/pedantry-2.4.0.tgz#40cd31594b6f08002556abcdb443ec6dd928b4ff"
integrity sha512-2AT5X23SdcMihajUdUo7AAvFXT+iRGT5o0JH3Wv3yQ1RtRku+zzXtvJ2ox3R1/9pDyq2NR0QHnMAbJf1hLY0rg==
dependencies:
"@wrote/read-dir-structure" "^1.2.0"

Expand All @@ -320,10 +320,12 @@ restream@^3.7.1:
"@artdeco/clean-stack" "^1.1.1"
catchment "^3.3.0"

rexml@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/rexml/-/rexml-1.4.0.tgz#64368db531b4e86acf1a3e69a4cbbed94acc5232"
integrity sha512-Pl2ZBXcHiIXBKMBJZp141jlfekTCgKVsMSw0NJ8QYYxAV6p3mXUC9DvGI5tUW3GqWr27ieGiAuZTBm8sqsX96w==
rexml@^2.0.0, rexml@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/rexml/-/rexml-2.0.2.tgz#e1e6b04aab7d26c72f5f732887c1d6abf0a1d92b"
integrity sha512-dfMmsI2M5x0xZdT9FhOieHcajXvcGrT9/RRkg/RvWUm055+srQoGuBJwhEYYeBe+zygmtN33lS5hGnxaqwCT4g==
dependencies:
mismatch "^1.2.0"

spawncommand@1.1.0:
version "1.1.0"
Expand Down Expand Up @@ -366,14 +368,14 @@ temp-context@^2.1.3:
makepromise "^3.0.3"
pedantry "^2.3.1"

typal@^1.12.0:
version "1.13.0"
resolved "https://registry.yarnpkg.com/typal/-/typal-1.13.0.tgz#605ed389290628b1e616246224fbe5151f44187c"
integrity sha512-3VDLfW+soVazR1upK70X+t3YuStL8qmQbNMRkPoRU+Vnt605y4VbMv3NFYL7ETVl0X1Ap2AqQ7eh4xnvmKDASw==
typal@^1.14.0:
version "1.14.0"
resolved "https://registry.yarnpkg.com/typal/-/typal-1.14.0.tgz#bc01f8065d497ca5f517de133993016b5c789061"
integrity sha512-buvfq0zwg1OdiTF30ui6Sc0HMxnCoeLNmSke5YXxWZ1cRdygTBTBV4KZkdDIp+OMMNcKAW8Z3EVgqXyhDzyQqw==
dependencies:
"@typedefs/parser" "^1.3.0"
mismatch "^1.2.0"
rexml "^1.4.0"
rexml "^2.0.2"

usually@^1.2.0:
version "1.2.0"
Expand Down

0 comments on commit 8fca0e1

Please sign in to comment.