Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include ag-grid in build (see eXist-db/eXide#376) #411

Merged
merged 2 commits into from
Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions index.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<link rel="stylesheet" type="text/css" href="resources/css/black-tie/jquery-ui-1.10.3.custom.min.css"/>
<link rel="stylesheet" type="text/css" href="resources/css/jquery.pnotify.default.css"/>
<link rel="stylesheet" href="resources/css/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="https://unpkg.com/ag-grid-community/dist/styles/ag-grid.css"/>
<link rel="stylesheet" href="https://unpkg.com/ag-grid-community/dist/styles/ag-theme-alpine.css"/>
<link rel="stylesheet" href="resources/css/ag-grid-community/ag-grid.css"/>
<link rel="stylesheet" href="resources/css/ag-grid-community/ag-theme-alpine.css"/>
<link rel="stylesheet" type="text/css" href="resources/css/eXide.css"/>
<script type="text/javascript" src="resources/scripts/modernizr.custom.js"/>
<script type="text/javascript" src="resources/scripts/jquery/jquery-1.9.1.min.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