Skip to content

Commit 5eea60c

Browse files
authored
Merge pull request #87 from flexbox/fixTild
fix tild
2 parents 54f86ed + 1f0f001 commit 5eea60c

File tree

7 files changed

+39
-12505
lines changed

7 files changed

+39
-12505
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# macOS
22
.DS_Store
3+
node_modules/
4+
node_modules/.yarn-integrity
5+
yarn.lock

hackathon/react-native-heroes/.eslintrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,13 @@
33
"rules": {
44
"camelcase": "off",
55
"import/no-extraneous-dependencies": 0
6+
},
7+
"settings": {
8+
"import/resolver": {
9+
"babel-plugin-root-import": {
10+
"rootPathPrefix": "~",
11+
"rootPathSuffix": "src"
12+
}
13+
}
614
}
715
}

hackathon/react-native-heroes/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ npm-debug.*
1010
*.orig.*
1111
web-build/
1212
.env
13-
13+
yarn.lock
14+
.yarn-integrity
15+
node_modules/.yarn-integrity
1416
# macOS
1517
.DS_Store
1618

hackathon/react-native-heroes/babel.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,19 @@ module.exports = function (api) {
22
api.cache(true);
33
return {
44
presets: ["babel-preset-expo"],
5+
env: {
6+
production: {
7+
plugins: ["transform-remove-console"],
8+
},
9+
},
10+
plugins: [
11+
[
12+
"babel-plugin-root-import",
13+
{
14+
rootPathPrefix: "~/",
15+
rootPathSuffix: "./src/",
16+
},
17+
],
18+
],
519
};
620
};

hackathon/react-native-heroes/package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33
"version": "1.0.0",
44
"main": "node_modules/expo/AppEntry.js",
55
"scripts": {
6-
"start": "expo start",
7-
"android": "expo start --android",
8-
"ios": "expo start --ios",
9-
"web": "expo start --web",
6+
"start": "expo start --clear",
7+
"android": "expo start --android --clear",
8+
"ios": "expo start --ios --clear",
9+
"web": "expo start --web --clear",
1010
"eject": "expo eject",
1111
"lint": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx .",
12-
"cache:clear": "watchman watch-del-all && rm -rf node_modules yarn.lock && yarn install"
12+
"cache:clear": "watchman watch-del-all && rm -rf node_modules yarn.lock && yarn install",
13+
"deploy:expo": "expo publish --release-channel prod ",
14+
"deploy:web": "expo build:web && cd web-build && vercel && cd ..",
15+
"release": "yarn deploy:expo && yarn deploy:web"
1316
},
1417
"dependencies": {
1518
"@apollo/client": "^3.6.4",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"extends": "eslint-config-react-native-wcandillon/tsconfig.base",
33
"compilerOptions": {
4-
"jsx": "react",
4+
"jsx": "react-native",
55
"strict": true,
66
"baseUrl": "./",
77
"paths": {
8-
"~/*": ["src/*"],
9-
},
8+
"~/*": ["src/*"]
9+
}
1010
}
1111
}

0 commit comments

Comments
 (0)