Skip to content

Commit

Permalink
Merge pull request #520 from CDLUC3/ui-toolkit-updates
Browse files Browse the repository at this point in the history
Update EZID UI build tool packages to fix critical vulnerabilities
  • Loading branch information
jsjiang authored Dec 6, 2023
2 parents 2982628 + ce91a84 commit 5c918dd
Show file tree
Hide file tree
Showing 4 changed files with 6,851 additions and 16,906 deletions.
30 changes: 11 additions & 19 deletions README.orig.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,38 +256,30 @@ lxml is incompatible with mod_wsgi's use of Python sub-interpreters
UI development setup
====================

For UI development purposes only, install:
Reqires:

- NodeJS (recommended to install from NodeSource repository)
- npm (installed automatically with NodeJS)
- Ruby (for the scss-lint plugin)
- Node
- npm

To install all gulp plugins (this relies on files gulpfile.js and
packages.json in .../SITE_ROOT/PROJECT_ROOT):
CD to ezid repository root.

cd .../SITE_ROOT/PROJECT_ROOT
npm update --save-dev
Install UI toolkit:

Then:
npm install

gem install scss_lint
npm install gulp

For development, to make changes to static elements, components, and
To make changes to static elements, components, and
layouts:

gulp
npm run ui:watch

This starts a local browser with the index page at
http://localhost:3000/, and will reload HTML, CSS, and JavaScript in
the browser immediately upon any changes to these files.

To create a build:

gulp build

This writes static webpages to .../SITE_ROOT/PROJECT_ROOT/ui_library.
npm run ui:build

To validate the HTML of a build using the W3C validation service:
This compiles CSS, JS and static webpages to [ezid repository root]/ui_library.

gulp validateHTML
Copy the compiled HTML, CSS and JS from ui_library into their locations within the ezid app.
2 changes: 0 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ var useref = require('gulp-useref');
var uglify = require('gulp-uglify');
var gulpIf = require('gulp-if');
var cleanCSS = require('gulp-clean-css');
var rename = require('gulp-rename');
var imagemin = require('gulp-imagemin');
var cache = require('gulp-cache');
var del = require('del');
var modernizr = require('gulp-modernizr');
var runSequence = require('run-sequence');
var stylelint = require('gulp-stylelint');
var jshint = require('gulp-jshint');
var lbInclude = require('gulp-lb-include');
Expand Down
Loading

0 comments on commit 5c918dd

Please sign in to comment.