Skip to content

Commit

Permalink
fix: move @types/uuid to devDependencies, add real version in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoweii committed Aug 30, 2023
1 parent 4c2e217 commit 66ec28f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,16 @@ ClickstreamAnalytics.updateConfigure({

### Integrate by `.tgz` file

Clone this repository locally, execute the following script to generate `aws-clickstream-web-x.x.x.tgz` zip package, which will be located in the project root folder.
Clone this repository locally, execute the following script to generate `aws-clickstream-web-0.2.0.tgz` zip package, which will be located in the project root folder.
```bash
cd clickstream-web && npm run pack
```

Copy the `aws-clickstream-web-x.x.x.tgz` into your project, then execute the following script in your project root folder to install the SDK.
Copy the `aws-clickstream-web-0.2.0.tgz` into your project, then execute the following script in your project root folder to install the SDK.
```bash
npm install ./aws-clickstream-web-x.x.x.tgz
npm install ./aws-clickstream-web-0.2.0.tgz
```
Note: Please correct the SDK version and change the path to where the `aws-clickstream-web-x.x.x.tgz` file is located.
Note: Please correct the SDK version and change the path to where the `aws-clickstream-web-0.2.0.tgz` file is located.

### Integrate by `clickstream-web.min.js` file
Execute the following same script to generate `clickstream-web.min.js` which will be located in the `/dist` folder.
Expand Down
8 changes: 5 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"dependencies": {
"@aws-amplify/core": "^5.5.1",
"@aws-crypto/sha256-browser": "^4.0.0",
"@types/uuid": "^9.0.0",
"tslib": "^2.6.0",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/jest": "^29.1.0",
"@types/jsdom": "^21.1.1",
"@types/uuid": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"babel-loader": "^9.1.3",
"eslint": "^8.43.0",
Expand Down
8 changes: 5 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ module.exports = {
],
},
optimization: {
minimizer: [new TerserPlugin({
extractComments: false,
})],
minimizer: [
new TerserPlugin({
extractComments: false,
}),
],
},
};

0 comments on commit 66ec28f

Please sign in to comment.