chore(new-design): Include banner
This commit is contained in:
parent
93de1d698f
commit
c13adff8f1
3 changed files with 15 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
|||
// import { banner } from './banner.mjs'
|
||||
import { banner } from './banner.mjs'
|
||||
import { checkNodeVersion, getChoices, createEnvironment } from './utils.mjs'
|
||||
|
||||
export const cli = async () => {
|
||||
// Make it pretty
|
||||
// console.log(banner+"\n")
|
||||
console.log(banner + '\n')
|
||||
|
||||
// Make sure we have a valid NodeJS version
|
||||
checkNodeVersion()
|
||||
|
|
|
@ -8,7 +8,7 @@ export const config = {
|
|||
// Repository to download from
|
||||
repo: process.env.FS_REPO || 'freesewing/freesewing',
|
||||
// Branch to download from
|
||||
branch: process.env.FS_BRANCH || 'develop',
|
||||
branch: process.env.FS_BRANCH || 'alpha-release',
|
||||
i18n: [
|
||||
'account',
|
||||
'common',
|
||||
|
@ -224,7 +224,7 @@ yarn-error.log*
|
|||
'shared/components/workbench/layout/cut/settings.js',
|
||||
'shared/components/workbench/layout/draft/buttons.js',
|
||||
'shared/components/workbench/layout/draft/index.js',
|
||||
'shared/components/workbench/layout/draft/part.js',
|
||||
'shared/components/workbench/layout/draft/stack.js',
|
||||
'shared/components/workbench/layout/print/index.js',
|
||||
'shared/components/workbench/layout/print/orientation-picker.js',
|
||||
'shared/components/workbench/layout/print/pagesize-picker.js',
|
||||
|
|
|
@ -51,6 +51,17 @@ const repo = {
|
|||
*/
|
||||
const log = process.stdout
|
||||
|
||||
// Step 0: Avoid symlink so Windows users don't complain
|
||||
const copyThese = [
|
||||
{
|
||||
from: ['scripts', 'banner.mjs'],
|
||||
to: ['packages', 'new-design', 'lib', 'banner.mjs'],
|
||||
},
|
||||
]
|
||||
for (const cp of copyThese) {
|
||||
fs.copyFile(path.join(repo.path, ...cp.from), path.join(repo.path, ...cp.to), (err) => null)
|
||||
}
|
||||
|
||||
// Step 1: Generate main README file from template
|
||||
log.write(chalk.blueBright('Generating out main README file...'))
|
||||
fs.writeFileSync(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue