Skip to content

Commit

Permalink
chore: πŸ”« add babel transpile to es6
Browse files Browse the repository at this point in the history
βœ… Closes: #1
  • Loading branch information
iamyoki committed Sep 26, 2021
1 parent f52e5f8 commit a247166
Show file tree
Hide file tree
Showing 11 changed files with 869 additions and 24 deletions.
15 changes: 15 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": true
},
"modules": "cjs"
}
]
],
"ignore": ["**/__tests__"],
"sourceMaps": true
}
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "playwright-watch",
"version": "1.3.19",
"main": "bin/playwright-watch.js",
"main": "src/bin/playwright-watch.js",
"description": "πŸ™ˆπŸ΅ Run Playwright in watch mode",
"keywords": [
"playwright",
Expand All @@ -20,14 +20,14 @@
},
"bugs": "https://github.com/iamyoki/playwright-watch/issues",
"license": "MIT",
"bin": "bin/playwright-watch.js",
"bin": "dist/bin/playwright-watch.js",
"files": [
"bin",
"commands",
"lib"
"dist"
],
"scripts": {
"prepare": "husky install",
"start": "yarn run build --watch",
"build": "rimraf dist && babel src --out-dir dist",
"test": "jest",
"test:coverage": "jest --coverage",
"lint": "eslint '**/*.js' --color --fix",
Expand All @@ -42,6 +42,9 @@
"yargs": "^17.1.1"
},
"devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.5",
"@babel/preset-env": "^7.15.6",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@release-it/conventional-changelog": "^3.3.0",
Expand All @@ -59,7 +62,8 @@
"jest": "^27.1.0",
"lint-staged": "^11.1.2",
"prettier": "^2.3.2",
"release-it": "^14.11.5"
"release-it": "^14.11.5",
"rimraf": "^3.0.2"
},
"peerDependencies": {
"playwright": ">=1"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
862 changes: 844 additions & 18 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit a247166

Please sign in to comment.