-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from skbkontur/semke/vite-yarn3
Semke/vite yarn3
- Loading branch information
Showing
50 changed files
with
13,546 additions
and
9,803 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
pull_request: | ||
workflow_dispatch: | ||
env: | ||
NODE_VERSION: 14 | ||
NODE_VERSION: 20 | ||
NPM_REGISTRY: https://registry.npmjs.org | ||
jobs: | ||
test: | ||
|
@@ -26,22 +26,26 @@ jobs: | |
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
registry-url: ${{ env.NPM_REGISTRY }} | ||
- name: Install yarn | ||
run: corepack enable && corepack prepare [email protected] --activate | ||
- name: Install node dependencies | ||
run: yarn --cwd cassandra-distributed-task-queue-ui install --frozen-lockfile | ||
run: corepack yarn --cwd cassandra-distributed-task-queue-ui --immutable | ||
- name: Restore dotnet tools | ||
run: dotnet tool restore | ||
- name: Build dotnet | ||
run: dotnet build --configuration Release --verbosity minimal | ||
- name: Build front | ||
run: yarn --cwd cassandra-distributed-task-queue-ui build | ||
- name: Check C# code style | ||
run: dotnet jb cleanupcode Cassandra.DistributedTaskQueue.sln --profile=CatalogueCleanup --verbosity=WARN && git diff --exit-code | ||
run: dotnet jb cleanupcode Cassandra.DistributedTaskQueue.sln --profile=CatalogueCleanup --verbosity=WARN && git diff --exit-code -- ':!./cassandra-distributed-task-queue-ui/.yarn' | ||
- name: Check front code | ||
run: yarn --cwd cassandra-distributed-task-queue-ui lint | ||
- name: Build docker-compose environment | ||
run: docker-compose -f docker-compose.yaml up -d --build | ||
env: | ||
ES_VERSION: ${{ matrix.es-version }} | ||
- name: Run front tests | ||
run: yarn --cwd cassandra-distributed-task-queue-ui test | ||
- name: Run tests | ||
run: dotnet test --no-build --configuration Release | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,5 @@ | ||
const path = require("path"); | ||
const fs = require("fs"); | ||
|
||
const babelConfig = JSON.parse(fs.readFileSync(path.resolve(__dirname, "../.babelrc"))); | ||
|
||
module.exports = { | ||
stories: ["../stories/**/*.stories.tsx"], | ||
addons: [require.resolve("@storybook/addon-actions")], | ||
webpackFinal: config => { | ||
config.module.rules = [ | ||
{ | ||
test: /\.[jt]sx?$/, | ||
use: { | ||
loader: require.resolve("babel-loader"), | ||
options: babelConfig, | ||
}, | ||
exclude: /node_modules/, | ||
}, | ||
{ | ||
test: /\.css$/, | ||
use: [ | ||
require.resolve("style-loader"), | ||
{ | ||
loader: require.resolve("css-loader"), | ||
options: { | ||
modules: { | ||
localIdentName: "[name]-[local]-[hash:base64:4]", | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
test: /\.(woff|woff2|eot|ttf|svg|gif|png)$/, | ||
loader: require.resolve("url-loader"), | ||
}, | ||
]; | ||
|
||
config.resolve.extensions = [".js", ".jsx", ".ts", ".tsx"]; | ||
|
||
return config; | ||
}, | ||
addons: ["@storybook/addon-actions"], | ||
framework: "@storybook/react-vite", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import '../public/index.css'; | ||
import '../index.css'; |
893 changes: 893 additions & 0 deletions
893
cassandra-distributed-task-queue-ui/.yarn/releases/yarn-4.0.0.cjs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
compressionLevel: mixed | ||
|
||
enableGlobalCache: false | ||
|
||
networkConcurrency: 16 | ||
|
||
nodeLinker: node-modules | ||
|
||
npmRegistryServer: "https://registry.npmjs.org" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,13 +27,13 @@ | |
"build:copy:meta": "copyfiles --flat package.json \"../*.md\" ../LICENSE dist", | ||
"build:pack": "cd dist && npm pack", | ||
"build:types": "dotnet ts-gen --assembly ./../Cassandra.DistributedTaskQueue.Monitoring.TestService/bin/net6.0/SkbKontur.Cassandra.DistributedTaskQueue.Monitoring.TestService.dll --outputDir ./src/Domain/Api --nullabilityMode Pessimistic", | ||
"start": "webpack serve --env api=fake", | ||
"start:prod": "webpack serve --env api=real", | ||
"storybook": "start-storybook -p 6006 -s .", | ||
"start": "vite --mode dev", | ||
"start:prod": "vite", | ||
"storybook": "sb dev -p 6006", | ||
"lint": "run-s \"lint:*\"", | ||
"lint:tsc": "tsc --noEmit", | ||
"lint:eslint": "eslint ./ --ext .js,.jsx,.ts,.tsx", | ||
"test": "mocha **/*.test.ts" | ||
"lint:eslint": "eslint ./ --ext .js,.jsx,.ts,.tsx --cache --quiet", | ||
"test": "vitest --run --reporter dot" | ||
}, | ||
"peerDependencies": { | ||
"@skbkontur/icons": ">=1 <2", | ||
|
@@ -48,58 +48,44 @@ | |
"date-fns": "^2.29.2", | ||
"decimal.js": "^10.2.1", | ||
"lodash": "^4.17.20", | ||
"qs": "^6.9.6", | ||
"qs": "^6.11.2", | ||
"tslib": "^2.4.0", | ||
"whatwg-fetch": "^3.5.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.14.8", | ||
"@babel/plugin-proposal-class-properties": "^7.14.5", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.14.7", | ||
"@babel/plugin-transform-runtime": "^7.14.5", | ||
"@babel/preset-env": "^7.14.8", | ||
"@babel/preset-react": "^7.14.5", | ||
"@babel/preset-typescript": "^7.14.5", | ||
"@babel/runtime": "^7.14.8", | ||
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3", | ||
"@skbkontur/icons": "^1.3.0", | ||
"@skbkontur/react-ui": "^4.1.0", | ||
"@storybook/addon-actions": "^6.3.5", | ||
"@storybook/addons": "^6.3.5", | ||
"@storybook/react": "^6.3.5", | ||
"@types/chai": "^4.2.21", | ||
"@storybook/addon-actions": "^7.0.7", | ||
"@storybook/addons": "^7.0.7", | ||
"@storybook/cli": "^7.4.6", | ||
"@storybook/react": "^7.0.7", | ||
"@storybook/react-vite": "^7.4.6", | ||
"@types/lodash": "^4.14.171", | ||
"@types/mocha": "^9.0.0", | ||
"@types/qs": "^6.9.7", | ||
"@types/qs": "^6.9.8", | ||
"@types/react": "^17.0.15", | ||
"@types/react-dom": "^17.0.9", | ||
"@types/react-dom": "^17.0.15", | ||
"@types/react-router-dom": "^5.1.8", | ||
"@typescript-eslint/eslint-plugin": "^4.28.4", | ||
"@typescript-eslint/parser": "^4.28.4", | ||
"babel-loader": "^8.2.2", | ||
"chai": "^4.3.4", | ||
"@typescript-eslint/eslint-plugin": "^6.7.4", | ||
"@typescript-eslint/parser": "^6.7.4", | ||
"@vitejs/plugin-react": "^3.1.0", | ||
"copyfiles": "^2.4.1", | ||
"css-loader": "^5.0.1", | ||
"eslint": "^7.31.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint": "^8.50.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-import-resolver-node": "^0.3.4", | ||
"eslint-plugin-import": "^2.23.4", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"eslint-plugin-import": "^2.28.1", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"eslint-plugin-react": "^7.24.0", | ||
"mocha": "^9.0.2", | ||
"jsdom": "^22.1.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.3.2", | ||
"prettier": "^3.0.3", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-refresh": "^0.10.0", | ||
"react-router-dom": "^6.11.0", | ||
"rimraf": "^3.0.2", | ||
"storybook-addon-react-router-v6": "^0.3.6", | ||
"style-loader": "^2.0.0", | ||
"storybook-addon-react-router-v6": "^2.0.7", | ||
"typescript": "^4.3.5", | ||
"url-loader": "^4.1.1", | ||
"webpack": "^4.46.0", | ||
"webpack-cli": "^4.7.2", | ||
"webpack-dev-server": "^3.11.2" | ||
} | ||
"vite": "^4.4.11", | ||
"vitest": "^0.34.6" | ||
}, | ||
"packageManager": "[email protected]+sha256.6d855253732ba8d231b6cd917961654f6c8439164c962a4e355c9c58360ebe44" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
cassandra-distributed-task-queue-ui/src/RemoteTaskQueueApplication.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.