Skip to content

Commit

Permalink
update: build process from webpack to rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleactii committed May 4, 2024
1 parent 60c0263 commit f42549a
Show file tree
Hide file tree
Showing 44 changed files with 193,275 additions and 1,139 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/lock.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
node_modules/
dist/
docs/
dist/
10 changes: 3 additions & 7 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Utils is free software, available under the terms of a MIT style License.
MIT License

Copyright (c) 2022 Evitca Studio
Copyright (c) 2024 Evitca Studio

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -12,14 +12,10 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

This software cannot be sold by itself. It must be used in a project and the project itself can be sold. In the case it is not, you the "user" of this software are breaking the license and agreeing to forfeit its usage.

Neither the name “EvitcaStudio” or "Utils" nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
# Utils
# Utils Module

Utils is a lightweight and versatile JavaScript utility class designed to provide commonly used functions for web development. It is a collection of various helper functions that can be used in a variety of projects.

# Usage
To use Utils in your project, simply import it as follows:
## Installation

### ES Module

```js
import { Utils } from './utils.mjs';
```

### IIFE (Immediately Invoked Function Expression)

```js
import { Utils } from './utils.min.mjs';
<script src="utils.js"></script>;
// ...
window.UtilsBundle.Utils;
```

### CommonJS (CJS) Module

```js
const { Utils } = require('./utils.cjs.js');
```

You can then call any of the functions available in the Utils class.
Expand Down Expand Up @@ -111,4 +126,8 @@ getPointRotated(pRect, pTheta, pPoint)v
getPointsOfRotatedRect(pRect, pTheta)
- @param {object} pRect - The rectangle object to rotate the point around. **`pRect.anchor.x`** and **`pRecent.anchor.y`** is used to control the "center" of the rectangle.
- @param {number} pTheta - The angle (in radians) to rotate the point by.
- @returns {object} An object with the rotated rectangle's new corner points and center points.
- @returns {object} An object with the rotated rectangle's new corner points and center points.

### Global Dependency

Utils relies on the `VYLO` variable being globally accessible.
33 changes: 0 additions & 33 deletions add-banner-script.js

This file was deleted.

20 changes: 0 additions & 20 deletions add-version-script.js

This file was deleted.

Loading

0 comments on commit f42549a

Please sign in to comment.