Skip to content

Commit

Permalink
build(*): remove icon collections from export (#79)
Browse files Browse the repository at this point in the history
* build(*): remove icon collections from export
---------

Co-authored-by: Konstantin Dinev <kdinev@mail.bw.edu>
  • Loading branch information
simeonoff and kdinev committed Aug 31, 2023
1 parent de28367 commit 2686a2b
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 16 deletions.
32 changes: 32 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

# Change these settings to your own preference
indent_style = space
indent_size = 2

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.json]
indent_size = 2

[*.{html,js,md}]
block_comment_start = /**
block_comment = *
block_comment_end = */

[*.scss]
indent_size = 4

14 changes: 12 additions & 2 deletions _package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@
"description": "A subset of Material Icons that extend the official Material Design Icons by Google.",
"author": "Infragistics",
"license": "MIT",
"version": "3.0.1",
"version": "3.0.2",
"type": "module",
"main": "index.js",
"exports": {
".": "./index.js",
"./construction": "./construction.js",
"./content": "./content.js",
"./editor": "./editor.js",
"./election": "./election.js",
"./finance": "./finance.js",
"./health": "./health.js",
"./logos": "./logos.js",
"./programming": "./programming.js",
"./socialMedia": "./socialMedia.js",
"./migrations/*": {
"default": "./migrations/*"
},
Expand Down Expand Up @@ -35,5 +44,6 @@
"homepage": "https://github.com/IgniteUI/material-icons-extended#readme",
"ng-update": {
"migrations": "./migrations/migration.json"
}
},
"sideEffects": false
}
43 changes: 32 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A subset of Material Icons that extend the official Material Design Icons by Google.",
"author": "Infragistics",
"license": "MIT",
"version": "3.0.1",
"version": "3.0.2",
"type": "module",
"scripts": {
"start": "npm run build && vite dev",
Expand Down Expand Up @@ -39,7 +39,7 @@
"@types/node": "^18.15.11",
"@types/xmldom": "^0.1.31",
"@xmldom/xmldom": "^0.8.7",
"prettier": "^2.8.8",
"prettier": "^3.0.3",
"rimraf": "^5.0.0",
"svg-loader": "^1.0.0",
"svgo": "^3.0.2",
Expand Down
18 changes: 17 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,24 @@ export default defineConfig({
sourcemap: false,
lib: {
name: 'material-icons-extended',
entry: ['src/index.ts'],
entry: [
'src/index.ts',
'src/construction.ts',
'src/content.ts',
'src/editor.ts',
'src/election.ts',
'src/finance.ts',
'src/health.ts',
'src/logos.ts',
'src/programming.ts',
'src/socialMedia.ts',
],
formats: ['es'],
},
rollupOptions: {
output: {
preserveModules: true,
},
},
},
});

0 comments on commit 2686a2b

Please sign in to comment.