Skip to content

Commit

Permalink
Change output libraryTarget to umd (#41)
Browse files Browse the repository at this point in the history
* misc: Change output libraryTarget to umd

* misc: Update travis node_js version

* 2.3.0
  • Loading branch information
markduan authored and Xuanwo committed Oct 8, 2019
1 parent 61f13ac commit 0d704bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ language: node_js
node_js:
- "node"
- "lts/*"
- "10"
- "8"
- "6"

install: yarn install
script:
- yarn global add esformatter
- yarn add --dev esformatter
- yarn run build
- yarn test
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qingstor-sdk",
"version": "2.2.16",
"version": "2.3.0",
"description": "Official QingStor SDK for JavaScript",
"main": "./dist/node/qingstor-sdk.min.js",
"directories": {
Expand All @@ -24,7 +24,7 @@
"dist": "gulp tar zip",
"generate": "snips -f='./specs/qingstor/2016-01-06/swagger/api_v2.0.json' -t='./template' -o='./src/qingstor'; rm ./src/qingstor/object.js; npm run format;",
"test": "mocha --require @babel/register -t 10000",
"format": "esformatter -i 'src/**/*.js' 'lib/**/*.js' 'test/**/*.js' 'scenarios/tests/*.js' '*.js';"
"format": "./node_modules/.bin/esformatter -i 'src/**/*.js' 'lib/**/*.js' 'test/**/*.js' 'scenarios/tests/*.js' '*.js';"
},
"keywords": [
"qingstor",
Expand Down
2 changes: 1 addition & 1 deletion src/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
// | limitations under the License.
// +-------------------------------------------------------------------------

global.version = '2.2.16';
global.version = '2.3.0';
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const browserConfig = {
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'browser/qingstor-sdk.js',
libraryTarget: "var",
libraryTarget: "umd",
library: "qingstor_sdk"
},
plugins: [
Expand Down

0 comments on commit 0d704bb

Please sign in to comment.