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'
|
import { checkNodeVersion, getChoices, createEnvironment } from './utils.mjs'
|
||||||
|
|
||||||
export const cli = async () => {
|
export const cli = async () => {
|
||||||
// Make it pretty
|
// Make it pretty
|
||||||
// console.log(banner+"\n")
|
console.log(banner + '\n')
|
||||||
|
|
||||||
// Make sure we have a valid NodeJS version
|
// Make sure we have a valid NodeJS version
|
||||||
checkNodeVersion()
|
checkNodeVersion()
|
||||||
|
|
|
@ -8,7 +8,7 @@ export const config = {
|
||||||
// Repository to download from
|
// Repository to download from
|
||||||
repo: process.env.FS_REPO || 'freesewing/freesewing',
|
repo: process.env.FS_REPO || 'freesewing/freesewing',
|
||||||
// Branch to download from
|
// Branch to download from
|
||||||
branch: process.env.FS_BRANCH || 'develop',
|
branch: process.env.FS_BRANCH || 'alpha-release',
|
||||||
i18n: [
|
i18n: [
|
||||||
'account',
|
'account',
|
||||||
'common',
|
'common',
|
||||||
|
@ -224,7 +224,7 @@ yarn-error.log*
|
||||||
'shared/components/workbench/layout/cut/settings.js',
|
'shared/components/workbench/layout/cut/settings.js',
|
||||||
'shared/components/workbench/layout/draft/buttons.js',
|
'shared/components/workbench/layout/draft/buttons.js',
|
||||||
'shared/components/workbench/layout/draft/index.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/index.js',
|
||||||
'shared/components/workbench/layout/print/orientation-picker.js',
|
'shared/components/workbench/layout/print/orientation-picker.js',
|
||||||
'shared/components/workbench/layout/print/pagesize-picker.js',
|
'shared/components/workbench/layout/print/pagesize-picker.js',
|
||||||
|
|
|
@ -51,6 +51,17 @@ const repo = {
|
||||||
*/
|
*/
|
||||||
const log = process.stdout
|
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
|
// Step 1: Generate main README file from template
|
||||||
log.write(chalk.blueBright('Generating out main README file...'))
|
log.write(chalk.blueBright('Generating out main README file...'))
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue