Skip to content

Commit

Permalink
Copy ag-grid CSS to the resources folder.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amclark42 committed Jan 19, 2022
1 parent 56d2958 commit c76d6e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down Expand Up @@ -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 });
Expand Down

0 comments on commit c76d6e8

Please sign in to comment.