Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ce-deploy-ui
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ccce
dev
ce-deploy-ui
Commits
7d803c17
Commit
7d803c17
authored
4 months ago
by
Max Frederiksen
Committed by
Max Frederiksen
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
modify react-scripts, docs and build scripts
parent
584b032f
No related branches found
No related tags found
2 merge requests
!612
Release 5.0.0
,
!569
CE-3116: Cleanup react scripts
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
README.md
+2
-3
2 additions, 3 deletions
README.md
index.html
+6
-3
6 additions, 3 deletions
index.html
package.json
+4
-10
4 additions, 10 deletions
package.json
with
14 additions
and
18 deletions
.gitlab-ci.yml
+
1
−
1
View file @
7d803c17
...
...
@@ -22,7 +22,7 @@ install-dependencies:
lint
:
stage
:
check
script
:
-
npm run code-quality
-
npm run
ci:
code-quality
artifacts
:
reports
:
codequality
:
gl-codequality.json
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
1
−
1
View file @
7d803c17
...
...
@@ -7,7 +7,7 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY
. /usr/src/app
RUN
npm ci
RUN
VITE_APP_MUI_PRO_LICENSE_KEY
=
${
REACT_APP_MUI_PRO_LICENSE_KEY
}
npm run build
RUN
VITE_APP_MUI_PRO_LICENSE_KEY
=
${
REACT_APP_MUI_PRO_LICENSE_KEY
}
npm run
ci:
build
# production environment
FROM
nginx:1.19.6-alpine
...
...
This diff is collapsed.
Click to expand it.
README.md
+
2
−
3
View file @
7d803c17
...
...
@@ -68,7 +68,7 @@ Environment variables are stored in `.env` files.
Precedency of environment variable files are (files on the left have more priority than files on the right):
-
npm start:
`.env.development.local`
,
`.env.local`
,
`.env.development`
,
`.env`
-
npm run build:
`.env.production.local`
,
`.env.local`
,
`.env.production`
,
`.env`
-
npm run
ci:
build:
`.env.production.local`
,
`.env.local`
,
`.env.production`
,
`.env`
All environment variables start with
`REACT_APP_`
prefix.
...
...
@@ -151,7 +151,6 @@ npx cypress open
To run Cypress tests from command line (without the test-dialog), enter
```
bash
npx cypress run
```
...
...
@@ -159,7 +158,7 @@ npx cypress run
## Building
```
bash
npm run build
npm run
ci:
build
```
Builds the app for production to the
`build`
folder.
\
...
...
This diff is collapsed.
Click to expand it.
index.html
+
6
−
3
View file @
7d803c17
...
...
@@ -37,7 +37,7 @@
Unlike "/favicon.ico" or "favicon.ico", "/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
Learn how to configure a non-root public URL by running `npm run
ci:
build`.
-->
</head>
<body>
...
...
@@ -51,9 +51,12 @@
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
To create a production bundle, use `npm run
ci:
build` or `yarn
ci:
build`.
-->
<script
src=
"/config.js"
></script>
<script
type=
"module"
src=
"/src/index.jsx"
></script>
<script
type=
"module"
src=
"/src/index.jsx"
></script>
</body>
</html>
This diff is collapsed.
Click to expand it.
package.json
+
4
−
10
View file @
7d803c17
...
...
@@ -21,22 +21,16 @@
},
"scripts"
:
{
"start"
:
"vite"
,
"test"
:
"npm run testComponents"
,
"cypress:open"
:
"cypress open --component"
,
"build"
:
"tsc && vite build"
,
"preview"
:
"vite preview"
,
"testComponents"
:
"npx cypress run --component --browser chrome"
,
"code-quality"
:
"eslint src --ext .js,.ts,.jsx,.tsx -o eslint/quality -f gitlab"
,
"storybook"
:
"storybook dev -p 6006"
,
"build-storybook"
:
"storybook build"
,
"check-types"
:
"tsc --noemit"
,
"eslint"
:
"npx eslint src"
,
"lint"
:
"
npm run check-types
&& npm run eslint"
,
"lint"
:
"
tsc --noemit
&& npm run eslint"
,
"lint:fix"
:
"npm run eslint -- --fix"
,
"prettier"
:
"npx prettier src --check"
,
"prettier:fix"
:
"npm run prettier -- --write"
,
"format"
:
"npm run prettier:fix && npm run lint:fix"
,
"generate-api"
:
"npx @rtk-query/codegen-openapi openapi-config.ts"
"generate-api"
:
"npx @rtk-query/codegen-openapi openapi-config.ts"
,
"ci:build"
:
"tsc && vite build"
,
"ci:code-quality"
:
"eslint src --ext .js,.ts,.jsx,.tsx -o eslint/quality -f gitlab"
},
"browserslist"
:
{
"production"
:
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment