-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add one shared rollup config * rename to baseConfig
- Loading branch information
Showing
57 changed files
with
415 additions
and
3,308 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
"packageManager": "[email protected]", | ||
"workspaces": [ | ||
"demos", | ||
"shared/*", | ||
"packages/*" | ||
], | ||
"browserslist": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,5 @@ | ||
import babel from '@rollup/plugin-babel' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import resolve from '@rollup/plugin-node-resolve' | ||
import autoExternal from 'rollup-plugin-auto-external' | ||
import sourcemaps from 'rollup-plugin-sourcemaps' | ||
import typescript from 'rollup-plugin-typescript2' | ||
import { baseConfig } from '@tiptap-shared/rollup-config' | ||
|
||
import pkg from './package.json' assert { type: 'json' } | ||
|
||
export default { | ||
external: [/@tiptap\/pm\/.*/], | ||
input: 'src/index.ts', | ||
output: [ | ||
{ | ||
name: pkg.name, | ||
file: pkg.umd, | ||
format: 'umd', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
{ | ||
name: pkg.name, | ||
file: pkg.main, | ||
format: 'cjs', | ||
interop: 'compat', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
{ | ||
name: pkg.name, | ||
file: pkg.module, | ||
format: 'es', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
], | ||
plugins: [ | ||
autoExternal({ | ||
packagePath: './package.json', | ||
}), | ||
sourcemaps(), | ||
resolve(), | ||
commonjs(), | ||
babel({ | ||
babelHelpers: 'bundled', | ||
exclude: '../../node_modules/**', | ||
}), | ||
typescript({ | ||
tsconfig: '../../tsconfig.json', | ||
tsconfigOverride: { | ||
compilerOptions: { | ||
declaration: true, | ||
paths: { | ||
'@tiptap/*': ['packages/*/src'], | ||
}, | ||
}, | ||
include: null, | ||
}, | ||
}), | ||
], | ||
} | ||
export default baseConfig({ input: 'src/index.ts', pkg }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,5 @@ | ||
import babel from '@rollup/plugin-babel' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import resolve from '@rollup/plugin-node-resolve' | ||
import autoExternal from 'rollup-plugin-auto-external' | ||
import sourcemaps from 'rollup-plugin-sourcemaps' | ||
import typescript from 'rollup-plugin-typescript2' | ||
import { baseConfig } from '@tiptap-shared/rollup-config' | ||
|
||
import pkg from './package.json' assert { type: 'json' } | ||
|
||
export default { | ||
external: [/@tiptap\/pm\/.*/], | ||
input: 'src/index.ts', | ||
output: [ | ||
{ | ||
name: pkg.name, | ||
file: pkg.umd, | ||
format: 'umd', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
{ | ||
name: pkg.name, | ||
file: pkg.main, | ||
format: 'cjs', | ||
interop: 'compat', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
{ | ||
name: pkg.name, | ||
file: pkg.module, | ||
format: 'es', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
], | ||
plugins: [ | ||
autoExternal({ | ||
packagePath: './package.json', | ||
}), | ||
sourcemaps(), | ||
resolve(), | ||
commonjs(), | ||
babel({ | ||
babelHelpers: 'bundled', | ||
exclude: '../../node_modules/**', | ||
}), | ||
typescript({ | ||
tsconfig: '../../tsconfig.json', | ||
tsconfigOverride: { | ||
compilerOptions: { | ||
declaration: true, | ||
paths: { | ||
'@tiptap/*': ['packages/*/src'], | ||
}, | ||
}, | ||
include: null, | ||
}, | ||
}), | ||
], | ||
} | ||
export default baseConfig({ input: 'src/index.ts', pkg }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,5 @@ | ||
import babel from '@rollup/plugin-babel' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import resolve from '@rollup/plugin-node-resolve' | ||
import autoExternal from 'rollup-plugin-auto-external' | ||
import sourcemaps from 'rollup-plugin-sourcemaps' | ||
import typescript from 'rollup-plugin-typescript2' | ||
import { baseConfig } from '@tiptap-shared/rollup-config' | ||
|
||
import pkg from './package.json' assert { type: 'json' } | ||
|
||
export default { | ||
external: [/@tiptap\/pm\/.*/], | ||
input: 'src/index.ts', | ||
output: [ | ||
{ | ||
name: pkg.name, | ||
file: pkg.umd, | ||
format: 'umd', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
{ | ||
name: pkg.name, | ||
file: pkg.main, | ||
format: 'cjs', | ||
interop: 'compat', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
{ | ||
name: pkg.name, | ||
file: pkg.module, | ||
format: 'es', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
], | ||
plugins: [ | ||
autoExternal({ | ||
packagePath: './package.json', | ||
}), | ||
sourcemaps(), | ||
resolve(), | ||
commonjs(), | ||
babel({ | ||
babelHelpers: 'bundled', | ||
exclude: '../../node_modules/**', | ||
}), | ||
typescript({ | ||
tsconfig: '../../tsconfig.json', | ||
tsconfigOverride: { | ||
compilerOptions: { | ||
declaration: true, | ||
paths: { | ||
'@tiptap/*': ['packages/*/src'], | ||
}, | ||
}, | ||
include: null, | ||
}, | ||
}), | ||
], | ||
} | ||
export default baseConfig({ input: 'src/index.ts', pkg }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,5 @@ | ||
import babel from '@rollup/plugin-babel' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import resolve from '@rollup/plugin-node-resolve' | ||
import autoExternal from 'rollup-plugin-auto-external' | ||
import sourcemaps from 'rollup-plugin-sourcemaps' | ||
import typescript from 'rollup-plugin-typescript2' | ||
import { baseConfig } from '@tiptap-shared/rollup-config' | ||
|
||
import pkg from './package.json' assert { type: 'json' } | ||
|
||
export default { | ||
external: [/@tiptap\/pm\/.*/], | ||
input: 'src/index.ts', | ||
output: [ | ||
{ | ||
name: pkg.name, | ||
file: pkg.umd, | ||
format: 'umd', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
{ | ||
name: pkg.name, | ||
file: pkg.main, | ||
format: 'cjs', | ||
interop: 'compat', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
{ | ||
name: pkg.name, | ||
file: pkg.module, | ||
format: 'es', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
], | ||
plugins: [ | ||
autoExternal({ | ||
packagePath: './package.json', | ||
}), | ||
sourcemaps(), | ||
resolve(), | ||
commonjs(), | ||
babel({ | ||
babelHelpers: 'bundled', | ||
exclude: '../../node_modules/**', | ||
}), | ||
typescript({ | ||
tsconfig: '../../tsconfig.json', | ||
tsconfigOverride: { | ||
compilerOptions: { | ||
declaration: true, | ||
paths: { | ||
'@tiptap/*': ['packages/*/src'], | ||
}, | ||
}, | ||
include: null, | ||
}, | ||
}), | ||
], | ||
} | ||
export default baseConfig({ input: 'src/index.ts', pkg }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,5 @@ | ||
import babel from '@rollup/plugin-babel' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import resolve from '@rollup/plugin-node-resolve' | ||
import autoExternal from 'rollup-plugin-auto-external' | ||
import sourcemaps from 'rollup-plugin-sourcemaps' | ||
import typescript from 'rollup-plugin-typescript2' | ||
import { baseConfig } from '@tiptap-shared/rollup-config' | ||
|
||
import pkg from './package.json' assert { type: 'json' } | ||
|
||
export default { | ||
external: [/@tiptap\/pm\/.*/], | ||
input: 'src/index.ts', | ||
output: [ | ||
{ | ||
name: pkg.name, | ||
file: pkg.umd, | ||
format: 'umd', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
{ | ||
name: pkg.name, | ||
file: pkg.main, | ||
format: 'cjs', | ||
interop: 'compat', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
{ | ||
name: pkg.name, | ||
file: pkg.module, | ||
format: 'es', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
], | ||
plugins: [ | ||
autoExternal({ | ||
packagePath: './package.json', | ||
}), | ||
sourcemaps(), | ||
resolve(), | ||
commonjs(), | ||
babel({ | ||
babelHelpers: 'bundled', | ||
exclude: '../../node_modules/**', | ||
}), | ||
typescript({ | ||
tsconfig: '../../tsconfig.json', | ||
tsconfigOverride: { | ||
compilerOptions: { | ||
declaration: true, | ||
paths: { | ||
'@tiptap/*': ['packages/*/src'], | ||
}, | ||
}, | ||
include: null, | ||
}, | ||
}), | ||
], | ||
} | ||
export default baseConfig({ input: 'src/index.ts', pkg }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,5 @@ | ||
import babel from '@rollup/plugin-babel' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import resolve from '@rollup/plugin-node-resolve' | ||
import autoExternal from 'rollup-plugin-auto-external' | ||
import sourcemaps from 'rollup-plugin-sourcemaps' | ||
import typescript from 'rollup-plugin-typescript2' | ||
import { baseConfig } from '@tiptap-shared/rollup-config' | ||
|
||
import pkg from './package.json' assert { type: 'json' } | ||
|
||
export default { | ||
external: [/@tiptap\/pm\/.*/], | ||
input: 'src/index.ts', | ||
output: [ | ||
{ | ||
name: pkg.name, | ||
file: pkg.umd, | ||
format: 'umd', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
{ | ||
name: pkg.name, | ||
file: pkg.main, | ||
format: 'cjs', | ||
interop: 'compat', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
{ | ||
name: pkg.name, | ||
file: pkg.module, | ||
format: 'es', | ||
sourcemap: true, | ||
exports: 'named', | ||
}, | ||
], | ||
plugins: [ | ||
autoExternal({ | ||
packagePath: './package.json', | ||
}), | ||
sourcemaps(), | ||
resolve(), | ||
commonjs(), | ||
babel({ | ||
babelHelpers: 'bundled', | ||
exclude: '../../node_modules/**', | ||
}), | ||
typescript({ | ||
tsconfig: '../../tsconfig.json', | ||
tsconfigOverride: { | ||
compilerOptions: { | ||
declaration: true, | ||
paths: { | ||
'@tiptap/*': ['packages/*/src'], | ||
}, | ||
}, | ||
include: null, | ||
}, | ||
}), | ||
], | ||
} | ||
export default baseConfig({ input: 'src/index.ts', pkg }) |
Oops, something went wrong.