Skip to content

Commit 7f85363

Browse files
authored
* chore: Issue 2022 - Changes for new React boilerplate code
1 parent b094707 commit 7f85363

67 files changed

Lines changed: 15305 additions & 11799 deletions

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,51 @@
1-
name: Deployment
1+
name: CI/CD Pipeline
22
on:
33
push:
44
branches:
55
- master
6+
pull_request:
7+
branches:
8+
- master
9+
610
env:
7-
CI: false
11+
CI: true
12+
813
jobs:
14+
# test:
15+
# runs-on: ubuntu-latest
16+
# strategy:
17+
# matrix:
18+
# node-version: [18.x] # Updated Node.js version
19+
# steps:
20+
# - uses: actions/checkout@v4
21+
# - name: Use Node.js ${{ matrix.node-version }}
22+
# uses: actions/setup-node@v4
23+
# with:
24+
# node-version: ${{ matrix.node-version }}
25+
# - name: Install dependencies
26+
# run: yarn install
27+
# - name: Run tests
28+
# run: yarn test --watchAll=false --ci
29+
930
deploy:
31+
# needs: test
1032
runs-on: ubuntu-latest
33+
if: github.ref == 'refs/heads/master'
1134
strategy:
1235
matrix:
13-
node-version: [12.x]
36+
node-version: [18.x] # Updated Node.js version
1437
steps:
15-
- uses: actions/checkout@v2
16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
18-
with:
19-
node-version: ${{ matrix.node-version }}
20-
- name: Install Packages
21-
run: npm install
22-
- name: Build page
23-
run: npm run build
24-
- name: Deploy to gh-pages
25-
uses: peaceiris/actions-gh-pages@v3
26-
with:
27-
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
28-
publish_dir: ./build
38+
- uses: actions/checkout@v4
39+
- name: Use Node.js ${{ matrix.node-version }}
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: ${{ matrix.node-version }}
43+
- name: Install Packages
44+
run: yarn install
45+
- name: Build page
46+
run: yarn build
47+
- name: Deploy to gh-pages
48+
uses: peaceiris/actions-gh-pages@v3
49+
with:
50+
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
51+
publish_dir: ./build

.gitignore

Lines changed: 0 additions & 24 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

gulpfile.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

package.json

