reduce artefact size
This commit is contained in:
parent
18fa365d9e
commit
0b1e9773da
4 changed files with 23 additions and 10 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
@ -45,6 +45,7 @@ jobs:
|
||||||
shadow-cljs release frontend
|
shadow-cljs release frontend
|
||||||
sha256sum public/js/main.js > target/dda-masto-embed.js.sha256
|
sha256sum public/js/main.js > target/dda-masto-embed.js.sha256
|
||||||
sha512sum public/js/main.js > target/dda-masto-embed.js.sha512
|
sha512sum public/js/main.js > target/dda-masto-embed.js.sha512
|
||||||
|
shadow-cljs run shadow.cljs.build-report frontend target/build-report.html
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
@ -66,7 +67,7 @@ jobs:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: public/js/main.js
|
asset_path: public/js/main.js
|
||||||
asset_name: dda-masto-embed.js
|
asset_name: dda-masto-embed.js
|
||||||
asset_content_type: application/json
|
asset_content_type: application/javascript
|
||||||
|
|
||||||
- name: Upload masto-embed.js.sha256
|
- name: Upload masto-embed.js.sha256
|
||||||
id: upload-masto-embed-js-sha256
|
id: upload-masto-embed-js-sha256
|
||||||
|
@ -77,7 +78,7 @@ jobs:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: target/dda-masto-embed.js.sha256
|
asset_path: target/dda-masto-embed.js.sha256
|
||||||
asset_name: dda-masto-embed.js.sha256
|
asset_name: dda-masto-embed.js.sha256
|
||||||
asset_content_type: application/json
|
asset_content_type: text/plain
|
||||||
|
|
||||||
- name: Upload masto-embed.js.sha512
|
- name: Upload masto-embed.js.sha512
|
||||||
id: upload-masto-embed-js-sha512
|
id: upload-masto-embed-js-sha512
|
||||||
|
@ -88,7 +89,18 @@ jobs:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: target/dda-masto-embed.js.sha512
|
asset_path: target/dda-masto-embed.js.sha512
|
||||||
asset_name: dda-masto-embed.js.sha512
|
asset_name: dda-masto-embed.js.sha512
|
||||||
asset_content_type: application/json
|
asset_content_type: text/plain
|
||||||
|
|
||||||
|
- name: Upload build report
|
||||||
|
id: report.html
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: target/build-report.html
|
||||||
|
asset_name: build-report.html
|
||||||
|
asset_content_type: text/html
|
||||||
|
|
||||||
- name: upload to npm
|
- name: upload to npm
|
||||||
env:
|
env:
|
||||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -15,4 +15,5 @@ pom.xml.asc
|
||||||
.shadow-cljs/
|
.shadow-cljs/
|
||||||
node_modules/
|
node_modules/
|
||||||
/public/js
|
/public/js
|
||||||
/out
|
/out
|
||||||
|
package-lock.json
|
||||||
|
|
10
package.json
10
package.json
|
@ -1,19 +1,19 @@
|
||||||
{
|
{
|
||||||
"name": "dda-masto-embed",
|
"name": "dda-masto-embed",
|
||||||
"author": "meissa GmbH",
|
"author": "meissa GmbH",
|
||||||
"version": "0.1.6",
|
"version": "0.1.7",
|
||||||
"homepage": "https://github.com/DomainDrivenArchitecture/dda-masto-embed",
|
"homepage": "https://github.com/DomainDrivenArchitecture/dda-masto-embed",
|
||||||
"repository": "https://github.com/DomainDrivenArchitecture/dda-masto-embed",
|
"repository": "https://github.com/DomainDrivenArchitecture/dda-masto-embed",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"shadow-cljs": "^2.8.104",
|
"shadow-cljs": "^2.8.104",
|
||||||
"source-map-support": "^0.5.19"
|
"source-map-support": "^0.5.19",
|
||||||
|
"eslint": ">=4.18.2",
|
||||||
|
"ajv": "^6.12.2",
|
||||||
|
"lodash.template": ">=4.5.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ajv": "^6.12.2",
|
|
||||||
"eslint": ">=4.18.2",
|
|
||||||
"lodash.template": ">=4.5.0",
|
|
||||||
"mastodon-api": "^1.3.0"
|
"mastodon-api": "^1.3.0"
|
||||||
},
|
},
|
||||||
"main": "mastodon-bot.js",
|
"main": "mastodon-bot.js",
|
||||||
|
|
|
@ -19,6 +19,6 @@
|
||||||
:release {:compiler-options {:optimizations :simple}}}
|
:release {:compiler-options {:optimizations :simple}}}
|
||||||
:frontend {:target :browser
|
:frontend {:target :browser
|
||||||
:modules {:main {:init-fn dda.masto-embed.app/init}}
|
:modules {:main {:init-fn dda.masto-embed.app/init}}
|
||||||
:release {:compiler-options {:optimizations :simple}}}}}
|
:release {}}}}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue