move built plugin files from /dist/plugin/ to /plugin/<name>/

This commit is contained in:
Hakim El Hattab 2020-05-18 14:41:56 +02:00
parent 4e8959508b
commit fb22716ddf
27 changed files with 42 additions and 44 deletions

View File

@ -413,11 +413,11 @@ Reveal.on( 'customevent', function() {
<script type="module">
import Reveal from '/dist/reveal.esm.js';
import Zoom from '/dist/plugin/zoom.esm.js';
import Notes from '/dist/plugin/notes.esm.js';
import Search from '/dist/plugin/search.esm.js';
import Markdown from '/dist/plugin/markdown.esm.js';
import Highlight from '/dist/plugin/highlight.esm.js';
import Zoom from '/plugin/zoom/zoom.esm.js';
import Notes from '/plugin/notes/notes.esm.js';
import Search from '/plugin/search/search.esm.js';
import Markdown from '/plugin/markdown/markdown.esm.js';
import Highlight from '/plugin/highlight/highlight.esm.js';
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -163,7 +163,7 @@
</div>
<script src="../dist/reveal.js"></script>
<script src="../dist/plugin/highlight.js"></script>
<script src="../plugin/highlight/highlight.js"></script>
<script>
Reveal.initialize({
center: true,

View File

@ -79,7 +79,7 @@
</div>
<script src="../dist/reveal.js"></script>
<script src="../dist/plugin/highlight.js"></script>
<script src="../plugin/highlight/highlight.js"></script>
<script>
Reveal.initialize({
center: true,

View File

@ -110,9 +110,9 @@
</div>
<script src="../dist/reveal.js"></script>
<script src="../dist/plugin/markdown.js"></script>
<script src="../dist/plugin/highlight.js"></script>
<script src="../dist/plugin/notes.js"></script>
<script src="../plugin/markdown/markdown.js"></script>
<script src="../plugin/highlight/highlight.js"></script>
<script src="../plugin/notes/notes.js"></script>
<script>

View File

@ -193,7 +193,7 @@
},
dependencies: [
{ src: '../dist/plugin/math.js', async: true }
{ src: '../plugin/math/math.js', async: true }
]
});
</script>

View File

@ -67,9 +67,9 @@
</style>
<script src="../dist/reveal.js"></script>
<script src="../dist/plugin/highlight.js"></script>
<script src="../dist/plugin/markdown.js"></script>
<script src="../dist/plugin/math.js"></script>
<script src="../plugin/highlight/highlight.js"></script>
<script src="../plugin/markdown/markdown.js"></script>
<script src="../plugin/math/math.js"></script>
<script>
let deck1 = new Reveal( document.querySelector( '.deck1' ), {

View File

@ -108,12 +108,12 @@ gulp.task('js', gulp.parallel('js-es5', 'js-es6'));
// built-in plugins
gulp.task('plugins', () => {
return Promise.all([
{ name: 'RevealHighlight', input: './plugin/highlight/plugin.js', output: './dist/plugin/highlight' },
{ name: 'RevealMarkdown', input: './plugin/markdown/plugin.js', output: './dist/plugin/markdown' },
{ name: 'RevealSearch', input: './plugin/search/plugin.js', output: './dist/plugin/search' },
{ name: 'RevealNotes', input: './plugin/notes/plugin.js', output: './dist/plugin/notes' },
{ name: 'RevealZoom', input: './plugin/zoom/plugin.js', output: './dist/plugin/zoom' },
{ name: 'RevealMath', input: './plugin/math/plugin.js', output: './dist/plugin/math' },
{ name: 'RevealHighlight', input: './plugin/highlight/plugin.js', output: './plugin/highlight/highlight' },
{ name: 'RevealMarkdown', input: './plugin/markdown/plugin.js', output: './plugin/markdown/markdown' },
{ name: 'RevealSearch', input: './plugin/search/plugin.js', output: './plugin/search/search' },
{ name: 'RevealNotes', input: './plugin/notes/plugin.js', output: './plugin/notes/notes' },
{ name: 'RevealZoom', input: './plugin/zoom/plugin.js', output: './plugin/zoom/zoom' },
{ name: 'RevealMath', input: './plugin/math/plugin.js', output: './plugin/math/math' },
].map( plugin => {
return rollup({
input: plugin.input,
@ -248,7 +248,7 @@ gulp.task('serve', () => {
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'))

View File

@ -22,9 +22,9 @@
</div>
<script src="dist/reveal.js"></script>
<script src="dist/plugin/markdown.js"></script>
<script src="dist/plugin/highlight.js"></script>
<script src="dist/plugin/notes.js"></script>
<script src="plugin/markdown/markdown.js"></script>
<script src="plugin/highlight/highlight.js"></script>
<script src="plugin/notes/notes.js"></script>
<script>
// More info about config & dependencies:
// - 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

View File

@ -286,8 +286,8 @@
<script type="module">
import Reveal from '../dist/reveal.esm.js'
import Markdown from '../dist/plugin/markdown.esm.js'
import Highlight from '../dist/plugin/highlight.esm.js'
import Markdown from '../plugin/markdown/markdown.esm.js'
import Highlight from '../plugin/highlight/highlight.esm.js'
let deck1 = new Reveal( document.querySelector( '.deck1' ), { plugins: [ Markdown ] })
deck1.addEventListener( 'ready', function() {

View File

@ -37,7 +37,7 @@
</div>
<script src="../dist/reveal.js"></script>
<script src="../dist/plugin/zoom.js"></script>
<script src="../plugin/zoom/zoom.js"></script>
<script>
QUnit.module( 'Multiple reveal.js instances' );

View File

@ -39,7 +39,7 @@
<script type="module">
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' );