Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 8b549be

Browse files
committed
test: add babel for the tests
1 parent b57c17c commit 8b549be

15 files changed

+895
-33
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@
164164
"test.format": "prettier . --check",
165165
"lint": "eslint . --fix",
166166
"test.lint": "eslint .",
167-
"test": "apm test",
167+
"test": "npm run babel && atom --test spec",
168168
"clean": "shx rm -rf dist",
169+
"babel": "cross-env NODE_ENV=development cross-env BABEL_KEEP_MODULES=false babel src --out-dir dist --delete-dir-on-start",
169170
"dev": "npm run clean && cross-env NODE_ENV=development cross-env BABEL_KEEP_MODULES=true rollup -c -w",
170171
"build": "npm run clean && cross-env NODE_ENV=production cross-env BABEL_KEEP_MODULES=true rollup -c ",
171172
"prepare": "npm run build"
@@ -182,6 +183,7 @@
182183
"resolve-env": "1.0.0"
183184
},
184185
"devDependencies": {
186+
"@babel/cli": "^7.13.10",
185187
"@babel/core": "^7.13.10",
186188
"babel-preset-atomic": "^3.0.3",
187189
"build-commit": "^0.1.4",

0 commit comments

Comments
 (0)