remove systemjs build (at least temporarly)
This commit is contained in:
@@ -28,7 +28,8 @@ const getDirectories = (source) => {
|
|||||||
// capture the list of files to build for extensions and ext-locales
|
// capture the list of files to build for extensions and ext-locales
|
||||||
const extensionDirs = getDirectories('src/editor/extensions');
|
const extensionDirs = getDirectories('src/editor/extensions');
|
||||||
|
|
||||||
const dest = ['dist/editor', 'dist/editor/system'];
|
/** @todo should we support systemjs? */
|
||||||
|
const dest = ['dist/editor' /* , 'dist/editor/system' */];
|
||||||
|
|
||||||
// remove existing distribution
|
// remove existing distribution
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
@@ -50,15 +51,16 @@ const config = [{
|
|||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
file: 'dist/editor/xdomain-index.js',
|
file: 'dist/editor/xdomain-index.js',
|
||||||
intro: 'const XDOMAIN = true;'
|
intro: 'const XDOMAIN = true;'
|
||||||
},
|
}
|
||||||
|
/*
|
||||||
{
|
{
|
||||||
format: 'system',
|
format: 'system',
|
||||||
dir: 'dist/editor/system',
|
dir: 'dist/editor/system',
|
||||||
inlineDynamicImports: true
|
inlineDynamicImports: true
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
// progress(),
|
|
||||||
copy({
|
copy({
|
||||||
targets: [
|
targets: [
|
||||||
{
|
{
|
||||||
@@ -72,6 +74,7 @@ const config = [{
|
|||||||
transform: (contents) => contents.toString()
|
transform: (contents) => contents.toString()
|
||||||
.replace('<script type="module" src="index.js">', '<script type="module" src="xdomain-index.js">')
|
.replace('<script type="module" src="index.js">', '<script type="module" src="xdomain-index.js">')
|
||||||
},
|
},
|
||||||
|
/*
|
||||||
{
|
{
|
||||||
src: 'src/editor/index.html',
|
src: 'src/editor/index.html',
|
||||||
dest: ['dist/editor/system'],
|
dest: ['dist/editor/system'],
|
||||||
@@ -91,14 +94,13 @@ const config = [{
|
|||||||
src: ['node_modules/systemjs/dist/s.min.js', 'node_modules/systemjs/dist/s.min.js.map'],
|
src: ['node_modules/systemjs/dist/s.min.js', 'node_modules/systemjs/dist/s.min.js.map'],
|
||||||
dest: 'dist/editor/system'
|
dest: 'dist/editor/system'
|
||||||
},
|
},
|
||||||
|
*/
|
||||||
{src: 'src/editor/images', dest},
|
{src: 'src/editor/images', dest},
|
||||||
{src: 'src/editor/extensions/ext-shapes/shapelib', dest: dest.map((d) => `${d}/extensions/ext-shapes`)},
|
{src: 'src/editor/extensions/ext-shapes/shapelib', dest: dest.map((d) => `${d}/extensions/ext-shapes`)},
|
||||||
{src: 'src/editor/jgraduate', dest},
|
|
||||||
{src: 'src/editor/spinbtn', dest},
|
|
||||||
{src: 'src/editor/embedapi.html', dest},
|
{src: 'src/editor/embedapi.html', dest},
|
||||||
{src: 'src/editor/embedapi.js', dest},
|
{src: 'src/editor/embedapi.js', dest},
|
||||||
{src: 'src/editor/browser-not-supported.html', dest},
|
{src: 'src/editor/browser-not-supported.html', dest},
|
||||||
{src: 'src/editor/redirect-on-lacking-support.js', dest},
|
{src: 'src/editor/browser-not-supported.js', dest},
|
||||||
{src: 'src/editor/svgedit.css', dest}
|
{src: 'src/editor/svgedit.css', dest}
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
@@ -127,15 +129,17 @@ extensionDirs.forEach((extensionDir) => {
|
|||||||
dir: `dist/editor/extensions/${extensionName}`,
|
dir: `dist/editor/extensions/${extensionName}`,
|
||||||
inlineDynamicImports: true,
|
inlineDynamicImports: true,
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
}
|
||||||
|
/*
|
||||||
|
,
|
||||||
{
|
{
|
||||||
format: 'system',
|
format: 'system',
|
||||||
dir: `dist/editor/system/extensions/${extensionName}`,
|
dir: `dist/editor/system/extensions/${extensionName}`,
|
||||||
inlineDynamicImports: true
|
inlineDynamicImports: true
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
// progress(),
|
|
||||||
url({
|
url({
|
||||||
include: ['**/*.svg', '**/*.png', '**/*.jpg', '**/*.gif', '**/*.xml'],
|
include: ['**/*.svg', '**/*.png', '**/*.jpg', '**/*.gif', '**/*.xml'],
|
||||||
limit: 0,
|
limit: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user