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

could remove unnecessary files from npm packaging #232

Open
pietrop opened this issue Apr 27, 2020 · 0 comments
Open

could remove unnecessary files from npm packaging #232

pietrop opened this issue Apr 27, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@pietrop
Copy link
Contributor

pietrop commented Apr 27, 2020

Noticed this while working on slate-transcript-editor. It's worth considering adding some more things to .npmignore In my current fork of react-transcript-editor if I do npm run publish:dry:run I get

npm publish --dry-run

npm notice 
npm notice 📦  @pietrop/[email protected]
npm notice === Tarball Contents === 
npm notice 52B     .eslintignore                                                      
npm notice 1.9kB   .eslintrc                                                          
npm notice 12B     .nvmrc                                                             
npm notice 665B    .stylelintrc                                                       
npm notice 405.4kB docs/qa/images/timed-text-editor-double-click-on-word.gif          
npm notice 214B    .storybook/addons.js                                               
npm notice 605B    babel.config.js                                                    
npm notice 831B    .storybook/config.js                                               
npm notice 1.3MB   dist/exportAdapter.js                                              
npm notice 1.5kB   dist/groupWordsInParagraphsBySpeakersDPE.js                        
npm notice 1.9MB   dist/index.js                                                      
npm notice 60.7kB  dist/KeyboardShortcuts.js                                          
npm notice 243.1kB dist/MediaPlayer.js                                                
npm notice 22.5kB  dist/PlaybackRate.js                                               
npm notice 75.1kB  dist/PlayerControls.js                                             
npm notice 81.7kB  dist/ProgressBar.js                                                
npm notice 12.6kB  dist/Select.js                                                     
npm notice 71.6kB  dist/Settings.js                                                   
npm notice 10.4kB  dist/sttJsonAdapter.js                                             
npm notice 218B    __mocks__/styleMock.js                                             
npm notice 2.3kB   dist/timecodeConverter.js                                          
npm notice 1.7MB   dist/TimedTextEditor.js                                            
npm notice 1.9MB   dist/TranscriptEditor.js                                           
npm notice 11.0kB  dist/VideoPlayer.js                                                
npm notice 4.2kB   dist/package.json                                                  
npm notice 4.2kB   package.json                                                       
npm notice 84.3kB  docs/notes/examples/subtitalizer-entities-range-example.json       
npm notice 3.3MB   dist/exportAdapter.js.map                                          
npm notice 9.1kB   dist/groupWordsInParagraphsBySpeakersDPE.js.map                    
npm notice 6.5MB   dist/index.js.map                                                  
npm notice 876.1kB dist/KeyboardShortcuts.js.map                                      
npm notice 1.7MB   dist/MediaPlayer.js.map                                            
npm notice 56.4kB  dist/PlaybackRate.js.map                                           
npm notice 894.0kB dist/PlayerControls.js.map                                         
npm notice 113.8kB dist/ProgressBar.js.map                                            
npm notice 41.3kB  dist/Select.js.map                                                 
npm notice 896.6kB dist/Settings.js.map                                               
npm notice 56.6kB  dist/sttJsonAdapter.js.map                                         
npm notice 11.5kB  dist/timecodeConverter.js.map                                      
npm notice 5.4MB   dist/TimedTextEditor.js.map                                        
npm notice 6.5MB   dist/TranscriptEditor.js.map                                       
npm notice 40.3kB  dist/VideoPlayer.js.map                                            
npm notice 2.4kB   docs/qa/0-component-interface.md                                   
npm notice 2.9kB   docs/qa/1-player-controls.md                                       
npm notice 1.5kB   docs/qa/2-timed-text-editor.md                                     
npm notice 3.1kB   docs/adr/2018-01-24-frequency-of-local-storage-save.md             
npm notice 2.7kB   docs/notes/draftjs/2018-10-01-draftjs-1-basics.md                  
npm notice 3.1kB   docs/adr/2018-10-01-timed-editor-choice.md                         
npm notice 2.3kB   docs/adr/2018-10-02-component-fonts.md                             
npm notice 2.8kB   docs/adr/2018-10-02-css-setup.md                                   
npm notice 4.4kB   docs/notes/draftjs/2018-10-02-drafjs-2-entity-range.md             
npm notice 912B    docs/notes/2018-10-05-babel-setup.md                               
npm notice 3.8kB   docs/adr/2018-10-05-component-development-setup.md                 
npm notice 2.8kB   docs/adr/2018-10-05-components-comunication.md                     
npm notice 156B    docs/notes/draftjs/2018-10-05-draftjs-paragraph-block-formatting.md
npm notice 268B    docs/notes/2018-10-06-automated-testing.md                         
npm notice 183B    docs/notes/2018-10-06-babel-jest.md                                
npm notice 2.2kB   docs/notes/2018-10-06-refactoring-reduce-to-for.md                 
npm notice 1.8kB   docs/notes/2018-10-07-component-will-receive-props-deprecated.md   
npm notice 4.0kB   docs/notes/draftjs/2018-10-07-draftjs-3-play-word-on-click.md      
npm notice 8.9kB   docs/notes/draftjs/2018-10-07-draftjs-4-hlight-current-word.md     
npm notice 664B    docs/notes/draftjs/2018-10-08-draftjs-5-saving-current.md          
npm notice 8.0kB   docs/adr/2018-10-12-keyboard-shortcuts-in-react-notes.md           
npm notice 230B    docs/notes/2018-10-12-replace-timestamps-for-tests.md              
npm notice 450B    docs/notes/2018-10-16-locastorage.md                               
npm notice 1.4kB   docs/notes/draftjs/2018-10-20-draftjs-6-local-storage.md           
npm notice 1.5kB   docs/notes/2018-10-20-local-storage-draft-js.md                    
npm notice 1.6kB   docs/adr/2018-11-20-local-storage-save.md                          
npm notice 746B    docs/adr/2018-11-20-save-to-server.md                              
npm notice 13.4kB  docs/notes/2018-11-22-automated-testing-strategy.md                
npm notice 885B    docs/notes/2018-11-22-cra-eslint.md                                
npm notice 4.8kB   docs/notes/draftjs/2018-11-22-draftjs-7-speaker-info.md            
npm notice 202B    docs/notes/2018-11-28-travis-ci.md                                 
npm notice 1.6kB   docs/notes/2018-11-29-auto-pause-while-typing.md                   
npm notice 1.2kB   docs/notes/2018-11-29-git-cheat-sheet.md                           
npm notice 1.1kB   docs/notes/2018-11-29-scroll-sync.md                               
npm notice 3.8kB   docs/notes/2018-12-06-analytics-raise-events.md                    
npm notice 1.3kB   docs/adr/2018-12-06-analytics.md                                   
npm notice 2.9kB   docs/adr/2018-12-10-re-aligning-timed-text.md                      
npm notice 236B    docs/notes/draftjs/2018-12-11-multi-user-collaboration.md          
npm notice 1.1kB   docs/notes/2019-01-03-babel-7-cli-ignore-syntax.md                 
npm notice 17.8kB  docs/notes/2019-05-16-prevent-unnecessary-re-renders-in-react.md   
npm notice 656B    docs/notes/2019-07-31-npm-tags.md                                  
npm notice 698B    docs/notes/2020-03-13-entity-map.md                                
npm notice 4.4kB   docs/qa/3-settings.md                                              
npm notice 1.4kB   docs/qa/4-keyboard-shortcuts.md                                    
npm notice 1.5kB   docs/qa/5-analytics.md                                             
npm notice 6.7kB   docs/guides/adapters.md                                            
npm notice 2.2kB   docs/adr/ADR-Template.md                                           
npm notice 1.8kB   docs/guides/analytics.md                                           
npm notice 876B    .github/ISSUE_TEMPLATE/bug_report.md                               
npm notice 6.1kB   CODE_OF_CONDUCT.md                                                 
npm notice 3.3kB   CONTRIBUTING.md                                                    
npm notice 5.7kB   docs/guides/draftjs-blocks-entityrange-entitmap.md                 
npm notice 645B    .github/ISSUE_TEMPLATE/feature_request.md                          
npm notice 2.7kB   docs/features-list.md                                              
npm notice 1.1kB   LICENCE.md                                                         
npm notice 610B    .github/PULL_REQUEST_TEMPLATE.md                                   
npm notice 194B    .github/ISSUE_TEMPLATE/question.md                                 
npm notice 11.2kB  dist/README.md                                                     
npm notice 2.5kB   docs/qa/README.md                                                  
npm notice 12.2kB  README.md                                                          
npm notice 6.7kB   docs/guides/storybook-npm-setup.md                                 
npm notice 800.9kB docs/qa/images/picture-in-picture.png                              
npm notice 279.4kB docs/qa/images/player-controls-preview.png                         
npm notice 24.4kB  docs/qa/images/player-controls.png                                 
npm notice 66B     .storybook/styles/fonts.scss                                       
npm notice 186B    .storybook/styles/main.scss                                        
npm notice 246B    .travis.yml                                                        
npm notice === Tarball Details === 
npm notice name:          @pietrop/react-transcript-editor        
npm notice version:       1.3.4                                   
npm notice package size:  9.0 MB                                  
npm notice unpacked size: 35.6 MB                                 
npm notice shasum:        94f427b950858bab2e4e5daece1f7750e6ebd1cd
npm notice integrity:     sha512-xVI8tc4zqet+K[...]SfF/Ohny7CVPw==
npm notice total files:   109                                     
npm notice 
+ @pietrop/[email protected]

eg npmignore could include

src
demo
lib
packages
build
.babelrc
.babel.config.js
webpack.config.js

CONTRIBUTING.md  
CODE_OF_CONDUCT.md      
.github/
docs/
.out/
.gitbook.yaml 
*.sample.json
....
@pietrop pietrop added the bug Something isn't working label Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant