Skip to content

chore(package): Delete unused build scripts #135

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

Merged
merged 3 commits into from
Jun 29, 2018

Conversation

spencerwilson-optimizely
Copy link
Contributor

@spencerwilson-optimizely spencerwilson-optimizely commented Jun 28, 2018

Since #133, we're no longer distributing an already-bundled package. With that change, I don't think there are any consumers of these 'build' run-scripts.

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm thanks for cleaning up!

@spencerwilson-optimizely spencerwilson-optimizely merged commit 2389345 into master Jun 29, 2018
@spencerwilson-optimizely spencerwilson-optimizely deleted the sw/delete-build-scripts branch June 29, 2018 17:49
spencerwilson-optimizely added a commit that referenced this pull request Jul 3, 2018
## Summary

- Add the same Full Stack description to the top of the READMEs here that @jonslaught advised to for python-sdk in optimizely/python-sdk#124 
- Clarify Lerna usage: no multiple packages, for now
- Fix stale package name in root readme, and fix the NPM badge that also was based on it
- Add badges to `@optimizely/optimizely-sdk`'s README
- Precisely document supported JavaScript environments
- Add note about default `EventDispatcher`s. (I have mixed feelings on this; happy to hear opinions)
- Make `Contributing` section more concise
- Drop references to `dist/` artifacts, since #135 made them no longer a thing

[Rendered](https://github.com/optimizely/javascript-sdk/blob/sw/readme/packages/optimizely-sdk/README.md)
spencerwilson-optimizely added a commit that referenced this pull request Aug 20, 2018
## Summary
- Restore the `build-browser-umd` npm script, which produces dist/optimizely.browser.umd.min.js
- Change the UMD lib name `optimizelyClient` -> `optimizelySdk`, since the `createInstance` client factory function may be one of several exports of the SDK, in the future.
- (not a visible change) Change Markdown indentation of some bull points, to please my Markdown editor [Typora](https://typora.io/)

This undoes one bit of #135. I hadn't realized that this asset _was_ documented, and does have some uses, like faster/easier prototyping in a browser.

## Test plan
I made a foo.html with
```html
<html>
<head>
  <script src="./dist/optimizely.browser.umd.min.js"></script>
  <script>
    console.log('trying sdk');
    window.optimizelySdk
    console.log('trying client');
    window.optimizelyClient
    console.log('trying client');
    window.optimizelyClient
  </script>
</head>
</html>
```
and it still works:

![screen shot 2018-08-20 at 2 59 47 pm](https://user-images.githubusercontent.com/20175438/44369024-b9d4b580-a489-11e8-9e2b-c8159917b68e.png)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants