mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
remove ui.js and update build process
This commit is contained in:
@@ -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([
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user