move built plugin files from /dist/plugin/ to /plugin/<name>/
parent
4e8959508b
commit
fb22716ddf
10
demo.html
10
demo.html
|
@ -413,11 +413,11 @@ Reveal.on( 'customevent', function() {
|
||||||
<script type="module">
|
<script type="module">
|
||||||
|
|
||||||
import Reveal from '/dist/reveal.esm.js';
|
import Reveal from '/dist/reveal.esm.js';
|
||||||
import Zoom from '/dist/plugin/zoom.esm.js';
|
import Zoom from '/plugin/zoom/zoom.esm.js';
|
||||||
import Notes from '/dist/plugin/notes.esm.js';
|
import Notes from '/plugin/notes/notes.esm.js';
|
||||||
import Search from '/dist/plugin/search.esm.js';
|
import Search from '/plugin/search/search.esm.js';
|
||||||
import Markdown from '/dist/plugin/markdown.esm.js';
|
import Markdown from '/plugin/markdown/markdown.esm.js';
|
||||||
import Highlight from '/dist/plugin/highlight.esm.js';
|
import Highlight from '/plugin/highlight/highlight.esm.js';
|
||||||
|
|
||||||
// More info https://github.com/hakimel/reveal.js#configuration
|
// More info https://github.com/hakimel/reveal.js#configuration
|
||||||
Reveal.initialize({
|
Reveal.initialize({
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -163,7 +163,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../dist/reveal.js"></script>
|
<script src="../dist/reveal.js"></script>
|
||||||
<script src="../dist/plugin/highlight.js"></script>
|
<script src="../plugin/highlight/highlight.js"></script>
|
||||||
<script>
|
<script>
|
||||||
Reveal.initialize({
|
Reveal.initialize({
|
||||||
center: true,
|
center: true,
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../dist/reveal.js"></script>
|
<script src="../dist/reveal.js"></script>
|
||||||
<script src="../dist/plugin/highlight.js"></script>
|
<script src="../plugin/highlight/highlight.js"></script>
|
||||||
<script>
|
<script>
|
||||||
Reveal.initialize({
|
Reveal.initialize({
|
||||||
center: true,
|
center: true,
|
||||||
|
|
|
@ -110,9 +110,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../dist/reveal.js"></script>
|
<script src="../dist/reveal.js"></script>
|
||||||
<script src="../dist/plugin/markdown.js"></script>
|
<script src="../plugin/markdown/markdown.js"></script>
|
||||||
<script src="../dist/plugin/highlight.js"></script>
|
<script src="../plugin/highlight/highlight.js"></script>
|
||||||
<script src="../dist/plugin/notes.js"></script>
|
<script src="../plugin/notes/notes.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
dependencies: [
|
dependencies: [
|
||||||
{ src: '../dist/plugin/math.js', async: true }
|
{ src: '../plugin/math/math.js', async: true }
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -67,9 +67,9 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script src="../dist/reveal.js"></script>
|
<script src="../dist/reveal.js"></script>
|
||||||
<script src="../dist/plugin/highlight.js"></script>
|
<script src="../plugin/highlight/highlight.js"></script>
|
||||||
<script src="../dist/plugin/markdown.js"></script>
|
<script src="../plugin/markdown/markdown.js"></script>
|
||||||
<script src="../dist/plugin/math.js"></script>
|
<script src="../plugin/math/math.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
let deck1 = new Reveal( document.querySelector( '.deck1' ), {
|
let deck1 = new Reveal( document.querySelector( '.deck1' ), {
|
||||||
|
|
14
gulpfile.js
14
gulpfile.js
|
@ -108,12 +108,12 @@ gulp.task('js', gulp.parallel('js-es5', 'js-es6'));
|
||||||
// built-in plugins
|
// built-in plugins
|
||||||
gulp.task('plugins', () => {
|
gulp.task('plugins', () => {
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
{ name: 'RevealHighlight', input: './plugin/highlight/plugin.js', output: './dist/plugin/highlight' },
|
{ name: 'RevealHighlight', input: './plugin/highlight/plugin.js', output: './plugin/highlight/highlight' },
|
||||||
{ name: 'RevealMarkdown', input: './plugin/markdown/plugin.js', output: './dist/plugin/markdown' },
|
{ name: 'RevealMarkdown', input: './plugin/markdown/plugin.js', output: './plugin/markdown/markdown' },
|
||||||
{ name: 'RevealSearch', input: './plugin/search/plugin.js', output: './dist/plugin/search' },
|
{ name: 'RevealSearch', input: './plugin/search/plugin.js', output: './plugin/search/search' },
|
||||||
{ name: 'RevealNotes', input: './plugin/notes/plugin.js', output: './dist/plugin/notes' },
|
{ name: 'RevealNotes', input: './plugin/notes/plugin.js', output: './plugin/notes/notes' },
|
||||||
{ name: 'RevealZoom', input: './plugin/zoom/plugin.js', output: './dist/plugin/zoom' },
|
{ name: 'RevealZoom', input: './plugin/zoom/plugin.js', output: './plugin/zoom/zoom' },
|
||||||
{ name: 'RevealMath', input: './plugin/math/plugin.js', output: './dist/plugin/math' },
|
{ name: 'RevealMath', input: './plugin/math/plugin.js', output: './plugin/math/math' },
|
||||||
].map( plugin => {
|
].map( plugin => {
|
||||||
return rollup({
|
return rollup({
|
||||||
input: plugin.input,
|
input: plugin.input,
|
||||||
|
@ -248,7 +248,7 @@ gulp.task('serve', () => {
|
||||||
|
|
||||||
gulp.watch(['js/**'], gulp.series('js', 'test'))
|
gulp.watch(['js/**'], gulp.series('js', 'test'))
|
||||||
|
|
||||||
gulp.watch(['plugin/**/*.js'], gulp.series('plugins'))
|
gulp.watch(['plugin/**/plugin.js'], gulp.series('plugins'))
|
||||||
|
|
||||||
gulp.watch(['test/*.html'], gulp.series('test'))
|
gulp.watch(['test/*.html'], gulp.series('test'))
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="dist/reveal.js"></script>
|
<script src="dist/reveal.js"></script>
|
||||||
<script src="dist/plugin/markdown.js"></script>
|
<script src="plugin/markdown/markdown.js"></script>
|
||||||
<script src="dist/plugin/highlight.js"></script>
|
<script src="plugin/highlight/highlight.js"></script>
|
||||||
<script src="dist/plugin/notes.js"></script>
|
<script src="plugin/notes/notes.js"></script>
|
||||||
<script>
|
<script>
|
||||||
// More info about config & dependencies:
|
// More info about config & dependencies:
|
||||||
// - https://github.com/hakimel/reveal.js#configuration
|
// - https://github.com/hakimel/reveal.js#configuration
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -286,8 +286,8 @@
|
||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import Reveal from '../dist/reveal.esm.js'
|
import Reveal from '../dist/reveal.esm.js'
|
||||||
import Markdown from '../dist/plugin/markdown.esm.js'
|
import Markdown from '../plugin/markdown/markdown.esm.js'
|
||||||
import Highlight from '../dist/plugin/highlight.esm.js'
|
import Highlight from '../plugin/highlight/highlight.esm.js'
|
||||||
|
|
||||||
let deck1 = new Reveal( document.querySelector( '.deck1' ), { plugins: [ Markdown ] })
|
let deck1 = new Reveal( document.querySelector( '.deck1' ), { plugins: [ Markdown ] })
|
||||||
deck1.addEventListener( 'ready', function() {
|
deck1.addEventListener( 'ready', function() {
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../dist/reveal.js"></script>
|
<script src="../dist/reveal.js"></script>
|
||||||
<script src="../dist/plugin/zoom.js"></script>
|
<script src="../plugin/zoom/zoom.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
QUnit.module( 'Multiple reveal.js instances' );
|
QUnit.module( 'Multiple reveal.js instances' );
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
<script type="module">
|
<script type="module">
|
||||||
|
|
||||||
import Reveal from '../dist/reveal.esm.js';
|
import Reveal from '../dist/reveal.esm.js';
|
||||||
import Zoom from '../dist/plugin/zoom.esm.js';
|
import Zoom from '../plugin/zoom/zoom.esm.js';
|
||||||
|
|
||||||
QUnit.module( 'Multiple reveal.js instances' );
|
QUnit.module( 'Multiple reveal.js instances' );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue