move built plugin files from /dist/plugin/ to /plugin/<name>/
This commit is contained in:
parent
4e8959508b
commit
fb22716ddf
10
demo.html
10
demo.html
|
@ -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({
|
||||
|
|
5
dist/plugin/highlight.esm.js
vendored
5
dist/plugin/highlight.esm.js
vendored
File diff suppressed because one or more lines are too long
5
dist/plugin/highlight.js
vendored
5
dist/plugin/highlight.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -193,7 +193,7 @@
|
|||
},
|
||||
|
||||
dependencies: [
|
||||
{ src: '../dist/plugin/math.js', async: true }
|
||||
{ src: '../plugin/math/math.js', async: true }
|
||||
]
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -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' ), {
|
||||
|
|
14
gulpfile.js
14
gulpfile.js
|
@ -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'))
|
||||
|
||||
|
|
|
@ -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
5
plugin/highlight/highlight.esm.js
Normal file
5
plugin/highlight/highlight.esm.js
Normal file
File diff suppressed because one or more lines are too long
5
plugin/highlight/highlight.js
Normal file
5
plugin/highlight/highlight.js
Normal file
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">
|
||||
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() {
|
||||
|
|
|
@ -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' );
|
||||
|
|
|
@ -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' );
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user