Skip to content

Commit 0610de8

Browse files
author
George
committed
6.0 vite
1 parent f092754 commit 0610de8

13 files changed

Lines changed: 165 additions & 83 deletions

File tree

package.json

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version": "2.0.0",
44
"description": "Web starter package suitable for admin applications.",
55
"main": "index.js",
6+
"type": "module",
67
"scripts": {
7-
"dev": "cross-env NODE_ENV=development node_modules/.bin/webpack -d --progress --hide-modules",
8-
"watch": "cross-env NODE_ENV=development webpack --watch --mode development --progress",
9-
"prod": "cross-env NODE_ENV=production node_modules/.bin/webpack --mode=production --progress"
8+
"preview": "php -S 0.0.0.0:8080 -t public",
9+
"build": "vite build --watch"
1010
},
1111
"repository": {
1212
"type": "git",
@@ -24,6 +24,7 @@
2424
"homepage": "https://github.com/dotkernel/admin#readme",
2525
"dependencies": {
2626
"@popperjs/core": "^2.11.8",
27+
"@rollup/plugin-alias": "^5.1.1",
2728
"babel-polyfill": "^6.26.0",
2829
"bootstrap": "^5.3.3",
2930
"chart.js": "^4.4.3",
@@ -32,48 +33,45 @@
3233
"lodash": "^4.17.21",
3334
"moment": "^2.30.1",
3435
"perfect-scrollbar": "^1.5.5",
35-
"skycons": "^1.0.0"
36+
"skycons": "^1.0.0",
37+
"typescript": "^5.5.4",
38+
"vite": "^6.3.1",
39+
"vite-plugin-static-copy": "^2.3.1"
3640
},
3741
"devDependencies": {
38-
"@babel/core": "^7.24.7",
39-
"@babel/eslint-parser": "^7.24.7",
42+
"@babel/core": "^7.27.1",
43+
"@babel/eslint-parser": "^7.27.1",
4044
"@babel/plugin-proposal-class-properties": "^7.18.6",
4145
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
42-
"@babel/plugin-transform-runtime": "^7.24.7",
43-
"@babel/runtime": "^7.24.7",
44-
"babel-core": "^6.26.3",
45-
"babel-loader": "^9.1.3",
46-
"babel-preset-env": "^1.7.0",
47-
"babel-preset-stage-0": "^6.24.1",
48-
"case-sensitive-paths-webpack-plugin": "^2.4.0",
49-
"clean-webpack-plugin": "^4.0.0",
50-
"copy-webpack-plugin": "^12.0.2",
46+
"@babel/plugin-transform-runtime": "^7.27.1",
47+
"@babel/runtime": "^7.27.1",
48+
"@babel/traverse": "^7.27.1",
5149
"cross-env": "^7.0.3",
5250
"css-loader": "5.2.7",
53-
"css-minimizer-webpack-plugin": "^7.0.0",
54-
"eslint": "^8.56.0",
51+
"eslint": "^9.26.0",
5552
"eslint-config-airbnb-base": "^15.0.0",
5653
"eslint-plugin-import": "^2.29.1",
5754
"expose-loader": "^5.0.0",
58-
"html-webpack-plugin": "^5.6.0",
59-
"imagemin-webpack-plugin": "^2.4.2",
55+
"file-loader": "^6.2.0",
56+
"less": "^4.3.0",
6057
"mini-css-extract-plugin": "^2.9.0",
6158
"postcss": "^8.4.39",
6259
"postcss-loader": "^8.1.1",
6360
"postcss-preset-env": "^9.6.0",
64-
"sass": "^1.77.1",
61+
"sass": "^1.87.0",
6562
"sass-loader": "^14.2.1",
6663
"shx": "^0.3.4",
6764
"style-loader": "^4.0.0",
6865
"stylelint": "^16.6.1",
6966
"stylelint-config-standard": "^36.0.1",
70-
"webpack": "^5.92.1",
71-
"webpack-cli": "^5.1.4",
72-
"webpack-dashboard": "^3.3.8",
73-
"webpack-dev-server": "^5.0.4",
74-
"file-loader": "^6.2.0"
67+
"vite-jsconfig-paths": "^2.0.1",
68+
"vite-plugin-bundle-css": "^0.1.1",
69+
"vite-plugin-commonjs": "^0.10.4",
70+
"vite-plugin-css-injected-by-js": "^3.5.2",
71+
"vite-plugin-minify": "^2.1.0"
7572
},
7673
"overrides": {
77-
"graceful-fs": "^4.2.11"
74+
"graceful-fs": "^4.2.11",
75+
"rimraf": "^5.0.5"
7876
}
7977
}

public/css/app.css

-923 KB
Binary file not shown.

public/js/app.js

Lines changed: 48 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-1 Bytes
Binary file not shown.

src/App/assets/js/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ import './components/_scrollbar';
55
import './components/_search';
66
import './components/_sidebar';
77
import './components/_main';
8+
9+
import 'bootstrap/dist/js/bootstrap.bundle';
10+
import '../scss/index.scss'
11+
window.$ = window.jQuery = require('jquery');
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
@import 'sidebar';
2-
@import 'topbar';
3-
@import 'pageContainer';
4-
@import 'progressBar';
5-
@import 'forms';
6-
@import 'loader';
7-
@import 'footer';
8-
@import 'font-awesome';
9-
@import 'perfectScrollbar';
10-
@import 'sparkline';
11-
@import 'themify-icons';
1+
@forward 'sidebar';
2+
@forward 'topbar';
3+
@forward 'pageContainer';
4+
@forward 'progressBar';
5+
@forward 'forms';
6+
@forward 'loader';
7+
@forward 'footer';
8+
@forward 'font-awesome';
9+
@forward 'perfectScrollbar';
10+
@forward 'sparkline';
11+
@forward 'themify-icons';

src/App/assets/scss/index.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import 'bootstrap/scss/bootstrap';
2-
@import "settings";
3-
@import "tools";
4-
@import "utils";
5-
@import "components";
6-
@import "main";
1+
@forward 'bootstrap/scss/bootstrap';
2+
@forward "settings";
3+
@forward "tools";
4+
@forward "utils";
5+
@forward "components";
6+
@forward "main";
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
@import 'base';
2-
@import 'main';
1+
@forward 'base';
2+
@forward 'main';
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import 'breakpoints';
2-
@import 'fonts';
3-
@import 'materialColors';
4-
@import 'baseColors';
5-
@import 'borders';
1+
@forward 'breakpoints';
2+
@forward 'fonts';
3+
@forward 'materialColors';
4+
@forward 'baseColors';
5+
@forward 'borders';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import 'mixins/index';
1+
@forward 'mixins/index';

0 commit comments

Comments
 (0)