-
Notifications
You must be signed in to change notification settings - Fork 423
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
Publish Design System React to NPM #1146
Comments
The first purpose of open sourcing was to eliminate the access issue for folks. NPM publishing is in the plans. I don't have an ETA right now. I am evaluating the file structure of the module. Comments are welcome. NPM module file structureesnext/jsnext:main/module/*.mjs (“Michael Jackson Script”)... Background
In a perfect “breaking changes” world
A possibly non-breaking change proposal - use this
Benefits of non-breaking change proposal
if we are namespacing this with @salesforce, then we are beaking |
Consider new or no node engine spec for npm package. #1175 |
I think the answer to your question, "Is CJS needed? Who builds React apps without a transpiler and a module builder?" is that we should not put any CJS-like things in the npm module. If you're using React in a CJS environment, you're likely already using some kind of transpiler to spit out the CJS modules that could also handle ES6 modules. |
I'm going to take this. The "normal" npm package (meaning when you would do |
Sounds good. Feel free to pass it back at anytime. Most of the scripting should be present, especially if we aren't doing anything crazy like ES6+CJS. Mostly just needs some transpiling minus |
Yep, seeing that in the scripts. Probably just going to make a |
does that mean you're going to be publishing the components folder as it appears in the repo? or are you going to be compiling things down to ES5? Would be nice to have the source components in there, unbuilt |
Yes, there will be a |
@vernak2539 take a look at #1195, run |
After working some with Babel, I intend to make I think the better path is to create a custom Babel preset that moves along with the library and pulls in any plugins needed. This means the source mapping is always correct, too. Class property initializers are still stage 2, for instance, so the source line numbers would be off for all class properties, and I'd like the application source maps to point to the actual source code so engineering teams can aid in debugging issues. I intend to publish something along the lines of
Transpiled CommonJS will still be present in a |
FYI, we're starting the work to compile deps with Let us know if you have feedback about how this should work. Note we intentionally won’t be compiling JSX/Flow/etc, and will only stick to supporting features that work in Node. |
Can we get this lib published to NPM? It's kind of a headache to link to it via git url
The text was updated successfully, but these errors were encountered: