Skip to content

Commit

Permalink
Merge pull request #3 from lucafoscili/next
Browse files Browse the repository at this point in the history
refactor: surprisingly stable!
  • Loading branch information
lucafoscili authored Feb 14, 2025
2 parents 46c8605 + 76d5dc1 commit 26aa1ba
Show file tree
Hide file tree
Showing 71 changed files with 43,762 additions and 1,345 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import importlib.util

VERSION = "0.1.0"
VERSION = "0.2.0"

NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Luca Foscili",
"url": "https://www.lucafoscili.com"
},
"version": "0.1.0",
"version": "0.2.0",
"type": "module",
"scripts": {
"clean": "node ./web/src/scripts/clean.js",
Expand All @@ -16,10 +16,10 @@
"build": "yarn clean && yarn build:scss && yarn build:ts && yarn build:lfw && yarn build:vite"
},
"devDependencies": {
"@lf-widgets/assets": "^0.3.2-rc.1",
"@lf-widgets/core": "^0.3.2-rc.1",
"@lf-widgets/foundations": "^0.3.2-rc.1",
"@lf-widgets/framework": "^0.3.2-rc.1",
"@lf-widgets/assets": "^0.3.2",
"@lf-widgets/core": "^0.3.2",
"@lf-widgets/foundations": "^0.3.2",
"@lf-widgets/framework": "^0.3.2",
"@types/node": "^22",
"fs-extra": "^11",
"rollup-plugin-visualizer": "^5",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "lf-nodes"
description = "LF Nodes new release - Work in progress"
version = "0.1.0"
version = "0.2.0"
license = {file = "LICENSE"}
dependencies = []

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"isolatedModules": true,
"lib": ["dom", "esnext"],
"module": "ES2020",
"moduleResolution": "node",
"moduleResolution": "bundler",
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
Expand Down
23 changes: 8 additions & 15 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,20 @@ import { defineConfig } from 'vite';

export default defineConfig({
base: './',
root: resolve(__dirname, 'web/temp'),
build: {
assetsDir: '.',
outDir: resolve(__dirname, 'web/deploy/js'),
emptyOutDir: true,
lib: {
formats: ['es'],
name: 'lf-nodes',
entry: resolve(__dirname, 'web/temp/index.js'),
},
outDir: resolve(__dirname, 'web/deploy/js'),
minify: false,
rollupOptions: {
external: ['/scripts/api.js', '/scripts/app.js'],
input: {
'lf-core': resolve(__dirname, 'web/temp/@lf-widgets/core/dist/lf-core/lf-core.esm.js'),
'lf-nodes': resolve(__dirname, 'web/temp/index.js'),
},
plugins: [visualizer({ open: false, filename: 'web/temp/bundle-stats.html' })],
treeshake: {
moduleSideEffects: (id) => {
const shouldKeep =
id.includes('@lf-widgets/foundations') ||
id.includes('@lf-widgets/framework') ||
id.includes('@lf-widgets/core');
return shouldKeep;
},
},
},
},
root: resolve(__dirname, 'web/temp'),
});
13 changes: 11 additions & 2 deletions web/deploy/css/_index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/deploy/css/_index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion web/deploy/js/effects.constants-qYuHpqrU.js

This file was deleted.

Loading

0 comments on commit 26aa1ba

Please sign in to comment.