@codfish/actions-playground 0.0.0-PR-68--f461634 → 0.0.0-PR-69--d65a389

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.js ADDED
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ extends: ['./node_modules/cod-scripts/eslint.js'],
3
+ parserOptions: {
4
+ project: './tsconfig.eslint.json',
5
+ tsconfigRootDir: __dirname,
6
+ },
7
+ };
@@ -80,7 +80,7 @@ jobs:
80
80
  {
81
81
  'replacements': [
82
82
  {
83
- 'files': ['Dockerfile'],
83
+ 'files': ['Dockerfile'],
84
84
  'from': 'RELEASE_VERSION=.*',
85
85
  'to': 'RELEASE_VERSION=${nextRelease.version}'
86
86
  },
@@ -90,14 +90,14 @@ jobs:
90
90
  'to': 'ersion: ${nextRelease.version}'
91
91
  },
92
92
  {
93
- 'files': ['doesnt-exist.txt'],
94
- 'from': 'version=.*',
95
- 'to': 'RELEASE_VERSION=${nextRelease.version}'
93
+ 'files': ['app.config.ts'],
94
+ 'from': 'version: \'.*\'',
95
+ 'to': 'version: \'${nextRelease.version}\''
96
96
  }
97
97
  ]
98
98
  }
99
99
  ],
100
- [ '@semantic-release/git', {'assets': ['Dockerfile', 'provisioning/Chart.yml', 'doesnt-exist.txt']} ],
100
+ [ '@semantic-release/git', {'assets': ['Dockerfile', 'provisioning/Chart.yml']} ],
101
101
  [
102
102
  "@semantic-release/release-notes-generator",
103
103
  {
package/app.config.ts ADDED
@@ -0,0 +1,82 @@
1
+ import { ConfigContext, ExpoConfig } from 'expo/config';
2
+
3
+ const getAppIdSuffix = () => {
4
+ if (!process.env.APP_ENV || process.env.APP_ENV === 'production') {
5
+ return '';
6
+ }
7
+
8
+ return `.${process.env.APP_ENV}`; // e.g. '.beta'
9
+ };
10
+
11
+ const getAppNameSuffix = () => {
12
+ if (!process.env.APP_ENV || process.env.APP_ENV === 'production') {
13
+ return '';
14
+ }
15
+
16
+ return ` (${process.env.APP_ENV.toUpperCase()})`; // e.g. ' (Beta)'
17
+ };
18
+
19
+ const getAppLogo = () => {
20
+ if (process.env.APP_ENV === 'production') {
21
+ return './src/assets/logos/foo-app-icon.png';
22
+ }
23
+
24
+ return './src/assets/logos/foo-app-icon-beta.png';
25
+ };
26
+
27
+ export default ({ config }: ConfigContext): ExpoConfig => ({
28
+ ...config,
29
+ name: `Foo Mobile${getAppNameSuffix()}`,
30
+ slug: 'foomobile',
31
+ version: '2.0.0',
32
+ orientation: 'portrait',
33
+ icon: getAppLogo(),
34
+ scheme: 'foomobile',
35
+ userInterfaceStyle: 'automatic',
36
+ splash: {
37
+ image: './src/assets/logos/splash.png',
38
+ resizeMode: 'contain',
39
+ backgroundColor: '#FFFFFF',
40
+ },
41
+ ios: {
42
+ supportsTablet: true,
43
+ bundleIdentifier: `com.foo.oacmobile${getAppIdSuffix()}`,
44
+ entitlements: {
45
+ 'com.apple.developer.networking.wifi-info': true,
46
+ },
47
+ },
48
+ android: {
49
+ package: `com.foo.oac${getAppIdSuffix()}`,
50
+ },
51
+ plugins: [
52
+ 'expo-router',
53
+ [
54
+ 'react-native-auth0',
55
+ {
56
+ domain: 'foo-foo-testing-temporary.us.auth0.com',
57
+ },
58
+ ],
59
+ 'expo-secure-store',
60
+ 'expo-font',
61
+ [
62
+ '@sentry/react-native/expo',
63
+ {
64
+ url: 'https://sentry.io/',
65
+ project: 'foo-mobile',
66
+ organization: 'foo',
67
+ },
68
+ ],
69
+ ],
70
+ experiments: {
71
+ typedRoutes: true,
72
+ },
73
+ extra: {
74
+ eas: {
75
+ projectId: 'c4d7f3e1-9a2b-4d8f-b5e6-8c1f2a3b4d5e',
76
+ },
77
+ router: {
78
+ origin: false,
79
+ },
80
+ },
81
+ owner: 'foo',
82
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codfish/actions-playground",
3
- "version": "0.0.0-PR-68--f461634",
3
+ "version": "0.0.0-PR-69--d65a389",
4
4
  "description": "My own testing ground for messing around with GitHub Actions.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -34,9 +34,13 @@
34
34
  "devDependencies": {
35
35
  "@commitlint/cli": "^8.2.0",
36
36
  "@commitlint/config-conventional": "^8.2.0",
37
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
38
+ "@typescript-eslint/parser": "^5.62.0",
37
39
  "cod-scripts": "^12.0.0",
40
+ "eslint": "^8.56.0",
38
41
  "jsdoc": "^3.6.3",
39
- "markdownlint-cli": "^0.18.0"
42
+ "markdownlint-cli": "^0.18.0",
43
+ "typescript": "^4.9.5"
40
44
  },
41
45
  "dependencies": {
42
46
  "@babel/runtime": "^7.7.4",
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "include": [
4
+ "src",
5
+ "app.config.ts",
6
+ "*.ts",
7
+ "*.tsx"
8
+ ]
9
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "esModuleInterop": true,
8
+ "allowSyntheticDefaultImports": true,
9
+ "strict": true,
10
+ "forceConsistentCasingInFileNames": true,
11
+ "noFallthroughCasesInSwitch": true,
12
+ "module": "esnext",
13
+ "moduleResolution": "node",
14
+ "resolveJsonModule": true,
15
+ "isolatedModules": true,
16
+ "noEmit": true,
17
+ "jsx": "react-jsx"
18
+ },
19
+ "include": ["src", "app.config.ts"],
20
+ "exclude": ["node_modules"]
21
+ }