-
Notifications
You must be signed in to change notification settings - Fork 43
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
Get ready to publish Alloy as an NPM repo #637
Merged
Merged
Changes from 26 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
5548e15
CORE-52172 expose ES modules so Launch extension can consume npm repo
jonsnyder 8cdcc34
CORE-52172 add tests and ignores, add more terser options
jonsnyder fdf619f
CORE-52172 add readme
jonsnyder ca0139e
Merge remote-tracking branch 'origin/master' into npmLibrary
jonsnyder f4f37ba
CORE-52172 add test files to pass lint test
jonsnyder 6213606
CORE-52172 finish readme, setup files array, fix terser options
jonsnyder 6cc1416
Merge remote-tracking branch 'origin/main' into npmLibrary
jonsnyder 9b459e2
expose es6 and commonjs modules, address PR comments
jonsnyder c48cc80
Remove typescript from package.json
jonsnyder ca0892a
Fix event merge id issue
jonsnyder 8e34421
Make the generated baseCode identical to pre-npm library version
jonsnyder 41fcfda
Do not rollup es5 and es6 verions
jonsnyder 821977d
update babel/cli version
jonsnyder ccbbef9
Add rimraf
jonsnyder 922bb03
Use rimraf directly in prepublish script
jonsnyder a2a9893
Remove installation instructions from github README
jonsnyder dda91a0
CORE-52500 remove 'the' in Readme, remove jscc dependency
jonsnyder a46c2d4
Merge remote-tracking branch 'origin/main' into npmLibrary
jonsnyder 3ce8902
Merge remote-tracking branch 'origin/main' into npmLibrary
jonsnyder f4c5646
expose a createInstance function rather than core and baseCode
jonsnyder d54c472
Add functional test for NPM library
jonsnyder 0b5b65d
Merge remote-tracking branch 'origin/main' into npmLibrary
jonsnyder eb9e8f7
Remove wait for globalFunction in npmLibrary test
jonsnyder 52e5fee
Rename createInstance in test
jonsnyder d18dc14
Merge remote-tracking branch 'origin/main' into npmLibrary
jonsnyder f5f7c57
Use NPM Library in prod for integration tests
jonsnyder a5e7a39
explicitly include index in imports to allow Launch packager to work
jonsnyder ff5b019
Revert "explicitly include index in imports to allow Launch packager …
jonsnyder b8eb968
rename build folders and files
jonsnyder f008c43
update package-lock.json
jonsnyder 55d7cd3
Remove npmPackageProd until npm package is deployed
jonsnyder acf533f
Fix build to output the baseCode
jonsnyder 345ba85
fix rollup for sandbox
jonsnyder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{ | ||
"name": "@adobe/alloy", | ||
"version": "2.3.0", | ||
"description": "Client-Side SDK for Unified Data Collection", | ||
"main": "src/core/index.js", | ||
"description": "Adobe Experience Platform Web SDK", | ||
"main": "dist/es5/index.js", | ||
"module": "dist/es6/index.js", | ||
"files": [ | ||
"dist/es5", | ||
"dist/es6" | ||
], | ||
"scripts": { | ||
"install": "cd sandbox && npm install", | ||
"clean": "rimraf dist", | ||
|
@@ -14,15 +19,16 @@ | |
"test:unit:browserstack:local": "karma start karma.browserstack.conf.js", | ||
"test:unit:browserstack:ci": "karma start karma.browserstack.conf.js --browsers bs_chrome_windows,bs_safari_macos,bs_firefox_windows,bs_ie_windows --single-run --reporters spec,BrowserStack", | ||
"test:unit:coverage": "karma start --single-run --reporters spec,coverage", | ||
"test:functional": "rollup -c --environment BUILD:prodStandalone && EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" testcafe chrome", | ||
"test:functional:watch": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" BUILD=\"prodStandalone\" ./scripts/watchFunctionalTests.js", | ||
"test:functional": "rollup -c --environment BASE_CODE,NPM_LIBRARY_LOCAL && EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" testcafe chrome", | ||
"test:functional:watch": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" ./scripts/watchFunctionalTests.js", | ||
"test:functional:ci:chrome": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" testcafe 'browserstack:chrome@87:Windows 10'", | ||
"test:functional:ci:ie": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" testcafe 'browserstack:ie@11:Windows 10'", | ||
"test:functional:cron:prod": "ALLOY_ENV=\"prod\" testcafe 'browserstack:chrome@87:OS X'", | ||
"test:functional:api": "testcafe chrome:headless", | ||
"sandbox:build": "cd sandbox && npm run build", | ||
"dev": "concurrently --names build,sandbox \"rollup -c -w\" \"cd sandbox && export REACT_APP_NONCE=321 && npm start\"", | ||
"build": "npm run format && npm run lint && npm run clean && concurrently \"rollup -c --environment BUILD:prodStandalone\" \"rollup -c --environment MINIFY,BUILD:prodStandalone\" \"rollup -c --environment BUILD:prodReactor\" && echo \"Base Code:\" && terser src/baseCode/index.js --mangle --compress unused=false", | ||
"dev": "concurrently --names build,sandbox \"rollup -c -w --environment SANDBOX\" \"cd sandbox && export REACT_APP_NONCE=321 && npm start\"", | ||
"build": "npm run format && npm run lint && npm run clean && concurrently \"rollup -c --environment BASE_CODE,NPM_LIBRARY_PROD,NPM_LIBRARY_LOCAL\" \"rollup -c --environment MINIFY,BASE_CODE\" && echo \"Base Code:\" && cat dist/baseCode.min.js", | ||
"prepublish": "rimraf dist && babel src --out-dir dist/es5 --env-name npm && babel src --out-dir dist/es6 --ignore src/baseCode.js,src/standalone.js --no-babelrc --plugins version", | ||
"checkthattestfilesexist": "./scripts/checkThatTestFilesExist.js" | ||
}, | ||
"husky": { | ||
|
@@ -56,7 +62,7 @@ | |
"license": "Apache-2.0", | ||
"bundlesize": [ | ||
{ | ||
"path": "./dist/standalone/alloy.min.js" | ||
"path": "./dist/alloy.min.js" | ||
} | ||
], | ||
"dependencies": { | ||
|
@@ -68,6 +74,8 @@ | |
"uuid": "^3.3.2" | ||
}, | ||
"devDependencies": { | ||
"@adobe/alloy": "file:./", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For now this just references the current directory, but when we publish the NPM library I will change this to reference the actual version. |
||
"@babel/cli": "^7.12.8", | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.3.2", | ||
"@babel/plugin-transform-template-literals": "^7.4.4", | ||
|
@@ -102,12 +110,12 @@ | |
"read-cache": "^1.0.0", | ||
"recursive-readdir": "^2.2.2", | ||
"request": "^2.88.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.29.0", | ||
"rollup-plugin-babel": "^4.4.0", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-glob-import": "^0.4.5", | ||
"rollup-plugin-istanbul": "^2.0.1", | ||
"rollup-plugin-jscc": "^2.0.0", | ||
"rollup-plugin-license": "^2.2.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finally :)