Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@merkur/preact #166

Merged
merged 36 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a6b47b2
chore: 🤖 WIP on new preact renderer
jsimck Aug 3, 2023
0511d10
refactor: 💡 Refactored client/server code, fixed TS errors
jsimck Aug 3, 2023
e281a39
refactor: 💡 WIP
jsimck Aug 3, 2023
b00cfb1
refactor: 💡 Added additional types and fixes
jsimck Aug 7, 2023
06a5efe
refactor: 💡 Added webpack config
jsimck Aug 8, 2023
0113842
refactor: 💡 Updated preact template
jsimck Aug 8, 2023
570a0c3
refactor: 💡 Type fixes
jsimck Aug 9, 2023
aabfe5d
refactor: 💡 Updated types
jsimck Aug 11, 2023
0742d16
refactor: 💡 wip
jsimck Aug 18, 2023
ec7e262
refactor: 💡 Added new factory functions
jsimck Aug 22, 2023
cfe4432
Fixed template and tests
jsimck Sep 21, 2023
78d7528
test: 💍 Fixed tests
jsimck Sep 21, 2023
8fe8e89
Merge remote-tracking branch 'origin/master' into preact-renderer
jsimck Sep 21, 2023
4c0e816
test: 💍 Reduce coverage for error
jsimck Sep 21, 2023
8082933
fix: 🐛 Fixed tests
jsimck Sep 25, 2023
8969f2f
refactor: 💡 Fixed template
jsimck Sep 25, 2023
f3c4187
refactor: 💡 Removed invalid dep
jsimck Sep 25, 2023
fabbe98
chore: 🤖 Fixed CI
jsimck Sep 25, 2023
36ec4ca
feat: 🎸 Added @merkur/preact
jsimck Sep 25, 2023
2aa9ebd
chore: 🤖 Fixed bump version script
jsimck Sep 25, 2023
b049958
chore: 🤖 Fixed CI tests\
jsimck Sep 25, 2023
5a6c51e
chore: 🤖 Fixed bump version script
jsimck Sep 25, 2023
1c32109
refactor: 💡 Changed TS build format back to esm
jsimck Oct 13, 2023
4152a9f
Merge remote-tracking branch 'origin/master' into preact-renderer
jsimck Oct 13, 2023
e74b055
feat: 🎸 Added support for custom entry points
jsimck Oct 13, 2023
5e8ad82
docs: ✏️ Updated README.md"
jsimck Oct 13, 2023
5861cb5
docs: ✏️ Updated README
jsimck Oct 13, 2023
a818e18
fix: 🐛 Fixed optional slotFactories prop in createWidgetFactory
jsimck Oct 13, 2023
935beb7
Merge remote-tracking branch 'origin/master' into preact-renderer
jsimck Feb 20, 2024
505a689
chore: 🤖 Moved types to plugin-component
jsimck Feb 20, 2024
b85a183
chore: 🤖 Fixed coverage check on custom telement
jsimck Feb 20, 2024
4e522cc
refactor: 💡 Moved plugin-component specific types from core to
jsimck Feb 29, 2024
cc0211f
refactor: 💡 Removed test zip
jsimck Feb 29, 2024
571c08e
ci: 🎡 fix build
mjancarik Mar 1, 2024
9866a10
docs: ✏️ update description
mjancarik Mar 1, 2024
463dfbf
Merge branch 'master' into preact-renderer
mjancarik Mar 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ module.exports = {
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
// 'plugin:@typescript-eslint/recommended-requiring-type-checking', // TODO
],
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/ban-ts-comment': [
'error',
{ 'ts-expect-error': false },
Expand Down
31 changes: 22 additions & 9 deletions createRollupConfig.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -201,22 +201,35 @@ function createRollupUMDConfig() {
function createRollupTypescriptConfig(options = {}) {
let config = createRollupConfig();

config.input = './src/index.ts';
config.input = options?.input ?? './src/index.ts';
config.watch = {
include: 'src/**',
};

config.output = {
dir: './lib',
entryFileNames: '[name].mjs',
format: 'esm',
exports: 'named',
sourcemap: true,
};
config.output = [
{
dir: options?.dir ?? './lib',
entryFileNames: '[name].cjs',
format: 'cjs',
exports: 'named',
},
{
dir: options?.dir ?? './lib',
entryFileNames: '[name].js',
format: 'cjs',
exports: 'named',
},
{
dir: options?.dir ?? './lib',
entryFileNames: '[name].mjs',
format: 'esm',
exports: 'named',
},
];

config.plugins.push(
typescript({
outDir: './lib',
outDir: options?.dir ?? './lib',
}),
options.watchMode &&
run({
Expand Down
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
exports = {
module.exports = {
bail: false,
verbose: true,
testEnvironment: 'node',
prettierPath: null,
coverageThreshold: {
global: {
functions: 50,
Expand Down
Loading
Loading