Skip to content

Commit

Permalink
Upgraded config files
Browse files Browse the repository at this point in the history
  • Loading branch information
miksrv committed Sep 28, 2024
1 parent 9478cfe commit dbc6eaf
Show file tree
Hide file tree
Showing 10 changed files with 11,218 additions and 4,585 deletions.
6 changes: 1 addition & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-typescript"
]
"presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"]
}
Binary file added .yarn/install-state.gz
Binary file not shown.
925 changes: 925 additions & 0 deletions .yarn/releases/yarn-4.5.0.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.0.cjs
4 changes: 2 additions & 2 deletions declarations.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module '*.module.sass' {
const classes: { [key: string]: string };
export default classes;
const classes: { [key: string]: string }
export default classes
}
15 changes: 15 additions & 0 deletions index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react'
import { createRoot } from 'react-dom/client'

import {Button} from '@/index'

const App = () => (
<div>
<h1>UI Components Demo</h1>
<Button />
</div>
)

const container = document.getElementById('app') as HTMLElement
const root = createRoot(container)
root.render(<App />)
4,562 changes: 0 additions & 4,562 deletions package-lock.json

This file was deleted.

54 changes: 41 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,65 @@
"name": "simple-ui",
"version": "1.0.0",
"description": "My small UI framework for projects",
"main": "index.tsx",
"repository": "https://github.com/miksrv/simple-ui.git",
"scripts": {
"build": "webpack",
"changeset": "npx changeset",
"publish": "npm publish",
"test": "echo \"Error: no test specified\" && exit 1"
"start": "webpack serve --config example/webpack.config.js",
"test": "echo \"Error: no test specified\" && exit 1",
"eslint:check": "eslint",
"eslint:fix": "eslint --fix",
"prettier:check": "prettier --check .",
"prettier:fix": "prettier --write ."
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"keywords": [],
"author": "Misha Topchilo <[email protected]>",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.24.8",
"@babel/preset-env": "^7.24.8",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@types/react": "^18.3.3",
"@changesets/cli": "^2.27.8",
"@eslint/compat": "^1.1.1",
"@eslint/js": "^9.11.1",
"@types/lodash-es": "^4.17.12",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"babel-loader": "^9.1.3",
"babel-loader": "^9.2.1",
"css-loader": "^7.1.2",
"sass": "^1.77.8",
"sass-loader": "^14.2.1",
"eslint": "^9.11.1",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-eslint-plugin": "^6.2.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-react": "^7.37.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"html-webpack-plugin": "^5.6.0",
"jest": "^29.7.0",
"prettier": "^3.3.3",
"sass": "^1.79.4",
"sass-loader": "^16.0.2",
"style-loader": "^4.0.0",
"ts-loader": "^9.5.1",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"typescript": "^5.5.3",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4"
"typescript": "^5.6.2",
"typescript-eslint": "^8.7.0",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.1.0"
},
"dependencies": {
"embla-carousel-react": "^8.1.6",
"embla-carousel-react": "^8.3.0",
"lodash-es": "^4.17.21",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"repository": "https://github.com/miksrv/simple-ui.git"
"packageManager": "[email protected]"
}
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"compilerOptions": {
"target": "es2022",
"lib": ["dom", "dom.iterable", "esnext"],
"target": "ES6",
"lib": ["DOM", "ES6", "DOM.Iterable", "ScriptHost", "ES2016.Array.Include"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"noEmit": false,
"esModuleInterop": true,
"strictNullChecks": true,
"module": "esnext",
Expand Down
Loading

0 comments on commit dbc6eaf

Please sign in to comment.