froxy 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/froxy +1 -30
- data/lib/froxy/esbuild/plugins/debug.js +11 -0
- data/lib/froxy/version.rb +1 -1
- data/package.json +0 -1
- data/yarn.lock +3 -8
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12d6e3b3f546f7f29cffb9bcb9c860e9a50a2f1866b44725c34121eb7ce1f9e4
|
4
|
+
data.tar.gz: 98f692f348fa63de27fb6f154648301d4221933c23679347cc9c55ec88ae1651
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e9f27f9374f4f16bf59b79a468f52940330a6995c0cb7a8acffc1ea40c60554905af1bc3fe540451b101b56ffdaaa24f8a310995d225b55980d07707dd2d6d6
|
7
|
+
data.tar.gz: 926b281a7af9e4a4860c9ba443fd103d4a05e440f827adb56c7aad35b8208826dcea844090ef6c8224b752b55824ada82e73bbaafb311b7a851322a59b19dcf7
|
data/bin/froxy
CHANGED
@@ -1,14 +1,8 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
|
3
|
-
const path = require('path')
|
4
|
-
const fs = require('fs')
|
5
|
-
const cli = require('cac')()
|
6
3
|
const esbuild = require('esbuild')
|
7
|
-
const crypto = require('crypto')
|
8
4
|
|
9
|
-
const
|
10
|
-
const [absWorkingDir, entryPoint] = parsed.args
|
11
|
-
const entryPointKey = crypto.createHash('sha1').update(entryPoint).digest('base64')
|
5
|
+
const [, , absWorkingDir, entryPoint] = process.argv
|
12
6
|
|
13
7
|
const { resolve, config } = require('../lib/froxy/esbuild/utils')
|
14
8
|
const loadStylePlugin = require('../lib/froxy/esbuild/plugins/load_style')
|
@@ -18,18 +12,6 @@ const cssPlugin = require('../lib/froxy/esbuild/plugins/css')(absWorkingDir)
|
|
18
12
|
const imagesPlugin = require('../lib/froxy/esbuild/plugins/images')(absWorkingDir)
|
19
13
|
const rootPlugin = require('../lib/froxy/esbuild/plugins/root')(absWorkingDir)
|
20
14
|
|
21
|
-
const testPlugin = {
|
22
|
-
name: 'froxy.test',
|
23
|
-
setup(build) {
|
24
|
-
build.onResolve({ filter: /.*/ }, args => {
|
25
|
-
console.log('onResolve', args)
|
26
|
-
})
|
27
|
-
build.onLoad({ filter: /.*/ }, args => {
|
28
|
-
console.log('onLoad', args)
|
29
|
-
})
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
15
|
const conf = config(absWorkingDir)
|
34
16
|
|
35
17
|
const buildOptions = {
|
@@ -50,20 +32,9 @@ const buildOptions = {
|
|
50
32
|
'process.env.NODE_ENV': `"${process.env.NODE_ENV || 'development'}"`,
|
51
33
|
'process.env.RAILS_ENV': `"${process.env.RAILS_ENV || 'development'}"`
|
52
34
|
},
|
53
|
-
// metafile: `public/froxy/meta/${entryPointKey}.json`,
|
54
35
|
plugins: [aliasPlugin, envPlugin, loadStylePlugin, cssPlugin, imagesPlugin, rootPlugin]
|
55
36
|
}
|
56
37
|
|
57
38
|
esbuild.build(buildOptions).catch(() => {
|
58
39
|
process.exit(1)
|
59
40
|
})
|
60
|
-
// .then(results => {
|
61
|
-
// // console.log(results)
|
62
|
-
// const meta = JSON.parse(fs.readFileSync(`${absWorkingDir}/${buildOptions.metafile}`, 'utf8'))
|
63
|
-
// console.log(meta)
|
64
|
-
// // console.log(Object.keys(meta.inputs))
|
65
|
-
// // console.log(Object.keys(meta.outputs))
|
66
|
-
|
67
|
-
// process.stdout.write(buildOptions.metafile)
|
68
|
-
// // process.stdout.write(fs.readFileSync(`${absWorkingDir}/${buildOptions.metafile}`, 'utf8'))
|
69
|
-
// })
|
data/lib/froxy/version.rb
CHANGED
data/package.json
CHANGED
data/yarn.lock
CHANGED
@@ -2,12 +2,7 @@
|
|
2
2
|
# yarn lockfile v1
|
3
3
|
|
4
4
|
|
5
|
-
cac@^6.7.1:
|
6
|
-
version "6.7.2"
|
7
|
-
resolved "https://registry.yarnpkg.com/cac/-/cac-6.7.2.tgz#e7f0d21f4776c46c7d0de7976e56fa5562e17597"
|
8
|
-
integrity sha512-w0bH1IF9rEjdi0a6lTtlXYT+vBZEJL9oytaXXRdsD68MH6+SrZGOGsu7s2saHQvYXqwo/wBdkW75tt8wFpj+mw==
|
9
|
-
|
10
5
|
esbuild@^0.8.1:
|
11
|
-
version "0.8.
|
12
|
-
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.8.
|
13
|
-
integrity sha512-
|
6
|
+
version "0.8.50"
|
7
|
+
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.8.50.tgz#ebf24fde0cdad1a369789dd6fd7a820b0a01e46c"
|
8
|
+
integrity sha512-oidFLXssA7IccYzkqLVZSqNJDwDq8Mh/vqvrW+3fPWM7iUiC5O2bCllhnO8+K9LlyL/2Z6n+WwRJAz9fqSIVRg==
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: froxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Moss
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- lib/froxy.rb
|
54
54
|
- lib/froxy/esbuild/plugins/alias.js
|
55
55
|
- lib/froxy/esbuild/plugins/css.js
|
56
|
+
- lib/froxy/esbuild/plugins/debug.js
|
56
57
|
- lib/froxy/esbuild/plugins/env.js
|
57
58
|
- lib/froxy/esbuild/plugins/images.js
|
58
59
|
- lib/froxy/esbuild/plugins/load_style.js
|