Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 294d63a

Browse files
committed
use babel plugin
1 parent 2c1e3f0 commit 294d63a

18 files changed

+7
-38
lines changed

lib/add-dialog.coffee

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use babel'
21
import path from 'path'
32
import fs from 'fs-plus'
43
import Dialog from './dialog'

lib/add-projects-view.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
export default class AddProjectView {
42
constructor () {
53
this.element = document.createElement('div')

lib/copy-dialog.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import path from 'path'
42
import fs from 'fs-plus'
53
import Dialog from './dialog'

lib/default-file-icons.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import path from 'path'
42
import fs from 'fs-plus'
53

lib/dialog.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import {TextEditor, CompositeDisposable, Disposable, Emitter, Range, Point} from'atom'
42
import path from 'path'
53
import {getFullExtension} from "./helpers"

lib/directory-view.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import {CompositeDisposable} from 'atom'
42
import getIconServices from './get-icon-services'
53
import Directory from './directory'

lib/directory.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import path from 'path'
42
import _ from 'underscore-plus'
53
import {CompositeDisposable, Emitter} from 'atom'

lib/file-view.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import {CompositeDisposable} from 'atom'
42
import getIconServices from './get-icon-services'
53

lib/file.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import fs from 'fs-plus'
42
import {CompositeDisposable, Emitter} from 'atom'
53
import {repoForPath} from './helpers'

lib/get-icon-services.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import DefaultFileIcons from './default-file-icons'
42
import {Emitter, CompositeDisposable} from 'atom'
53
import {repoForPath} from './helpers'

lib/helpers.coffee

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
'use babel'
2-
31
import path from "path"
42

5-
63
export repoForPath = (goalPath) ->
74
for projectPath, i in atom.project.getPaths()
85
if goalPath is projectPath or goalPath.indexOf(projectPath + path.sep) is 0

lib/ignored-names.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
Minimatch = null # Defer requiring until actually needed
42

53
export default class IgnoredNames

lib/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import TreeViewPackage from './tree-view-package'
42

53
export default new TreeViewPackage()

lib/move-dialog.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import path from 'path'
42
import fs from 'fs-plus'
53
import Dialog from './dialog'

lib/root-drag-and-drop.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import url from 'url'
42

53
import {ipcRenderer, remote} from 'electron'

lib/tree-view-package.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import {Disposable, CompositeDisposable} from 'atom'
42

53
import getIconServices from './get-icon-services'

lib/tree-view.coffee

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use babel'
2-
31
import path from 'path'
42
import {shell} from 'electron'
53

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"scripts": {
1313
"test": "shx cp dist/tree-view.js spec/tree-view-spec.js && cp dist/tree-view.js.map spec/tree-view-spec.js.map && shx cp dist/ignored-names* spec && apm test",
1414
"clean": "shx rm -rf dist",
15-
"debug": "npm run clean && shx cp -r lib dist",
16-
"dev": "npm run clean && env NODE_ENV=development rollup -c -w",
17-
"build": "npm run clean && env NODE_ENV=production rollup -c",
15+
"debug": "npm run clean && shx cp -r lib dist && env NODE_ENV=development env BABEL_ENV=development babel lib --out-dir dist",
16+
"dev": "npm run clean && env NODE_ENV=development env BABEL_ENV=production rollup -c -w",
17+
"build": "npm run clean && env NODE_ENV=production env BABEL_ENV=production rollup -c",
1818
"ppublish": "bash ./ppublish.sh",
1919
"prepare": "npm run build"
2020
},
@@ -35,7 +35,10 @@
3535
"rollup-plugin-terser": "^6.1.0",
3636
"rollup-plugin-coffee-script": "^2.0.0",
3737
"coffeescript": "^2.5.1",
38-
"shx": "^0.3.2"
38+
"shx": "^0.3.2",
39+
"@babel/core": "^7.10.1",
40+
"@babel/cli": "^7.10.1",
41+
"@babel/preset-env": "^7.10.1"
3942
},
4043
"deserializers": {
4144
"TreeView": "getTreeViewInstance"

0 commit comments

Comments
 (0)