This file contains hidden or 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
#!/bin/bash | |
# | |
# Usage: | |
# ./make_certs.sh test.example.com | |
# | |
# The required input to make_certs.sh is the path to your pfx file without the .pfx prefix | |
# | |
# test.example.com.key | |
# test.example.com.crt (includes ca-certs) |
This file contains hidden or 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
# ADD TYPESCRIPT | |
yarn add typescript -D | |
yarn tsc --init | |
# its possible change configs in tsconfig.json | |
# ADD AUTOMATIC TRANSPILER TO DEV | |
yarn add ts-node-dev -D | |
# change package.json | |
"scripts": { |
This file contains hidden or 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
yarn add eslint -D | |
yarn eslint --init | |
remove packages-lock.json | |
yarn | |
yarn add prettier eslint-config-prettier eslint-plugin-prettier -D | |
.eslintrc.js: | |
module.exports = { |
This file contains hidden or 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
STEP 1 | |
yarn add babel-plugin-root-import -D | |
edit file babel.config.js and add: | |
plugins: [ | |
['babel-plugin-root-import', | |
{ | |
rootPathSuffix: 'src', | |
}] | |
] |
This file contains hidden or 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
STEP 1 (override webpack generated default by create-react-app and to add babel-plugin-root-import): | |
yarn add customize-cra react-app-rewired -D | |
yarn add babel-plugin-root-import -D | |
add file config-overrides.js: | |
const { addBabelPlugin, override } = require('customize-cra'); | |
module.exports = override( | |
addBabelPlugin([ | |
'babel-plugin-root-import', |
This file contains hidden or 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
remove .eslintrc.js of project | |
yarn add eslint -D | |
yarn eslint --init | |
remove packages-lock.json | |
yarn | |
#IF TYPESCRIPT | |
yarn add -D eslint-plugin-import @typescript-eslint/parser eslint-import-resolver-typescript | |
yarn add prettier eslint-config-prettier eslint-plugin-prettier babel-eslint -D |
This file contains hidden or 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
{"lastUpload":"2020-09-09T17:02:28.858Z","extensionVersion":"v3.4.3"} |