Skip to content

Commit

Permalink
Chore: add rollup and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
orestbida committed May 21, 2023
1 parent 1d7fa0f commit bd1a623
Show file tree
Hide file tree
Showing 6 changed files with 1,316 additions and 255 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*
!/src
19 changes: 19 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"indent": ["warn", 4],
"quotes": ["warn", "single"],
"semi": ["warn", "always"],
"no-unused-vars": ["warn"]
}
}
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
"dist"
],
"scripts": {
"build:css": "postcss ./src/iframemanager.css -o ./dist/iframemanager.css",
"build:js": "node terser.js",
"build": "npm run build:js && npm run build:css"
"dev": "rollup --config ./rollup.config.mjs --watch",
"build": "rollup --config ./rollup.config.mjs"
},
"repository": {
"type": "git",
Expand All @@ -29,10 +28,12 @@
},
"homepage": "https://github.com/orestbida/iframemanager#readme",
"devDependencies": {
"@rollup/plugin-eslint": "^9.0.4",
"@rollup/plugin-terser": "^0.4.3",
"cssnano": "^6.0.1",
"postcss": "^8.4.23",
"postcss-cli": "^10.1.0",
"postcss-combine-duplicated-selectors": "^10.0.3",
"postcss-custom-properties": "^13.1.5",
"terser": "^5.17.4"
"rollup": "^3.22.0",
"rollup-plugin-postcss": "^4.0.2"
}
}
Loading

0 comments on commit bd1a623

Please sign in to comment.