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