36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
Instructions for downloading and integrating bootstrap-vue and associoated files
|
|
|
|
1. download bootstrap-vue distribusion through npm
|
|
npm install bootstrap-vue@2.23.1
|
|
|
|
2. Copy node_modules/bootstrap-vue/dist/bootstrap-vue.esm.js to amd/src/bootstrap-vue
|
|
Copy node_modules/bootstrap-vue/dist/bootstrap-vue.min.css to css/bootstrap-vue
|
|
|
|
3. Change import statements on top of bootstrap-vue.esm to:
|
|
|
|
/* Path modifications by PMKuipers to handle relative loading of vue in moodle context*/
|
|
import Vue from '../vue/vue';
|
|
|
|
import { mergeData } from './vue-functional-data-merge';
|
|
import Popper from 'core/popper'; // Popper is included in core
|
|
import { Wormhole, PortalTarget, Portal } from '../portal-vue/portal-vue.esm';
|
|
/* End modifications */
|
|
|
|
4. add /* eslint-disable */ to top of bootstrap-vue.esm.js
|
|
|
|
--------- vue-functional-data-merge.js ----------
|
|
|
|
6. install node typescript compiler
|
|
sudo npm install -g typescript
|
|
|
|
5. clone https://github.com/alexsasharegan/vue-functional-data-merge into a folder
|
|
in the cloned folder call
|
|
tsc -t es6 src/index.ts
|
|
|
|
6. Copy the newley generated src/index.js to amd/src/bootstrap-vue/vue-functional-data-merge.js
|
|
|
|
7. add the following to top of vue-functional-data-merge.js
|
|
/* eslint-disable */
|
|
/*
|
|
<content of LICENSE.md from the vue-functional-data-merge git repository>
|
|
*/
|