forked from redwoodjs/redwood
-
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.
Make the test project generator more composable (redwoodjs#3099)
* Make the test project generator more composable | Add ability to use rufus * Remove lint steps * Lint fix * Renable tailwind | Resync after creation * Add project:copy to postinstall * Pass verbose and link flags * WIP * Tailwind setup changes | Fix blogpost codemod * Fix blogpost codemod
- Loading branch information
Showing
9 changed files
with
484 additions
and
275 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
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 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 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 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,31 @@ | ||
/* eslint-env node, es6*/ | ||
const execa = require('execa') | ||
|
||
const addFrameworkDepsToProject = (frameworkPath, projectPath) => { | ||
return execa('yarn framework project:deps', { | ||
cwd: frameworkPath, | ||
shell: true, | ||
stdio: 'inherit', | ||
env: { | ||
RWFW_PATH: frameworkPath, | ||
RWJS_CWD: projectPath, | ||
}, | ||
}) | ||
} | ||
|
||
const copyFrameworkPackages = (frameworkPath, projectPath) => { | ||
return execa('yarn framework project:copy', { | ||
cwd: frameworkPath, | ||
shell: true, | ||
stdio: 'inherit', | ||
env: { | ||
RWFW_PATH: frameworkPath, | ||
RWJS_CWD: projectPath, | ||
}, | ||
}) | ||
} | ||
|
||
module.exports = { | ||
copyFrameworkPackages, | ||
addFrameworkDepsToProject, | ||
} |
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
Oops, something went wrong.