Skip to content

Commit d713988

Browse files
committed
Merge branch 'v3-affixes' into v3
# Conflicts: # dist/cheesegrits/filament-google-maps/filament-google-geocomplete.js # dist/cheesegrits/filament-google-maps/filament-google-maps-widget.js # dist/cheesegrits/filament-google-maps/filament-google-maps.js
2 parents 24ac89a + 2331f24 commit d713988

31 files changed

+562
-675
lines changed

.idea/blade.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/build.js

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
const esbuild = require('esbuild')
2+
const shouldWatch = process.argv.includes('--watch')
3+
4+
esbuild
5+
.build({
6+
define: {
7+
'process.env.NODE_ENV': shouldWatch
8+
? `'production'`
9+
: `'development'`,
10+
},
11+
entryPoints: [`resources/js/index.js`],
12+
outfile: `dist/index.js`,
13+
bundle: true,
14+
platform: 'browser',
15+
mainFields: ['module', 'main'],
16+
watch: shouldWatch,
17+
minifySyntax: true,
18+
minifyWhitespace: true,
19+
})
20+
.catch(() => process.exit(1))
21+
22+
const formComponents = [
23+
'filament-google-geocomplete',
24+
'filament-google-maps',
25+
'filament-google-maps-widget',
26+
]
27+
28+
formComponents.forEach((component) => {
29+
esbuild
30+
.build({
31+
define: {
32+
'process.env.NODE_ENV': shouldWatch
33+
? `'production'`
34+
: `'development'`,
35+
},
36+
entryPoints: [
37+
`resources/js/${component}.js`,
38+
],
39+
outfile: `dist/cheesegrits/filament-google-maps/${component}.js`,
40+
bundle: true,
41+
platform: 'neutral',
42+
mainFields: ['module', 'main'],
43+
watch: shouldWatch,
44+
minifySyntax: true,
45+
minifyWhitespace: true,
46+
})
47+
.catch(() => process.exit(1))
48+
})
49+

dist/cheesegrits/filament-google-maps/filament-google-geocomplete.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)