generated from snowball-test/test-progressive-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5fab9bc
Showing
28 changed files
with
6,060 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CERC_TEST_WEBAPP_CONFIG1="this string" | ||
CERC_TEST_WEBAPP_CONFIG2="this different string" | ||
CERC_WEBAPP_DEBUG=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish ApplicationRecord to Registry | ||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_LACONIC_USER_KEY }} | ||
CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_LACONIC_BOND_ID }} | ||
|
||
jobs: | ||
cns_publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Clone project repository" | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: "Install Yarn" | ||
run: npm install -g yarn | ||
- name: "Install registry CLI" | ||
run: | | ||
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/ | ||
yarn global add @cerc-io/laconic-registry-cli | ||
- name: "Install jq" | ||
run: apt -y update && apt -y install jq | ||
- name: "Publish Application Record" | ||
run: scripts/publish-app-record.sh | ||
- name: "Request Deployment" | ||
run: scripts/request-app-deployment.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
# next-pwa | ||
/public/precache.*.*.js | ||
/public/sw.js | ||
/public/workbox-*.js | ||
/public/worker-*.js | ||
/public/fallback-*.js | ||
/public/precache.*.*.js.map | ||
/public/sw.js.map | ||
/public/workbox-*.js.map | ||
/public/worker-*.js.map | ||
/public/fallback-*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Test Progressive Web App | ||
|
||
This example used [`next-pwa`](https://github.com/shadowwalker/next-pwa) to create a progressive web app (PWA) powered by [Workbox](https://developers.google.com/web/tools/workbox/). | ||
|
||
## Deploy your own | ||
|
||
(Under construction) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const withPWA = require('next-pwa')({ | ||
dest: 'public', | ||
}) | ||
|
||
module.exports = withPWA({ | ||
env: { | ||
CERC_TEST_WEBAPP_CONFIG1: process.env.CERC_TEST_WEBAPP_CONFIG1, | ||
CERC_TEST_WEBAPP_CONFIG2: process.env.CERC_TEST_WEBAPP_CONFIG2, | ||
CERC_WEBAPP_DEBUG: process.env.CERC_WEBAPP_DEBUG, | ||
}, | ||
}) |
Oops, something went wrong.