Hope this question is not too stubborn, I ask about the best / usual practice for this.
I am publishing an npm module written in ES6 and translated into ES5 and UMD using babel and rollup .
The file structure can be summarized as follows:
/coverage/ /dist/ /node_modules/ /src/ /test/ /tools/ .editorconfig .eslintrc .gitattributes .gitignore .travis.yml CHANGELOG.md CONTRIBUTING.md LICENSE.txt package.json README.md
Source code is within /src/and compiled code in /dist/.These dir are .gitignored:
/src/
/dist/
What the user really used is really content /dist/.
I used the starter kit with the build process, which:
package.json
GitHub, , npm:
A) ( /coverage/ /node_modules/) package.json, dist
/coverage/
/node_modules/
dist
B) dist package.json README LICENSE. , /dist .
/dist
?
, npm, transpilation/minification/etc. , .
Node ( npm , , ), , ( , ) dist .
dist , , , dist , npm version npm publish.
npm version
npm publish
, , Node Node. , , , - .
, . , - , , , , , - , . , , , ( ).
Source: https://habr.com/ru/post/1016764/More articles:Prevent scrolling Flatlist when adding new elements - react-nativehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1016760/openocd-fails-to-connect-with-cortex-processor&usg=ALkJrhjgpWFzSJ-XrpdnH5u3pCsCUL9vDADoes .editorconfig do anything in VS2017? - visual-studio-2017Error during unit testing: "Unprepared (in promise) SyntaxError: Unexpected o token in JSON at position 1" - jsonMicroservices with a common database? using multiple ORM? - databaseDatabase design for microservice architecture - designjs calling a static method from a class - javascriptHow to create a map from a list using an internal list using Kotlin - kotlinExporting a plot to .png with a transparent background - rHTML5 orientation jumps - javascriptAll Articles