69576610c4
* chore: hoist local flag to root project * chore: publish to stackblitz branch with new release * chore: rename gitignore for stackblitz * chore: use correct path * chore: include `.stackblitzrc` file to ensure dev server starts
22 lines
672 B
JavaScript
22 lines
672 B
JavaScript
// @ts-check
|
|
|
|
/**
|
|
* This is a temporary script meant to copy `packages/dev` to `./template-hydrogen`
|
|
* while we are actively developing H2 in `dev`. Eventually, the template will just
|
|
* live in this folder.
|
|
*/
|
|
|
|
const path = require('path');
|
|
const fs = require('fs');
|
|
const {copy} = require('./utils');
|
|
|
|
const devPath = path.resolve(__dirname, '..', '..', 'dev');
|
|
const templatePath = path.resolve(__dirname, '..', './template-hydrogen');
|
|
const skipFiles = ['node_modules', 'dist', '.stackblitzrc'];
|
|
|
|
// Remove the symlink and replace it with a folder
|
|
fs.unlinkSync(templatePath);
|
|
fs.mkdirSync(templatePath, {recursive: true});
|
|
|
|
copy(devPath, templatePath, skipFiles);
|