Skip to content

Commit

Permalink
Add es6 build step
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkiGibson committed Jun 11, 2018
1 parent ee238ef commit 4b2e312
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
!dist/lib/**/*.js
!es/lib/**/*.js
!typings/lib/**/*.d.ts
.vscode/
.idea/
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"clientruntime"
],
"main": "./dist/lib/msRestAzure.js",
"browser": "./es/lib/msRestAzure.js",
"types": "./typings/lib/msRestAzure.d.ts",
"license": "MIT",
"dependencies": {
Expand Down Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "es6",
"outDir": "es"
}
}

0 comments on commit 4b2e312

Please sign in to comment.