Skip to content

Commit c4f5e54

Browse files
Version 5.1.2 Perform post-build tasks of copying files and creating a production build in the 'build' directory within the esbuild script. Remove the esbuild-copy-static-files dependency. Remove the NPM postbuild script and the esbuild-copy-static-files NPM dependency. Adjust print media all-filings class to span 100% of the viewport width and remove its left margin and remove padding and margins present within filing titles and boxes with borders.
1 parent 95a1bab commit c4f5e54

File tree

8 files changed

+4952
-1438
lines changed

8 files changed

+4952
-1438
lines changed

extensionDirectory/build.js

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,41 @@
11
const vuePlugin = require("esbuild-plugin-vue3")
22
const esbuild = require('esbuild');
3-
const copyStaticFiles = require('esbuild-copy-static-files')
3+
const exec = require('child_process').exec;
4+
const { copyFileSync, cpSync } = require('fs');
45

56
esbuild.build({
67
entryPoints: ['background.js', 'store.mjs', 'index.js', 'manage-counts.js', 'payload.js', 'filings.js', 'saveFile.js'],
78
bundle: true,
89
outdir: 'build/',
910
plugins: [vuePlugin(),
10-
copyStaticFiles({
11-
src: './static',
12-
dest: './build'
13-
})],
11+
{
12+
name: "postbuild",
13+
setup(build) {
14+
build.onEnd((result) => {
15+
const staticDir = './static';
16+
const packageJson = './package.json';
17+
const buildDir = './build/';
18+
const productionBuild = "npm install --omit=dev";
19+
cpSync(staticDir, buildDir, {
20+
force: true,
21+
recursive: true
22+
});
23+
copyFileSync(packageJson, buildDir + packageJson);
24+
exec(productionBuild,
25+
{
26+
cwd: buildDir
27+
})
28+
})
29+
}
30+
}],
1431
loader: {
15-
'.eot': 'dataurl',
16-
'.png': 'file',
17-
'.ttf': 'dataurl',
18-
'.svg': 'dataurl',
19-
'.woff': 'dataurl',
20-
'.woff2': 'dataurl',
21-
},
32+
'.eot': 'dataurl',
33+
'.png': 'file',
34+
'.ttf': 'dataurl',
35+
'.svg': 'dataurl',
36+
'.woff': 'dataurl',
37+
'.woff2': 'dataurl',
38+
},
2239
define: {
2340
"process.env.NODE_ENV": JSON.stringify("development"),
2441
},

extensionDirectory/components/popup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export default {
247247
/>
248248
</div>
249249
<div class="popup-edition-wrap">
250-
<p class="popup-edition">ExpungeVT 5.0 - A New Manifest</p>
250+
<p class="popup-edition">ExpungeVT 5.1.2 - A New Manifest</p>
251251
</div>
252252
<div class="inset text-center button-div">
253253
<button

0 commit comments

Comments
 (0)