Compare commits

...

12 Commits

Author SHA1 Message Date
0df3612c08 Merge pull request '#7 feature/add-jenkins' (#9) from feature/add-jenkins into master
All checks were successful
platform/bro/pipeline/head This commit looks good
Reviewed-on: https://git.inno-js.ru/bro-js/journal.pl/pulls/9
2024-03-29 13:33:36 +03:00
a0562e6f8d #7 cleanup after build
All checks were successful
platform/bro/pipeline/pr-master This commit looks good
platform/bro/pipeline/head This commit looks good
2024-03-29 13:30:41 +03:00
5d075ac6da #7 cleanup after build
Some checks failed
platform/bro/pipeline/head There was a failure building this commit
platform/bro/pipeline/pr-master There was a failure building this commit
2024-03-29 13:29:35 +03:00
cb525f8c19 #7 check
Some checks failed
platform/bro/pipeline/head There was a failure building this commit
platform/bro/pipeline/pr-master There was a failure building this commit
2024-03-29 13:26:04 +03:00
6b0b8ffebc #7 check
Some checks failed
platform/gitea-bro-js/journal.pl/pipeline/head There was a failure building this commit
platform/gitea-bro-js/journal.pl/pipeline/pr-master There was a failure building this commit
2024-03-29 13:13:23 +03:00
719a5e9930 #7 check
Some checks failed
gitea-bro-js/journal.pl/pipeline/pr-master There was a failure building this commit
gitea-bro-js/journal.pl/pipeline/head There was a failure building this commit
bro/pipeline/head Build started...
bro/pipeline/pr-master This commit looks good
platform/bro/pipeline/head There was a failure building this commit
2024-03-29 11:49:40 +03:00
5d051eae76 #7 check
Some checks failed
gitea-bro-js/journal.pl/pipeline/head There was a failure building this commit
2024-03-29 11:39:32 +03:00
5da3dddc2c #7 check
Some checks failed
gitea-bro-js/journal.pl/pipeline/head There was a failure building this commit
2024-03-29 11:35:55 +03:00
e6faee3cff #7 check
Some checks failed
gitea-bro-js/journal.pl/pipeline/head There was a failure building this commit
2024-03-29 11:30:22 +03:00
3dcb226c85 Jenkinsfile pipline
Some checks failed
gitea-bro-js/journal.pl/pipeline/head There was a failure building this commit
2024-03-29 10:40:00 +03:00
0f3512750a #7 add Jenkins file
Some checks failed
gitea-bro-js/journal.pl/pipeline/head There was a failure building this commit
2024-03-29 10:33:30 +03:00
5cea65ee0f #7 test & eslint scripts for jenkins 2024-03-29 10:30:11 +03:00
5 changed files with 2361 additions and 46 deletions

25
.eslintrc.js Normal file
View File

@ -0,0 +1,25 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: 'plugin:react/recommended',
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'react'],
rules: {},
}

38
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,38 @@
pipeline {
agent {
docker {
image 'node:18'
}
}
stages {
stage('install') {
steps {
sh 'ls -a'
sh 'node -v'
sh 'npm -v'
sh 'npm ci'
}
}
stage('eslint') {
steps {
sh 'npm run eslint'
}
}
stage('build') {
steps {
sh 'npm run build'
}
}
stage('clean-all') {
steps {
sh 'rm -rf .[!.]*'
sh 'rm -rf ./*'
sh 'ls -a'
}
}
}
}

2332
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,9 @@
"start": "start chrome http://ift-b1.kc.inno-js.test/journal.pl && ijl-cli server --port=80",
"build": "npm run clean && ijl-cli build --dev",
"build:prod": "npm run clean && ijl-cli build",
"clean": "rimraf dist"
"clean": "rimraf dist",
"test": "echo ok",
"eslint": "npx eslint ."
},
"repository": {
"type": "git",
@ -17,7 +19,11 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@ijl/cli": "^5.0.3"
"@ijl/cli": "^5.0.3",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1"
},
"dependencies": {
"@chakra-ui/icons": "^2.1.1",

View File

@ -136,7 +136,7 @@ const CoursesList = () => {
required={false}
placeholder="Select Date and Time"
size="md"
type="datetime-local"
type="date"
/>
{errors.startDt ? (
<FormErrorMessage>