diff --git a/.travis.yml b/.travis.yml index 77f7084..9e8d70a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/package.json b/package.json index 9213b81..25894d6 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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", diff --git a/src/version.js b/src/version.js index 57c2952..1c65611 100644 --- a/src/version.js +++ b/src/version.js @@ -14,4 +14,4 @@ // | limitations under the License. // +------------------------------------------------------------------------- -global.version = '2.2.16'; +global.version = '2.3.0'; diff --git a/webpack.config.js b/webpack.config.js index 2693687..402684c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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: [