Skip to content

Commit

Permalink
🔧 Create bundle strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorLuizC committed Aug 9, 2018
1 parent ed45057 commit 3d46eb1
Show file tree
Hide file tree
Showing 4 changed files with 2,761 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ package-lock.json

# Generated sources folder.
dist/

# Generated JavaScript sources & type definitions files.
index.js
index.d.ts
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc && bili index.js --format es,cjs,umd --banner --js buble"
},
"repository": {
"type": "git",
Expand All @@ -19,5 +20,9 @@
"bugs": {
"url": "https://github.com/VitorLuizC/object-descriptors/issues"
},
"homepage": "https://github.com/VitorLuizC/object-descriptors#readme"
"homepage": "https://github.com/VitorLuizC/object-descriptors#readme",
"devDependencies": {
"bili": "^3.1.2",
"typescript": "^3.0.1"
}
}
14 changes: 14 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"target": "es2015",

// Settings for module.
"module": "es2015",

// Settings for generating type definitions.
"lib": [ "es2018" ],
"strict": true,
"declaration": true
},
"files": [ "index.ts" ]
}
Loading

0 comments on commit 3d46eb1

Please sign in to comment.