Skip to content

Commit

Permalink
add babel
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael J. Currie committed Sep 23, 2019
1 parent 9cd63f4 commit a6570cd
Show file tree
Hide file tree
Showing 3 changed files with 2,026 additions and 22 deletions.
17 changes: 17 additions & 0 deletions babel.config.js
@@ -0,0 +1,17 @@
module.exports = function(api) {
api.cache(true);

const presets = [
[
"@babel/preset-env",
{
useBuiltIns: false
}
],
"@babel/preset-typescript"
];

const plugins = [];

return { presets, plugins };
};
16 changes: 15 additions & 1 deletion package.json
Expand Up @@ -6,15 +6,29 @@
"build": "tsc",
"lint": "eslint ./src --ext .ts",
"prettier:write": "prettier --write ./src/*.ts",
"prettier:check": "prettier --check ./src/*.ts"
"prettier:check": "prettier --check ./src/*.ts",
"babel": "babel ./src/clipboard.ts --out-dir wwwroot --extensions .ts,.tsx"
},
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.6.0",
"@types/node": "^12.7.5",
"@typescript-eslint/eslint-plugin": "^2.3.0",
"@typescript-eslint/parser": "^2.3.0",
"eslint": "^6.4.0",
"eslint-config-prettier": "^6.3.0",
"prettier": "^1.18.2",
"typescript": "^3.6.3"
},
"browserslist": [
"chrome 66",
"firefox 63",
"opera 53",
"and_chr 76",
"and_ff 68",
"samsung 9.2"
],
"author": "Michael J. Currie"
}

0 comments on commit a6570cd

Please sign in to comment.