forked from sphinx-labs/sphinx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pg): read sample chugsplash file instead of copying from source
- Loading branch information
1 parent
8d18b0f
commit b70b268
Showing
6 changed files
with
67 additions
and
54 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,5 @@ | ||
--- | ||
'@chugsplash/plugins': patch | ||
--- | ||
|
||
Fix chugsplash-init bug where task attempted to copy from non-existent file |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './sample-contract' | ||
export * from './sample-tests' | ||
export * from './sample-chugsplash-files' |
41 changes: 41 additions & 0 deletions
41
packages/plugins/src/sample-project/sample-chugsplash-files.ts
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,41 @@ | ||
export const sampleChugSplashFileTypeScript = `import { UserChugSplashConfig } from '@chugsplash/core' | ||
const config: UserChugSplashConfig = { | ||
options: { | ||
projectName: 'Hello ChugSplash', | ||
}, | ||
contracts: { | ||
MyFirstContract: { | ||
contract: 'HelloChugSplash', | ||
variables: { | ||
number: 1, | ||
stored: true, | ||
storageName: 'First', | ||
otherStorage: '0x1111111111111111111111111111111111111111', | ||
}, | ||
}, | ||
}, | ||
} | ||
export default config | ||
` | ||
|
||
export const sampleChugSplashFileJavaScript = `require('@chugsplash/core') | ||
module.exports = { | ||
options: { | ||
projectName: 'Hello ChugSplash', | ||
}, | ||
contracts: { | ||
MyFirstContract: { | ||
contract: 'HelloChugSplash', | ||
variables: { | ||
number: 1, | ||
stored: true, | ||
storageName: 'First', | ||
otherStorage: '0x1111111111111111111111111111111111111111', | ||
}, | ||
}, | ||
}, | ||
} | ||
` |