Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update npm package config #171

Closed
blackfalcon opened this issue Sep 14, 2023 · 1 comment · Fixed by #176
Closed

Update npm package config #171

blackfalcon opened this issue Sep 14, 2023 · 1 comment · Fixed by #176
Assignees
Labels
auro-wcss Type: Maintenance Repository Maintenance
Milestone

Comments

@blackfalcon
Copy link
Member

blackfalcon commented Sep 14, 2023

General Support Request

This repo's npm package is way over-bloated.

npm notice === Tarball Details ===
npm notice name:          @aurodesignsystem/webcorestylesheets
npm notice version:       4.8.0
npm notice filename:      @aurodesignsystem/webcorestylesheets-4.8.0.tgz
npm notice package size:  1.3 MB
npm notice unpacked size: 3.2 MB
npm notice shasum:        9fea1d4a848b07da26352cad02d8ce73d7cda712
npm notice integrity:     sha512-OqhYU9v4TLRTW[...]O/HTZzvX8pWpA==
npm notice total files:   127

The .npmignore still has references to .travis.yml

This config should also be updated so that we are simply bringing over the ./src directory and only processed files are in the ./dist dir.

Support request

Update the .npmignore to reduce the size of this package and increase install performance.

Exit criteria

This issue can be closed once there is an updated npm config and there is a demonstratable difference in bundle size.

@blackfalcon blackfalcon added Type: Maintenance Repository Maintenance auro-wcss labels Sep 14, 2023
@blackfalcon blackfalcon added this to the WCSS 5.0 rc milestone Sep 14, 2023
@blackfalcon blackfalcon self-assigned this Sep 14, 2023
@blackfalcon blackfalcon linked a pull request Sep 20, 2023 that will close this issue
6 tasks
@blackfalcon
Copy link
Member Author

With updated config

npm notice === Tarball Details ===
npm notice name:          @aurodesignsystem/webcorestylesheets
npm notice version:       4.8.0
npm notice filename:      aurodesignsystem-webcorestylesheets-4.8.0.tgz
npm notice package size:  42.3 kB
npm notice unpacked size: 228.9 kB
npm notice shasum:        35e31f9c45a9f8f6977312d42dcd4c957bba1ff3
npm notice integrity:     sha512-aTkmlhSHTa9+c[...]J3VCLC+ImYUzQ==
npm notice total files:   60
npm notice
aurodesignsystem-webcorestylesheets-4.8.0.tgz

blackfalcon added a commit that referenced this issue Sep 21, 2023
BREAKING CHANGE: This commit updates the .npmignore package config to
reduce the scope of the packaged files and directories

This commit also removes the necessity of copying all the src files to a
dist dir and instead allows the src dir to be added to the package.
Consumers will have to update dir references from ./dist to ./src in
most import cases.

Processed files are still located in the ./dist dir.

Changes to be committed:
modified:   .npmignore
modified:   README.md
modified:   package.json
@blackfalcon blackfalcon mentioned this issue Sep 21, 2023
6 tasks
blackfalcon added a commit that referenced this issue Sep 21, 2023
BREAKING CHANGE: This commit updates the .npmignore package config to
reduce the scope of the packaged files and directories

This commit also removes the necessity of copying all the src files to a
dist dir and instead allows the src dir to be added to the package.
Consumers will have to update dir references from ./dist to ./src in
most import cases.

Processed files are still located in the ./dist dir.

Changes to be committed:
modified:   .github/workflows/testPublish.yml
modified:   .npmignore
modified:   README.md
modified:   package.json
blackfalcon added a commit that referenced this issue Sep 25, 2023
BREAKING CHANGE: This commit updates the .npmignore package config to
reduce the scope of the packaged files and directories

This commit also removes the necessity of copying all the src files to a
dist dir and instead allows the src dir to be added to the package.
Consumers will have to update dir references from ./dist to ./src in
most import cases.

Processed files are still located in the ./dist dir.

Changes to be committed:
modified:   .github/workflows/testPublish.yml
modified:   .npmignore
modified:   README.md
modified:   package.json
blackfalcon pushed a commit that referenced this issue Sep 25, 2023
# [5.0.0](v4.8.0...v5.0.0) (2023-09-25)

### Features

* remove all deprecated references [#169](#169) ([711d729](711d729))
* update to use CSS variables with fallback [#134](#134) ([9546be4](9546be4))

### Performance Improvements

* **deps:** update repo to support Node 18 [#155](#155) ([c208bad](c208bad))
* **tokens:** update to design tokens 4.x [#134](#134) ([8f17359](8f17359))
* update all references from auro- to ds- [#169](#169) ([57831ef](57831ef))
* update insetUtility to maintain current support ([a136b9d](a136b9d))
* update package config [#171](#171) ([4ca4e7d](4ca4e7d))

### BREAKING CHANGES

* This commit updates the .npmignore package config to
reduce the scope of the packaged files and directories

This commit also removes the necessity of copying all the src files to a
dist dir and instead allows the src dir to be added to the package.
Consumers will have to update dir references from ./dist to ./src in
most import cases.

Processed files are still located in the ./dist dir.

Changes to be committed:
modified:   .github/workflows/testPublish.yml
modified:   .npmignore
modified:   README.md
modified:   package.json
* This commit removes the legacy insetUtility mixin and
replaces it with a static output of the generated legacy values from the
previous version of WCSS and design tokens.

Users will not get a failure when importing the file reference
src/utilityMixins/_insetUtility.scss but instead of the mixin generating
a subset of selectors, all the static selectors will be added to the
project's CSS output.

This legacy feature has also been designated as DEPRECATED and should be
deleted with the next MAJOR release.
* This commit will require all consumers to update their
app to use @aurodesignsystem/design-tokens v4.x

All references in documentation and code has been updated from `auro-`
to `ds-` per the new design token specification.

Changes to be committed:
modified:   FAQ.md
modified:   README.md
modified:   demo/3col.html
modified:   packageScripts/postinstall.js
modified:   src/*
modified:   tests/*
* **tokens:** This commit updates the repo's dependency on the newly
released Auro Design Tokens 4.x.

Changes to be committed:
modified:   package-lock.json
modified:   package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auro-wcss Type: Maintenance Repository Maintenance
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant