Skip to content

Commit

Permalink
Support for using create-react-app with Spring Boot
Browse files Browse the repository at this point in the history
* Modified the create-react-script to allow the generation of files with
a project generated with the Spring Initializer
* Customized the paths used to match Maven and Spring Boot conventions
* Modified the init script which copies the template files into place so
they follow the customized directory structure
* Removed "static" from the paths for generated files since it would
require additional Spring customization to use it
* Updated Jest and its configuration so tests can be in a separate
directory which matches Maven conventions
  • Loading branch information
jwbennet authored and athill committed May 24, 2017
1 parent cea9d39 commit dd2574f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/react-scripts/config/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,15 @@ const resolveOwn = relativePath => path.resolve(__dirname, '..', relativePath);
module.exports = {
dotenv: resolveApp('.env'),
appPath: resolveApp('.'),
appBuild: resolveApp('build'),
appPublic: resolveApp('public'),
appHtml: resolveApp('public/index.html'),
appIndexJs: resolveApp('src/index.js'),
appBuild: resolveApp('target/classes/static'),
appPublic: resolveApp('src/main/resources/static'),
appHtml: resolveApp('src/main/resources/index.html'),
appIndexJs: resolveApp('src/main/js/index.js'),
appPackageJson: resolveApp('package.json'),
appSrc: resolveApp('src'),
appSrc: resolveApp('src/main/js'),
appTest: resolveApp('src/test/js'),
yarnLockFile: resolveApp('yarn.lock'),
testsSetup: resolveApp('src/setupTests.js'),
testsSetup: resolveApp('src/test/js/setupTests.js'),
appNodeModules: resolveApp('node_modules'),
publicUrl: getPublicUrl(resolveApp('package.json')),
servedPath: getServedPath(resolveApp('package.json')),
Expand Down

0 comments on commit dd2574f

Please sign in to comment.