mirror of
https://github.com/HackPlan/alicloud-sms-sdk.git
synced 2026-01-12 22:26:49 +08:00
1.0.2
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
*.log
|
||||
19
package.json
Normal file
19
package.json
Normal 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
30
webpack.config.js
Normal 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"],
|
||||
},
|
||||
}],
|
||||
],
|
||||
},
|
||||
}]
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user