Skip to content

Commit e26bdd6

Browse files
committed
- Added rollup.config.js.
- Modified rollup to use umd for output. - Removed filepath from package.json. - Added dist folder to files in package.json.
1 parent 5d92641 commit e26bdd6

File tree

7 files changed

+87
-106
lines changed

7 files changed

+87
-106
lines changed

dist/frost-color.js

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

dist/frost-color.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/frost-color.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/frost-color.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

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

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fr0st/color",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"description": "FrostColor is a free, open-source color manipulation library for JavaScript.",
55
"keywords": [
66
"color",
@@ -20,13 +20,14 @@
2020
"main": "src/index.js",
2121
"type": "module",
2222
"files": [
23+
"dist",
2324
"LICENSE",
2425
"README.md",
2526
"src"
2627
],
2728
"scripts": {
2829
"build": "npm run js-compile && npm run js-minify",
29-
"js-compile": "rollup src/index.js --file dist/frost-color.js --format iife --sourcemap --name Color",
30+
"js-compile": "rollup --config",
3031
"js-lint": "eslint --ext .js .",
3132
"js-minify": "terser --compress passes=2 --mangle --source-map \"content=dist/frost-color.js.map\" --output dist/frost-color.min.js dist/frost-color.js",
3233
"test": "mocha --recursive"
@@ -39,11 +40,10 @@
3940
"license": "MIT",
4041
"private": false,
4142
"devDependencies": {
42-
"eslint": "^8.30.0",
43+
"eslint": "^8.31.0",
4344
"eslint-config-google": "^0.14.0",
44-
"filepath": "^1.1.0",
4545
"mocha": "^10.2.0",
46-
"rollup": "^3.7.5",
46+
"rollup": "^3.9.1",
4747
"terser": "^5.16.1"
4848
}
4949
}

0 commit comments

Comments
 (0)