This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added loadable example configs from query string (#273)
* feat: added loadable config from query * feat: load example configs
- Loading branch information
Showing
7 changed files
with
248 additions
and
75 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
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
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 @@ | ||
{ | ||
"version": 2.1, | ||
"setup": false, | ||
"jobs": {}, | ||
"workflows": { | ||
"build-and-deploy": { | ||
"jobs": [ | ||
{ | ||
"node/test": { | ||
"run-command": "test:unit", | ||
"pkg-manager": "yarn" | ||
} | ||
}, | ||
{ | ||
"heroku/deploy-via-git": { | ||
"context": ["cfd-deploy"], | ||
"requires": ["node/test"], | ||
"filters": { | ||
"branches": { | ||
"only": ["main"] | ||
} | ||
}, | ||
"app-name": "cfd-sample" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"orbs": { | ||
"node": "circleci/[email protected]", | ||
"heroku": "circleci/[email protected]" | ||
} | ||
} |
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,9 @@ | ||
import blogpost from './blogpost.json'; | ||
import readme from './readme.json'; | ||
|
||
const templates = { | ||
blogpost, | ||
readme, | ||
}; | ||
|
||
export default templates; |
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,93 @@ | ||
{ | ||
"version": 2.1, | ||
"setup": false, | ||
"jobs": { | ||
"build": { | ||
"steps": [ | ||
"checkout", | ||
{ | ||
"run": { | ||
"command": "yarn build" | ||
} | ||
}, | ||
{ | ||
"persist_to_workspace": { | ||
"root": "../", | ||
"paths": ["build"] | ||
} | ||
} | ||
], | ||
"docker": [ | ||
{ | ||
"image": "cimg/node:16.11.1" | ||
} | ||
], | ||
"resource_class": "medium" | ||
}, | ||
"test": { | ||
"steps": [ | ||
{ | ||
"attach_workspace": { | ||
"at": "." | ||
} | ||
}, | ||
{ | ||
"run": { | ||
"command": "yarn test", | ||
"working_directory": "~/project/build" | ||
} | ||
}, | ||
{ | ||
"persist_to_workspace": { | ||
"root": ".", | ||
"paths": ["build"] | ||
} | ||
} | ||
], | ||
"docker": [ | ||
{ | ||
"image": "cimg/node:16.11.1" | ||
} | ||
], | ||
"resource_class": "medium" | ||
}, | ||
"deploy": { | ||
"steps": [ | ||
{ | ||
"attach_workspace": { | ||
"at": "." | ||
} | ||
}, | ||
{ | ||
"run": { | ||
"command": "yarn deploy", | ||
"working_directory": "~/project/build" | ||
} | ||
} | ||
], | ||
"docker": [ | ||
{ | ||
"image": "cimg/node:16.11.1" | ||
} | ||
], | ||
"resource_class": "medium" | ||
} | ||
}, | ||
"workflows": { | ||
"build-and-test": { | ||
"jobs": [ | ||
"build", | ||
{ | ||
"test": { | ||
"requires": ["build"] | ||
} | ||
}, | ||
{ | ||
"deploy": { | ||
"requires": ["test"] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
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
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