|
@@ -25,6 +25,7 @@ yarn add react-bootstrap \
|
|
|
|
|
|
|
|
|
|
# disable auto-open browser
|
|
# disable auto-open browser
|
|
|
|
+sed -i "s_console.log(chalk.cyan('Starting the development server_//console.log(chalk.cyan('Starting the development server_g" node_modules/react-scripts/scripts/start.js
|
|
sed -i 's_openBrowser(_//openBrowser(_g' node_modules/react-scripts/scripts/start.js
|
|
sed -i 's_openBrowser(_//openBrowser(_g' node_modules/react-scripts/scripts/start.js
|
|
|
|
|
|
|
|
|
|
@@ -34,10 +35,12 @@ echo "*.swp" >> .gitignore
|
|
|
|
|
|
|
|
|
|
# add to package.json
|
|
# add to package.json
|
|
|
|
+sed -i 's/"name": "/"name": "@catallaxy\//g' package.json
|
|
sed -i 's/"private": true/"private": true,\n "author": "Brandon Wong <wong.brandon@rcgt.com> (https:\/\/www.catallaxy.com\/)"/g' package.json
|
|
sed -i 's/"private": true/"private": true,\n "author": "Brandon Wong <wong.brandon@rcgt.com> (https:\/\/www.catallaxy.com\/)"/g' package.json
|
|
|
|
|
|
|
|
|
|
# add to index.html
|
|
# add to index.html
|
|
|
|
+sed -i "s_<title>React App</title>_<title>$(echo $foldername | sed 's/-client$//g')</title>_" public/index.html
|
|
sed -i 's_ </head>_\n <!-- Bootstrap CSS -->\n <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">\n <!-- Optional Bootstrap theme -->\n <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css">\n </head>_' public/index.html
|
|
sed -i 's_ </head>_\n <!-- Bootstrap CSS -->\n <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">\n <!-- Optional Bootstrap theme -->\n <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css">\n </head>_' public/index.html
|
|
|
|
|
|
|
|
|