This repository has been archived by the owner on May 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added IdeaSource background. README.md updated
- Loading branch information
OrangeLoops
authored
Jul 22, 2019
1 parent
62d1fcb
commit 0442e6f
Showing
164 changed files
with
15,012 additions
and
2 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,59 @@ | ||
"use strict"; | ||
|
||
module.exports = function(api) { | ||
api.cache.using(() => process.env.NODE_ENV); | ||
|
||
const presets = [ | ||
[ | ||
"@babel/env", | ||
{ | ||
modules: api.env("test") ? undefined : false, | ||
useBuiltIns: "entry", | ||
corejs: { | ||
version: 3, | ||
}, | ||
debug: false, | ||
}, | ||
], | ||
"@babel/typescript", | ||
"@babel/react", | ||
]; | ||
|
||
const plugins = [ | ||
"@babel/plugin-transform-runtime", | ||
[ | ||
"@babel/plugin-proposal-decorators", | ||
{ | ||
legacy: true, | ||
}, | ||
], | ||
[ | ||
"@babel/plugin-proposal-class-properties", | ||
{ | ||
loose: true, | ||
}, | ||
], | ||
[ | ||
"import", | ||
{ | ||
libraryName: "antd", | ||
libraryDirectory: api.env("test") ? undefined : "es", | ||
style: true, | ||
}, | ||
], | ||
"@babel/plugin-proposal-optional-catch-binding", | ||
"@babel/plugin-proposal-optional-chaining", | ||
"@babel/plugin-syntax-dynamic-import", | ||
"lodash", | ||
]; | ||
|
||
return { | ||
presets: presets, | ||
plugins: plugins, | ||
env: { | ||
test: { | ||
presets: presets, | ||
}, | ||
}, | ||
}; | ||
}; |
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 @@ | ||
> 1% | ||
last 2 versions | ||
safari >= 6 | ||
not ie > 0 | ||
not ie_mob > 0 | ||
not edge <= 15 | ||
not op_mini all |
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,20 @@ | ||
{ | ||
"files": [ | ||
{ | ||
"path": "./build/**/*.{js,ttf}", | ||
"maxSize": "300 kB" | ||
}, | ||
{ | ||
"path": "./build/**/*.{png,svg,jpg,jpeg}", | ||
"maxSize": "250 kB" | ||
}, | ||
{ | ||
"path": "./build/**/*.{css,scss}", | ||
"maxSize": "50 kB" | ||
}, | ||
{ | ||
"path": "./build/**/*.html", | ||
"maxSize": "50 kB" | ||
} | ||
] | ||
} |
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,6 @@ | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = false | ||
indent_style = space | ||
indent_size = 2 |
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 @@ | ||
BUNDLE_NAME=IdeaSource | ||
BROWSERSLIST_CONFIG=.browserslistrc | ||
PORT=5000 |
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,2 @@ | ||
GENERATE_SOURCEMAP=true | ||
REACT_APP_SERVER_BASE_URI=https://ideasource-staging.appspot.com/graphql |
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 @@ | ||
GENERATE_SOURCEMAP=false |
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,4 @@ | ||
build/* | ||
.storybook_build/* | ||
node_modules/* | ||
typings/* |
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,33 @@ | ||
module.exports = { | ||
extends: ["plugin:@typescript-eslint/recommended", "prettier/@typescript-eslint", "plugin:prettier/recommended"], // "plugin:jsx-a11y/recommended", "plugin:jest/recommended" | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: "module", | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
rules: { | ||
"prettier/prettier": "warn", | ||
|
||
"@typescript-eslint/ban-types": "off", | ||
"@typescript-eslint/camelcase": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/explicit-member-accessibility": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-object-literal-type-assertion": "off", | ||
"@typescript-eslint/no-parameter-properties": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/prefer-interface": "off", | ||
}, | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
}, | ||
}; |
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,43 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# testing | ||
/.temp/ | ||
/coverage | ||
|
||
# production | ||
/.storybook_build/ | ||
/build/ | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env.release.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# webstorm | ||
/.idea/ | ||
/.idea/httpRequests | ||
/.idea/inspectionProfiles/profiles_settings.xml | ||
/.idea/usage.statistics.xml | ||
/.idea/workspace.xml | ||
|
||
# others | ||
.cache | ||
.Spotlight-V100 | ||
.Trashes | ||
Thumbs.db | ||
Desktop.ini | ||
package-lock.json | ||
/src/**/*.d.ts | ||
|
||
/.server/cloud_sql_proxy | ||
/.server/*-client-key.json |
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 @@ | ||
[submodule "src/services"] | ||
path = src/services | ||
url = https://github.com/orangeloops/phoenix-shared.git |
Oops, something went wrong.