mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
enhance(capacitor): dev scripts
This commit is contained in:
19
gulpfile.js
19
gulpfile.js
@@ -23,6 +23,14 @@ const css = {
|
||||
})
|
||||
},
|
||||
|
||||
watchCapacitorNewCSS () {
|
||||
return cp.spawn(`yarn css:capacitor-new-watch`, {
|
||||
shell: true,
|
||||
stdio: 'inherit',
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
buildCSS (...params) {
|
||||
return gulp.series(
|
||||
() => exec(`yarn css:build`, {}),
|
||||
@@ -102,6 +110,14 @@ const common = {
|
||||
'node_modules/@tabler/icons-webfont/fonts/**',
|
||||
'node_modules/katex/dist/fonts/*.woff2',
|
||||
]).pipe(gulp.dest(path.join(outputPath, 'css', 'fonts'))),
|
||||
() => gulp.src([
|
||||
'node_modules/@ionic/core/dist/ionic/**',
|
||||
'node_modules/react/umd/react.production.min.js',
|
||||
'node_modules/react/umd/react.development.js',
|
||||
'node_modules/react-dom/umd/react-dom.production.min.js',
|
||||
'node_modules/react-dom/umd/react-dom.development.js',
|
||||
'node_modules/prop-types/prop-types.min.js'
|
||||
]).pipe(gulp.dest(path.join(outputPath, 'capacitor', 'js')))
|
||||
)(...params)
|
||||
},
|
||||
|
||||
@@ -237,5 +253,8 @@ exports.watch = gulp.series(common.syncResourceFile,
|
||||
common.syncAssetFiles, common.syncAllStatic,
|
||||
common.switchReactDevelopmentMode,
|
||||
gulp.parallel(common.keepSyncResourceFile, css.watchCSS))
|
||||
exports.capacitorNewWatch = gulp.series(common.syncResourceFile,
|
||||
common.syncAssetFiles, common.syncAllStatic,
|
||||
gulp.parallel(common.keepSyncResourceFile, css.watchCapacitorNewCSS))
|
||||
exports.build = gulp.series(common.clean, common.syncResourceFile,
|
||||
common.syncAssetFiles, css.buildCSS)
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
"css:watch": "cross-env TAILWIND_MODE=watch postcss tailwind.all.css -o static/css/style.css --verbose --watch",
|
||||
"cljs:watch": "clojure -M:cljs watch app electron",
|
||||
"cljs:storybook-watch": "clojure -M:cljs watch stories-dev",
|
||||
"gulp:capacitor-new-watch": "gulp capacitorNewWatch",
|
||||
"css:capacitor-new-watch": "cross-env TAILWIND_MODE=watch postcss tailwind.capacitor.css -o static/capacitor/style.css --verbose --watch",
|
||||
"cljs:capacitor-new-watch": "clojure -M:cljs watch capacitor-new",
|
||||
"cljs:app-watch": "clojure -M:cljs watch app",
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0">
|
||||
<link href="./ionic.bundle.css" rel="stylesheet">
|
||||
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.esm.js"></script>
|
||||
<script nomodule src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.js"></script>
|
||||
<link href="./style.css" rel="stylesheet" type="text/css">
|
||||
<title>Logseq: A privacy-first platform for knowledge management and collaboration</title>
|
||||
</head>
|
||||
@@ -14,13 +12,14 @@
|
||||
<script defer src="./js/react.production.min.js"></script>
|
||||
<script defer src="./js/react-dom.production.min.js"></script>
|
||||
<script defer src="./js/prop-types.min.js"></script>
|
||||
<script defer type="module" src="./js/ionic.esm.js"></script>
|
||||
<script defer src="./js/tabler-icons-react.min.js"></script>
|
||||
<script defer src="./shared.js"></script>
|
||||
<script defer src="./main.js"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
window.Ionic?.initialize?.()
|
||||
window.Capacitor?.Plugins.SplashScreen.hide()
|
||||
window.Capacitor?.Plugins?.SplashScreen?.hide()
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
resources/capacitor/js/prop-types.min.js
vendored
1
resources/capacitor/js/prop-types.min.js
vendored
@@ -1 +0,0 @@
|
||||
!function(f){"object"==typeof exports&&"undefined"!=typeof module?module.exports=f():"function"==typeof define&&define.amd?define([],f):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PropTypes=f()}(function(){return function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var p="function"==typeof require&&require;if(!f&&p)return p(i,!0);if(u)return u(i,!0);throw(p=new Error("Cannot find module '"+i+"'")).code="MODULE_NOT_FOUND",p}p=n[i]={exports:{}},e[i][0].call(p.exports,function(r){return o(e[i][1][r]||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}({1:[function(require,module,exports){"use strict";var ReactPropTypesSecret=require(3);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,module.exports=function(){function e(e,t,n,r,o,c){if(c!==ReactPropTypesSecret){c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return n.PropTypes=n}},{3:3}],2:[function(require,module,exports){module.exports=require(1)()},{1:1}],3:[function(require,module,exports){"use strict";module.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}]},{},[2])(2)});
|
||||
29924
resources/capacitor/js/react-dom.production.min.js
vendored
29924
resources/capacitor/js/react-dom.production.min.js
vendored
File diff suppressed because it is too large
Load Diff
3343
resources/capacitor/js/react.production.min.js
vendored
3343
resources/capacitor/js/react.production.min.js
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user