Skip to content

Commit 96a5a03

Browse files
craco kinda works. unejected project!
add eslint rule to include jsx fixing build
1 parent beb6436 commit 96a5a03

File tree

112 files changed

+3539
-5490
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+3539
-5490
lines changed

.eslintignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
**/__fixtures__/*.js
2-
serviceWorker.js
1+
\*_/**fixtures**/_.js
2+
serviceWorker.js

.github/workflows/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
with:
3030
github-token: ${{ secrets.GITHUB_TOKEN }}
3131

32+
- name: Install webfonts
33+
run: |
34+
./scripts/fonts.sh
35+
3236
- name: Start local website server
3337
run: |
3438
yarn start &

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ cypress/screenshots/
7272
#############
7373
node_modules/
7474
src/vendor/
75+
src/static/
7576

7677
# Build artifacts #
7778
###################

INSTALL.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,23 @@
66
# Clone the project from github
77
git clone https://github.com/cfpb/ccdb5-ui.git
88
cd ccdb5-ui
9-
./frontendbuild.sh
9+
yarn install
1010
```
1111

12-
## Configuring
13-
_TODO: Define how the API URL is injected into the codebase_
12+
This installs the dependencies. If you run `yarn build` at this point,
13+
you should received an error `Module not found: Error: Can't resolve …` in
14+
regard to the font files. Follow the next step to install the font files.
15+
16+
### Install font files
17+
18+
To install self-hosted fonts locally, place the font files
19+
in `./src/static/fonts/`. This can be done with the script `./scripts/fonts.sh`.
1420

1521
## Verifying the build
1622

1723
```bash
18-
yarn run start
24+
yarn build
25+
yarn start
1926
```
2027

2128
Open http://localhost:3000 to view it in the browser.

babel.config.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"presets": ["@babel/preset-env", "@babel/preset-react"]
2+
"presets": [
3+
"@babel/preset-react"
4+
]
35
}

config/.eslintrc

-31
This file was deleted.

config/env.js

-108
This file was deleted.

config/getHttpsConfig.js

-66
This file was deleted.

config/jest/cssTransform.js

-12
This file was deleted.

config/jest/fileTransform.js

-40
This file was deleted.

0 commit comments

Comments
 (0)