MDL-55403 theme_noname: Add bootstrap4 js to moodle
[moodle.git] / theme / noname / readme_moodle.txt
CommitLineData
536f0460
DW
1Description of Twitter bootstrap import into Moodle
2
3Twitter bootstrap
4-----------------
d2645a6a
DW
5
6Sass:
536f0460
DW
7This theme uses the original unmodified version 4.0.0-alpha-3 Twitter bootstrap sass files.
8The bootstrap repository is available on:
9
10https://github.com/twitter/bootstrap.git
11
12To update to the latest release of twitter bootstrap:
13* remove all files from scss/bootstrap,
14* download the new scss files and store them in scss/bootstrap
15* update ./thirdpartylibs.xml
16
d2645a6a
DW
17Javascript:
18
19This theme uses the transpiled javascript from bootstrap4 as amd modules.
20
21To update the javascript files:
22Checkout the latest branch of bootstrap to a folder, in that folder run:
23
24> mkdir "out"
25> npm install babel-cli babel-preset-es2015
26> ./node_modules/babel-cli/bin/babel.js --presets es2015 -d out/ js/src/
27
28Copy the transpiled files from out/ into the amd/src/ folder for the theme.
29Run grunt to re-compile the JS files.
30