diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-02-04 20:00:15 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-02-04 20:00:15 +0800 |
commit | 1a88eac9c7e8f30f5d1f57132a48e59abd912d41 (patch) | |
tree | 0a1e9664ca875a3f4b5c84b8c2426940d01c5728 /packages/contracts-gen/src | |
parent | 47357ddec84fedb9e449edf6a75d3c7ab295aa6b (diff) | |
download | dexon-0x-contracts-1a88eac9c7e8f30f5d1f57132a48e59abd912d41.tar.gz dexon-0x-contracts-1a88eac9c7e8f30f5d1f57132a48e59abd912d41.tar.zst dexon-0x-contracts-1a88eac9c7e8f30f5d1f57132a48e59abd912d41.zip |
Make the banner more visible
Diffstat (limited to 'packages/contracts-gen/src')
-rw-r--r-- | packages/contracts-gen/src/contracts-gen.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/contracts-gen/src/contracts-gen.ts b/packages/contracts-gen/src/contracts-gen.ts index 0695d9c98..0160a8204 100644 --- a/packages/contracts-gen/src/contracts-gen.ts +++ b/packages/contracts-gen/src/contracts-gen.ts @@ -14,7 +14,11 @@ const SOLIDITY_EXTENSION = '.sol'; const DEFAULT_ARTIFACTS_DIR = 'artifacts'; const DEFAULT_CONTRACTS_DIR = 'contracts'; const DEFAULT_WRAPPERS_DIR = 'generated-wrappers'; -const AUTO_GENERATED_BANNER = `This file is auto-generated by contracts-gen. Don't edit manually.`; +const AUTO_GENERATED_BANNER = `/* +* ----------------------------------------------------------------------------- +* Warning: This file is auto-generated by contracts-gen. Don't edit manually. +* ----------------------------------------------------------------------------- +*/`; const AUTO_GENERATED_BANNER_FOR_LISTS = `This list is auto-generated by contracts-gen. Don't edit manually.`; (async () => { @@ -82,7 +86,7 @@ function generateArtifactsTs(contracts: string[], artifactsDir: string, prettier } }); const artifactsTs = ` - // ${AUTO_GENERATED_BANNER} + ${AUTO_GENERATED_BANNER} import { ContractArtifact } from 'ethereum-types'; ${sortedImports.join('\n')} @@ -102,7 +106,7 @@ function generateWrappersTs(contracts: string[], wrappersDir: string, prettierCo }); const sortedImports = _.sortBy(imports); const wrappersTs = ` - // ${AUTO_GENERATED_BANNER} + ${AUTO_GENERATED_BANNER} ${sortedImports.join('\n')} `; const WRAPPERS_TS_FILE_PATH = 'src/wrappers.ts'; |