From c76d6e8a2eace68ff333803fc724f10dca7f8e50 Mon Sep 17 00:00:00 2001 From: "Ashley M. Clark" Date: Wed, 19 Jan 2022 13:24:15 -0500 Subject: [PATCH] Copy ag-grid CSS to the resources folder. The directory `resources/css/ag-grid-community` is created on `npm run build`, and its contents are gitignored. On `npm run build clean`, the directory and its contents are deleted. --- .gitignore | 1 + scripts/build.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index df487a60..8c1be850 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ resources/scripts/xqlint.min.js resources/scripts/ace resources/scripts/eXide.min.* resources/scripts/jquery/jquery.plugins.min.* +resources/css/ag-grid-community/ tools/r.js diff --git a/scripts/build.js b/scripts/build.js index 4b2da04c..fd809fca 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -125,6 +125,7 @@ async function clean() { 'resources/scripts/jquery/jquery.plugins.min.js', 'resources/scripts/xqlint.min.js', 'resources/scripts/ace/**', + 'resources/css/ag-grid-community/**', 'index.html', 'expath-pkg.xml' ], { allowEmpty: true, silent: false }); @@ -180,6 +181,8 @@ function replace(path, outPath, data) { } await mfs.copy('./support/ace/build/src-min/**', './resources/scripts/ace'); + await mfs.copy('./node_modules/@ag-grid-community/core/LICENSE.txt', './resources/css/ag-grid-community'); + await mfs.copy('./node_modules/@ag-grid-community/core/dist/styles/*.css', './resources/css/ag-grid-community'); replace('expath-pkg.xml.tmpl', 'expath-pkg.xml', { version }); replace("index.html.tmpl", "index.html", { version });