This commit is contained in:
c4605
2017-10-13 07:51:29 +08:00
commit 5920a48b91
5 changed files with 13706 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
node_modules
*.log

10944
index.js Normal file

File diff suppressed because it is too large Load Diff

19
package.json Normal file
View File

@@ -0,0 +1,19 @@
{
"name": "alicloud-sms-sdk",
"version": "1.0.2",
"main": "index.js",
"author": "c4605 <bolasblack@gmail.com>",
"license": "MIT",
"scripts": {
"build": "webpack"
},
"dependencies": {
"@alicloud/sms-sdk": "^1.0.2"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.0",
"webpack": "^3.7.1"
}
}

30
webpack.config.js Normal file
View File

@@ -0,0 +1,30 @@
const path = require('path')
module.exports = {
entry: "./node_modules/@alicloud/sms-sdk/index.js",
target: "node",
output: {
path: __dirname,
filename: 'index.js',
library: "alicloud-sms-sdk",
libraryTarget: "commonjs2",
},
module: {
rules: [{
test: /\.js$/,
include: [
path.resolve(__dirname, "node_modules/@alicloud"),
],
loader: "babel-loader",
options: {
presets: [
["env", {
"targets": {
"node": ["6.0.0"],
},
}],
],
},
}]
},
}

2711
yarn.lock Normal file

File diff suppressed because it is too large Load Diff