Skip to content

Commit e49f53a

Browse files
author
Pascal Wegner
authored
Merge pull request #131 from flextremedev/pwa-package
PWA package
2 parents f9e7d29 + 2dffc56 commit e49f53a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+155006
-13159
lines changed

.yarn/releases/yarn-1.17.3.cjs

Lines changed: 147123 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
yarn-path ".yarn/releases/yarn-1.17.3.cjs"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"mobile": "yarn workspace @interval-timer/mobile start",
1212
"mobile-test": "yarn workspace @interval-timer/mobile run test",
1313
"mobile-test-ci": "yarn workspace @interval-timer/mobile run test --runInBand --coverage",
14+
"pwa": "yarn workspace @interval-timer/pwa",
1415
"web": "yarn workspace @interval-timer/web run start",
1516
"web-build": "yarn workspace @interval-timer/web run build",
1617
"web-lint": "yarn workspace @interval-timer/web run lint:fix",
@@ -35,7 +36,6 @@
3536
"typescript": "^4.2.3"
3637
},
3738
"resolutions": {
38-
"babel-jest": "^26.0.0",
3939
"react": "^17.0.0",
4040
"react-dom": "^17.0.0",
4141
"webpack": "~4.44.0"

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ export * from './hooks';
22
export * from './utils';
33
export { timerMachine } from './machine/timerMachine';
44
export * from './machine/types';
5-
export { timerStates } from './model/timerStates';
5+
export * from './model/timerStates';

packages/core/src/model/timerStates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* istanbul ignore file */
22
/* covered by app integration test */
3-
type TTimerStates = {
3+
export type TTimerStates = {
44
STOPPED: 'STOPPED';
55
PREWORK: 'PREWORK';
66
WORK: 'WORK';

packages/mobile/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"date-fns": "^2.1.0",
1616
"expo": "~40.0.0",
1717
"expo-status-bar": "~1.0.3",
18-
"react": "16.13.1",
19-
"react-dom": "16.13.1",
18+
"react": "^17.0.2",
19+
"react-dom": "^17.0.2",
2020
"react-native": "https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz",
2121
"react-native-web": "~0.13.12"
2222
},

packages/pwa/.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../.babelrc",
3+
"presets": ["next/babel"]
4+
}

packages/pwa/.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@flextremedev/eslint-config-react-typescript"
3+
}

packages/pwa/.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env.local
29+
.env.development.local
30+
.env.test.local
31+
.env.production.local
32+
33+
# vercel
34+
.vercel

packages/pwa/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Progressive Web App Example
2+
3+
This example uses [`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/).
4+
5+
## Deploy your own
6+
7+
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
8+
9+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/progressive-web-app&project-name=progressive-web-app&repository-name=progressive-web-app)
10+
11+
## How to use
12+
13+
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
14+
15+
```bash
16+
npx create-next-app --example progressive-web-app progressive-web-app
17+
# or
18+
yarn create next-app --example progressive-web-app progressive-web-app
19+
```
20+
21+
Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).

0 commit comments

Comments
 (0)