This repository was archived by the owner on Jun 2, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed
Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,38 @@ direnv allow .
232232yarn run start
233233```
234234
235+ <details >
236+ <summary >Fish shell function</summary >
237+
238+ ``` fish
239+ # add ~/.config/fish/config.fish
240+ function generate-web-project
241+ set project $argv[1]
242+ set app $argv[2]
243+
244+ if [ -z $project ] || [ -z $app ]
245+ echo "Undefined arguments $project $app : generate-web-project project app"
246+ else
247+ # create a workspace directory
248+ generate-github-directory https://github.com/rocket-hangar/workspace-template $project
249+ cd $project
250+
251+ # create an app
252+ generate-github-directory https://github.com/rocket-hangar/rocket-scripts-templates/tree/master/templates/web $app
253+ cd $app
254+ cp .envrc.template .envrc
255+ direnv allow .
256+ cd ..
257+
258+ echo "👍 Generated! follow next steps"
259+ echo "Add $app to workspaces of package.json"
260+ echo "And, yarn install"
261+ end
262+ end
263+ ```
264+
265+ </details >
266+
235267# Quick start React Electron app development
236268
237269< https://github.com/rocket-hangar/rocket-scripts-templates/tree/master/templates/electron >
@@ -260,4 +292,4 @@ yarn run start
260292
261293# More repositories for reference
262294
263- - < https://github.com/rocket-hangar/rocket-scripts-templates >
295+ - < https://github.com/rocket-hangar/rocket-scripts-templates >
You can’t perform that action at this time.
0 commit comments