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

Commit 16c27bf

Browse files
authored
Merge pull request #1423 from AtomLinter/babel
2 parents 894e0c9 + 23f20af commit 16c27bf

20 files changed

+3433
-224
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
spec/fixtures/
2+
dist/

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ jobs:
7979
node-version: "12.x"
8080
- name: NPM install
8181
run: npm install
82-
# - name: Build and Commit
83-
# run: npm run build-commit
82+
- name: Build and Commit
83+
run: npm run build-commit
8484
- name: Release 🎉
8585
uses: cycjimmy/semantic-release-action@v2
8686
with:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/node_modules
22
*.log
3-
.idea
3+
dist

babel.config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": ["babel-preset-atomic"],
3+
"exclude": "node_modules/**",
4+
"sourceMap": "inline"
5+
}

package.json

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linter-eslint",
3-
"main": "./src/main.js",
3+
"main": "./dist/main.js",
44
"version": "8.6.3",
55
"description": "Lint JavaScript on the fly, using ESLint",
66
"repository": "https://github.com/AtomLinter/linter-eslint.git",
@@ -163,11 +163,15 @@
163163
"format": "prettier --write .",
164164
"test.format": "prettier . --check",
165165
"lint": "eslint . --fix",
166-
"test.lint": "eslint .",
167-
"test": "apm test"
166+
"test.lint": "npm run babel && eslint .",
167+
"test": "npm run babel && atom --test spec",
168+
"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",
170+
"dev": "npm run babel && cross-env NODE_ENV=development cross-env BABEL_KEEP_MODULES=true rollup -c -w",
171+
"build": "npm run babel && cross-env NODE_ENV=production cross-env BABEL_KEEP_MODULES=true rollup -c ",
172+
"prepare": "npm run build"
168173
},
169174
"dependencies": {
170-
"atom-babel6-transpiler": "1.2.0",
171175
"atom-linter": "10.0.0",
172176
"atom-package-deps": "7.2.3",
173177
"babel-preset-env": "1.7.0",
@@ -179,10 +183,18 @@
179183
"resolve-env": "1.0.0"
180184
},
181185
"devDependencies": {
186+
"@babel/cli": "^7.13.10",
187+
"@babel/core": "^7.13.10",
188+
"babel-preset-atomic": "^3.0.3",
189+
"build-commit": "^0.1.4",
190+
"cross-env": "^7.0.3",
182191
"eslint-config-airbnb-base": "13.2.0",
183192
"eslint-plugin-import": "2.20.1",
184193
"jasmine-fix": "1.3.1",
185-
"rimraf": "3.0.2"
194+
"rimraf": "3.0.2",
195+
"rollup": "^2.42.4",
196+
"rollup-plugin-atomic": "^2.1.1",
197+
"shx": "^0.3.3"
186198
},
187199
"package-deps": [
188200
{
@@ -241,31 +253,5 @@
241253
"node": true,
242254
"browser": true
243255
}
244-
},
245-
"atomTranspilers": [
246-
{
247-
"glob": "{src,spec}/*.js",
248-
"transpiler": "atom-babel6-transpiler",
249-
"options": {
250-
"setBabelEnv": false,
251-
"babel": {
252-
"presets": [
253-
[
254-
"env",
255-
{
256-
"targets": {
257-
"node": "current"
258-
}
259-
}
260-
]
261-
],
262-
"sourceMaps": "inline",
263-
"babelrc": false
264-
},
265-
"cacheKeyFiles": [
266-
"package.json"
267-
]
268-
}
269-
}
270-
]
256+
}
271257
}

0 commit comments

Comments
 (0)