Skip to content

Commit

Permalink
feat: replacing rollup with vite
Browse files Browse the repository at this point in the history
  • Loading branch information
TakNePoidet committed Sep 8, 2023
1 parent 421ec62 commit 766bd5f
Show file tree
Hide file tree
Showing 8 changed files with 1,496 additions and 883 deletions.
2 changes: 1 addition & 1 deletion example/esm.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>
<script type="module">
import layoutGridHelper from '../dist/index.esm.mjs';
import layoutGridHelper from '../dist/index.es.js';
const gridHelper = layoutGridHelper({
// prefix: 'gh',
sides: '16px',
Expand Down
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Title</title>
</head>
<body>
<script src="../dist/index.browser.js"></script>
<script src="../dist/index.iife.js"></script>
<script>
const gridHelper = layoutGridHelper({
prefix: 'gh',
Expand Down
22 changes: 8 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "Сетка для верстки",
"author": "TakNePoidet",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.esm.mjs",
"jsdelivr": "dist/index.browser.js",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"jsdelivr": "./dist/index.iife.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
Expand All @@ -20,23 +20,17 @@
"url": "git+https://github.com/TakNePoidet/layout-grid-helper.git"
},
"devDependencies": {
"@rollup/plugin-typescript": "^8.3.0",
"@taknepoidet-config/eslint-config": "^1.8.1",
"@taknepoidet-config/prettier": "^1.7.0",
"@types/lodash": "^4.14.177",
"cross-env": "^7.0.3",
"eslint": "^8.4.0",
"lodash": "^4.17.21",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"rollup": "^2.60.2",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"typedoc": "^0.22.10"
"terser": "^5.19.4",
"vite": "^4.4.9",
"vite-plugin-dts": "^3.5.3"
},
"scripts": {
"build:dev": "rollup -c rollup.config.js -w",
"build": "rimraf dist && cross-env NODE_ENV=production rollup -c rollup.config.js",
"dev": "vite build --watch",
"build": "vite build",
"lint": "eslint --fix ./src",
"prettier": "prettier --ignore-unknown --write .",
"beautifier": "npm run lint && npm run prettier",
Expand Down
Loading

0 comments on commit 766bd5f

Please sign in to comment.