mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	refactor(ckeditor): remove unnecessary build step
This commit is contained in:
		| @@ -44,22 +44,4 @@ function dist( path ) { | |||||||
| 		declarations: true, | 		declarations: true, | ||||||
| 		translations: '**/*.po' | 		translations: '**/*.po' | ||||||
| 	} ); | 	} ); | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * Step 2 |  | ||||||
| 	 */ |  | ||||||
| 	console.log( chalk.cyan( '2/2: Generating browser build...' ) ); |  | ||||||
|  |  | ||||||
| 	await build( { |  | ||||||
| 		output: dist( 'browser/index.js' ), |  | ||||||
| 		tsconfig, |  | ||||||
| 		sourceMap: true, |  | ||||||
| 		minify: true, |  | ||||||
| 		browser: true, |  | ||||||
| 		name: 'CKAdmonition', |  | ||||||
| 		external: [ |  | ||||||
| 			'ckeditor5', |  | ||||||
| 			'ckeditor5-premium-features' |  | ||||||
| 		] |  | ||||||
| 	} ); |  | ||||||
| } )(); | } )(); | ||||||
|   | |||||||
| @@ -44,22 +44,4 @@ function dist( path ) { | |||||||
| 		declarations: true, | 		declarations: true, | ||||||
| 		translations: '**/*.po' | 		translations: '**/*.po' | ||||||
| 	} ); | 	} ); | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * Step 2 |  | ||||||
| 	 */ |  | ||||||
| 	console.log( chalk.cyan( '2/2: Generating browser build...' ) ); |  | ||||||
|  |  | ||||||
| 	await build( { |  | ||||||
| 		output: dist( 'browser/index.js' ), |  | ||||||
| 		tsconfig, |  | ||||||
| 		sourceMap: true, |  | ||||||
| 		minify: true, |  | ||||||
| 		browser: true, |  | ||||||
| 		name: 'CKFootnotes', |  | ||||||
| 		external: [ |  | ||||||
| 			'ckeditor5', |  | ||||||
| 			'ckeditor5-premium-features' |  | ||||||
| 		] |  | ||||||
| 	} ); |  | ||||||
| } )(); | } )(); | ||||||
|   | |||||||
| @@ -44,22 +44,4 @@ function dist( path ) { | |||||||
| 		declarations: true, | 		declarations: true, | ||||||
| 		translations: '**/*.po' | 		translations: '**/*.po' | ||||||
| 	} ); | 	} ); | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * Step 2 |  | ||||||
| 	 */ |  | ||||||
| 	console.log( chalk.cyan( '2/2: Generating browser build...' ) ); |  | ||||||
|  |  | ||||||
| 	await build( { |  | ||||||
| 		output: dist( 'browser/index.js' ), |  | ||||||
| 		tsconfig, |  | ||||||
| 		sourceMap: true, |  | ||||||
| 		minify: true, |  | ||||||
| 		browser: true, |  | ||||||
| 		name: 'CKKeyboardMarker', |  | ||||||
| 		external: [ |  | ||||||
| 			'ckeditor5', |  | ||||||
| 			'ckeditor5-premium-features' |  | ||||||
| 		] |  | ||||||
| 	} ); |  | ||||||
| } )(); | } )(); | ||||||
|   | |||||||
| @@ -44,22 +44,4 @@ function dist( path ) { | |||||||
| 		declarations: true, | 		declarations: true, | ||||||
| 		translations: '**/*.po' | 		translations: '**/*.po' | ||||||
| 	} ); | 	} ); | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * Step 2 |  | ||||||
| 	 */ |  | ||||||
| 	console.log( chalk.cyan( '2/2: Generating browser build...' ) ); |  | ||||||
|  |  | ||||||
| 	await build( { |  | ||||||
| 		output: dist( 'browser/index.js' ), |  | ||||||
| 		tsconfig, |  | ||||||
| 		sourceMap: true, |  | ||||||
| 		minify: true, |  | ||||||
| 		browser: true, |  | ||||||
| 		name: 'CKMath', |  | ||||||
| 		external: [ |  | ||||||
| 			'ckeditor5', |  | ||||||
| 			'ckeditor5-premium-features' |  | ||||||
| 		] |  | ||||||
| 	} ); |  | ||||||
| } )(); | } )(); | ||||||
|   | |||||||
| @@ -44,22 +44,4 @@ function dist( path ) { | |||||||
| 		declarations: true, | 		declarations: true, | ||||||
| 		translations: '**/*.po' | 		translations: '**/*.po' | ||||||
| 	} ); | 	} ); | ||||||
|  |  | ||||||
| 	/** |  | ||||||
| 	 * Step 2 |  | ||||||
| 	 */ |  | ||||||
| 	console.log( chalk.cyan( '2/2: Generating browser build...' ) ); |  | ||||||
|  |  | ||||||
| 	await build( { |  | ||||||
| 		output: dist( 'browser/index.js' ), |  | ||||||
| 		tsconfig, |  | ||||||
| 		sourceMap: true, |  | ||||||
| 		minify: true, |  | ||||||
| 		browser: true, |  | ||||||
| 		name: 'CKMermaid', |  | ||||||
| 		external: [ |  | ||||||
| 			'ckeditor5', |  | ||||||
| 			'ckeditor5-premium-features' |  | ||||||
| 		] |  | ||||||
| 	} ); |  | ||||||
| } )(); | } )(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user