All checks were successful
Deploy on webserver / Build site and deploy (push) Successful in 1m20s
The changes are necessary to support the DOI Import Wizard. Firstly, the new 'doi' plugin is added, with code to fetch and wrangle metadata for a given DOI, and in particular translate this metadata to be compatible withthe 'xyzri' schema. The 'doi' plugin also contains the custom 'DOIFetcher' vuejs component, which has all the rendering logic and components (and which uses the plugin's index.js code) that is to be displayed inside the DOI Import Wizard. Then, the new template 'DOIImportWizardTemplate.nunjucks.ttl' is added. It is a Nunjucks template, very similar to ninja, that allows loops and conditional logic, among other useful features for the wizard templating step. The configuration is updated to include the full specification for the new DOI Import Wizard, including the 'content' pointer to the new template and the 'wizard_editor_selection' spec saying that the wizard button should be rendered at the class level of 'xyzri:XYZPublication'. The 'component: doi:DOIFetcher' spec states that the new custom component from the 'doi' plugin should be rendered for the wizard. Lastly, the makefile is updated to copy the content of the new plugin directory to the desired location before the build step.
30 lines
719 B
Makefile
30 lines
719 B
Makefile
# Important directories
|
|
VUE_APP_DIR = shacl-vue
|
|
DIST_DIR = dist
|
|
PLUGIN_DIR = plugins
|
|
RUNTIME_PLUGIN_DIR = $(VUE_APP_DIR)/src/runtime-plugins
|
|
|
|
all: build
|
|
|
|
# Install vite and shacl-vue dependencies
|
|
install:
|
|
npm install vite
|
|
cd $(VUE_APP_DIR) && npm install
|
|
|
|
# Copy runtime plugins before build
|
|
# Build shacl-vue using top-level Vite-config
|
|
# Copy shacl-vue config to dist directory
|
|
build: clean
|
|
cp -r $(PLUGIN_DIR) $(RUNTIME_PLUGIN_DIR)
|
|
cd $(VUE_APP_DIR) && npm run build:app
|
|
mv $(VUE_APP_DIR)/dist/app ./$(DIST_DIR)
|
|
cp config.* $(DIST_DIR)/
|
|
cp favicon.ico $(DIST_DIR)/favicon.ico
|
|
cp *logo* $(DIST_DIR)/
|
|
cp -r templates $(DIST_DIR)/
|
|
|
|
# Clean output
|
|
clean:
|
|
rm -rf $(DIST_DIR)
|
|
|
|
.PHONY: install build clean deploy
|