remove ui.js and update build process

This commit is contained in:
Konstantinos Kaloutas
2024-01-26 12:29:53 +02:00
parent 544c7b5317
commit 8fd90fa90a
5 changed files with 6 additions and 15 deletions

View File

@@ -65,6 +65,7 @@ const common = {
'node_modules/@highlightjs/cdn-assets/highlight.min.js',
'node_modules/@isomorphic-git/lightning-fs/dist/lightning-fs.min.js',
'packages/amplify/dist/amplify.js',
'packages/ui/dist/ui.js',
'node_modules/@logseq/sqlite-wasm/sqlite-wasm/jswasm/sqlite3.wasm',
]).pipe(gulp.dest(path.join(outputPath, 'js'))),
() => gulp.src([

View File

@@ -76,7 +76,8 @@
"android:dev": "cross-env PLATFORM=android gulp cap",
"tldraw:build": "yarn --cwd packages/tldraw install",
"amplify:build": "yarn --cwd packages/amplify install",
"postinstall": "yarn tldraw:build && yarn amplify:build "
"ui:build": "yarn --cwd packages/ui install",
"postinstall": "yarn tldraw:build && yarn amplify:build && yarn ui:build"
},
"dependencies": {
"@capacitor/android": "^5.0.0",

View File

@@ -6,9 +6,9 @@
"scripts": {
"watch:ui:examples": "parcel serve ./examples/index.html",
"build:ui:only": "parcel build --target ui --no-source-maps",
"build:ui": "rm -rf .parcel-cache && yarn build:ui:only && cp dist/index.js ../../resources/js/ui.js",
"build:ui": "rm -rf .parcel-cache && yarn build:ui:only",
"watch:storybook": "storybook dev -p 6006",
"_postinstall": "yarn build:ui"
"postinstall": "yarn build:ui"
},
"dependencies": {
"@hookform/resolvers": "^3.3.2",
@@ -84,7 +84,7 @@
"targets": {
"main": false,
"ui": {
"source": "src/index.ts",
"source": "src/ui.ts",
"outputFormat": "global",
"includeNodeModules": {
"react": false,

File diff suppressed because one or more lines are too long