Add es6 build step
This commit is contained in:
Родитель
ee238eff7a
Коммит
4b2e3124fa
|
@ -1,4 +1,5 @@
|
|||
!dist/lib/**/*.js
|
||||
!es/lib/**/*.js
|
||||
!typings/lib/**/*.d.ts
|
||||
.vscode/
|
||||
.idea/
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
"clientruntime"
|
||||
],
|
||||
"main": "./dist/lib/msRestAzure.js",
|
||||
"browser": "./es/lib/msRestAzure.js",
|
||||
"types": "./typings/lib/msRestAzure.d.ts",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
@ -55,8 +56,9 @@
|
|||
"url": "http://github.com/Azure/ms-rest-azure-js/issues"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "run-p build:node build:browser",
|
||||
"build": "run-p build:node build:es build:browser",
|
||||
"build:node": "tsc",
|
||||
"build:es": "tsc -p tsconfig.es.json",
|
||||
"build:browser": "webpack && node node_modules/uglify-es/bin/uglifyjs --source-map -c -m -o msRestAzureBundle.min.js msRestAzureBundle.js",
|
||||
"watch:node": "tsc -w",
|
||||
"watch:browser": "webpack -w",
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "es6",
|
||||
"outDir": "es"
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче