Skip to content

Commit

Permalink
handle amplify
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc authored and tiensonqin committed Aug 4, 2023
1 parent abbd35a commit f9b8f69
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 147 deletions.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ const common = {
'node_modules/shepherd.js/dist/js/shepherd.min.js',
'node_modules/marked/marked.min.js',
'node_modules/@highlightjs/cdn-assets/highlight.min.js',
'node_modules/@isomorphic-git/lightning-fs/dist/lightning-fs.min.js'
'node_modules/@isomorphic-git/lightning-fs/dist/lightning-fs.min.js',
'packages/amplify/dist/amplify.js'
]).pipe(gulp.dest(path.join(outputPath, 'js'))),
() => gulp.src([
'node_modules/pdfjs-dist/build/pdf.js',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
"ios:dev": "cross-env PLATFORM=ios gulp cap",
"android:dev": "cross-env PLATFORM=android gulp cap",
"tldraw:build": "yarn --cwd tldraw install",
"postinstall": "yarn tldraw:build"
"amplify:build": "yarn --cwd packages/amplify install",
"postinstall": "yarn tldraw:build && yarn amplify:build "
},
"dependencies": {
"@capacitor/android": "^4.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"dev:amplify": "parcel watch ./src/amplify.ts --dist-dir ../src/main/frontend/ --no-hmr --no-source-maps",
"dev:examples": "parcel serve ./examples/index.html",
"build:amplify": "parcel build ./src/amplify.ts --dist-dir ../../resources/js --no-source-maps && mv ../../resources/js/amplify.css ../../resources/css/"
"build:amplify": "parcel build ./src/amplify.ts --no-source-maps",
"postinstall": "yarn build:amplify"
},
"devDependencies": {
"buffer": "^5.5.0",
Expand Down
1 change: 0 additions & 1 deletion resources/css/amplify.css

This file was deleted.

142 changes: 0 additions & 142 deletions resources/js/amplify.js

This file was deleted.

2 changes: 1 addition & 1 deletion tailwind.all.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@import "reveal.js/dist/theme/black.css";
@import "photoswipe/dist/photoswipe.css";
@import "shepherd.js/dist/css/shepherd.css";
@import "resources/css/amplify.css";
@import "packages/amplify/dist/amplify.css";
@import "tldraw/apps/tldraw-logseq/src/styles.css";
@import "katex/dist/katex.min.css";
@import "codemirror/lib/codemirror.css";
Expand Down

0 comments on commit f9b8f69

Please sign in to comment.