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

Update EZID UI build tool packages to fix critical vulnerabilities #520

Merged
merged 6 commits into from
Dec 6, 2023
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
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
Loading