Skip to content

Commit b03788c

Browse files
Lasnia, FriedrichLasnia, Friedrich
authored andcommitted
feat: rename to match recommended vite plugin naming
1 parent 569090a commit b03788c

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
Concatenates legacy, non-module JavaScript files in a specific order.
44
The plugin creates a virtual module to import in your Vite app. This is useful for migrating old Gulp projects to Vite without immediately refactoring the code. A proper refactor is still the best long-term solution.
55

6+
Consider it if your JavaScript requires:
7+
8+
- **Global Scope**: Your scripts depend on global variables (window).
9+
- **Strict Order**: Your files must execute in a specific sequence.
10+
- **Simple Bundling**: You need to concatenate files without ES module conversion.
11+
612
## Installation
713

8-
npm install @adesso-se/vite-plugin-legacy-js-concat --save-dev
14+
npm install vite-plugin-legacy-js-concat --save-dev
915

1016
## Example
1117
An old Gulp setup might bundle scripts with dependencies like this:
@@ -24,7 +30,7 @@ To migrate this to Vite, add the plugin to `vite.config.js`. The order of files
2430

2531
```javascript
2632
import { defineConfig } from 'vite';
27-
import { legacyConcat } from '@adesso-se/vite-plugin-legacy-js-concat';
33+
import { legacyConcat } from 'vite-plugin-legacy-js-concat';
2834

2935
export default defineConfig({
3036
// ...

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@adesso-se/vite-plugin-legacy-js-concat",
2+
"name": "vite-plugin-legacy-js-concat",
33
"version": "1.0.0",
44
"description": "Concatenate legacy JavaScript files in a specific order into a single bundle for Vite, replacement for gulp-concat.",
55
"main": "src/vite-plugin-legacy-js-concat.js",

0 commit comments

Comments
 (0)