Lines changed: 39 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,51 @@
11
{
22
"name": "vf-react",
33
"version": "0.1.0",
4-
"vfConfig": {
5-
"vfName": "VF Boilerplate for React",
6-
"vfNamespace": "vfreact-",
7-
"vfComponentPath": "@visual-framework",
8-
"vfBuildDestination": "./build/vf-generated-assets",
9-
"vfThemePath": "@frctl/mandelbrot"
10-
},
11-
"homepage": "/vf-react",
12-
"scripts": {
13-
"start": "gulp dev",
14-
"predeploy": "gulp build",
15-
"deploy": "gh-pages -d build",
16-
"build": "gulp build",
17-
"test": "react-scripts test",
18-
"eject": "react-scripts eject",
19-
"update-components": "yarn upgrade-interactive --latest"
20-
},
4+
"private": true,
215
"dependencies": {
22-
"@visual-framework/embl-grid": "2.1.2",
23-
"@visual-framework/vf-banner": "1.9.0",
24-
"@visual-framework/vf-body": "1.2.0",
25-
"@visual-framework/vf-breadcrumbs": "2.0.4",
26-
"@visual-framework/vf-button": "1.4.3",
27-
"@visual-framework/vf-card": "2.6.0",
28-
"@visual-framework/vf-cluster": "1.0.2",
29-
"@visual-framework/vf-code-example": "1.3.0",
30-
"@visual-framework/vf-collapse": "0.0.2",
31-
"@visual-framework/vf-config": "1.0.1-alpha.0",
32-
"@visual-framework/vf-content": "1.6.1",
33-
"@visual-framework/vf-core": "2.2.30",
34-
"@visual-framework/vf-design-tokens": "3.6.0",
35-
"@visual-framework/vf-details": "1.2.0",
36-
"@visual-framework/vf-extensions-react": "0.0.4",
37-
"@visual-framework/vf-flag": "1.0.0-alpha.2",
6+
"@testing-library/jest-dom": "^5.17.0",
7+
"@testing-library/react": "^13.4.0",
8+
"@testing-library/user-event": "^13.5.0",
9+
"@visual-framework/vf-back-to-top": "^1.0.1",
10+
"@visual-framework/vf-badge": "^3.0.3",
11+
"@visual-framework/vf-banner": "2.0.3",
12+
"@visual-framework/vf-blockquote": "^1.2.8",
13+
"@visual-framework/vf-body": "^1.2.0",
14+
"@visual-framework/vf-box": "^2.4.0",
15+
"@visual-framework/vf-button": "3.0.2",
16+
"@visual-framework/vf-card": "2.7.2",
17+
"@visual-framework/vf-content": "1.6.16",
18+
"@visual-framework/vf-core": "2.2.47",
3819
"@visual-framework/vf-font-plex-mono": "1.1.1",
3920
"@visual-framework/vf-font-plex-sans": "1.1.1",
40-
"@visual-framework/vf-footer": "1.2.0",
41-
"@visual-framework/vf-form__checkbox": "3.0.0-alpha.0",
42-
"@visual-framework/vf-form__select": "3.0.0-alpha.0",
43-
"@visual-framework/vf-global-header": "3.1.2",
44-
"@visual-framework/vf-grid": "1.4.1",
45-
"@visual-framework/vf-grid-page": "3.0.0",
46-
"@visual-framework/vf-header": "2.0.2",
47-
"@visual-framework/vf-heading": "1.0.1",
48-
"@visual-framework/vf-hero": "3.3.0",
49-
"@visual-framework/vf-intro": "1.5.0",
50-
"@visual-framework/vf-lede": "1.0.1",
51-
"@visual-framework/vf-logo": "1.5.1",
52-
"@visual-framework/vf-navigation": "3.0.0-beta.1",
53-
"@visual-framework/vf-no-js": "1.0.1",
54-
"@visual-framework/vf-page-header": "1.1.2",
21+
"@visual-framework/vf-grid": "^1.4.1",
22+
"@visual-framework/vf-hero": "^4.0.3",
23+
"@visual-framework/vf-global-header": "^3.1.6",
24+
"@visual-framework/vf-footer": "^1.2.1",
25+
"@visual-framework/vf-link": "^2.0.2",
5526
"@visual-framework/vf-sass-config": "2.6.1",
56-
"@visual-framework/vf-sass-starter": "0.1.23",
57-
"@visual-framework/vf-search": "3.0.0-alpha.0",
58-
"@visual-framework/vf-sidebar": "1.0.0-alpha.2",
59-
"@visual-framework/vf-stack": "2.1.1",
60-
"@visual-framework/vf-table": "1.2.0-rc.2",
61-
"@visual-framework/vf-tabs": "2.0.1",
62-
"@visual-framework/vf-text": "1.0.2",
63-
"@visual-framework/vf-u-fullbleed": "1.2.2",
27+
"@visual-framework/vf-sass-starter": "^0.1.30",
6428
"@visual-framework/vf-utility-classes": "2.0.0",
65-
"gh-pages": "3.2.3",
66-
"gulp": "4.0.2",
67-
"gulp-autoprefixer": "8.0.0",
68-
"gulp-babel": "8.0.0",
69-
"gulp-better-rollup": "4.0.1",
70-
"gulp-cssnano": "2.1.3",
71-
"gulp-notify": "4.0.0",
72-
"gulp-rename": "2.0.0",
73-
"gulp-sass": "5.0.0",
74-
"gulp-shell": "0.8.0",
75-
"gulp-sourcemaps": "3.0.0",
76-
"gulp-stylelint": "13.0.0",
77-
"gulp-svgmin": "4.0.1",
78-
"gulp-watch": "5.0.1",
79-
"list-stream": "2.0.0",
80-
"react": "17.0.2",
81-
"react-dom": "17.0.2",
82-
"react-router-dom": "5.2.0",
83-
"react-scripts": "4.0.3",
84-
"rollup-plugin-includepaths": "0.2.4"
29+
"@visual-framework/vf-mega-menu": "^1.0.2",
30+
"@visual-framework/vf-profile": "^1.4.0",
31+
"@visual-framework/vf-search": "^1.0.0",
32+
"@visual-framework/vf-stack": "^3.0.0",
33+
"@visual-framework/vf-tabs": "^2.1.5",
34+
"@visual-framework/vf-text": "^1.1.1",
35+
"@visual-framework/vf-u-fullbleed": "^1.2.2",
36+
"@visual-framework/vf-extensions-react": "^0.0.8",
37+
"react": "^18.2.0",
38+
"react-dom": "^18.2.0",
39+
"react-router-dom": "^6.21.1",
40+
"react-scripts": "5.0.1",
41+
"sass": "^1.69.5",
42+
"web-vitals": "^2.1.4"
8543
},
86-
"eslintConfig": {
87-
"extends": "react-app"
44+
"scripts": {
45+
"start": "react-scripts start",
46+
"build": "react-scripts build",
47+
"test": "react-scripts test",
48+
"eject": "react-scripts eject"
8849
},
8950
"browserslist": {
9051
"production": [

0 commit comments

Comments
 (0)