Skip to content

Commit 426ae44

Browse files
committed
Add babel scripts and config
1 parent f2edf86 commit 426ae44

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ bower_components
3232
# Compiled binary addons (http://nodejs.org/api/addons.html)
3333
build/Release
3434

35+
dist
36+
3537
# Dependency directories
3638
node_modules/
3739
jspm_packages/

babel.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
let presets = ["babel-preset-atomic"]
2+
3+
let plugins = []
4+
5+
module.exports = {
6+
presets: presets,
7+
plugins: plugins,
8+
exclude: ["node_modules/**", "lib/debugger/VendorLib/**"],
9+
sourceMap: "inline",
10+
}

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ide-python",
3-
"main": "./lib/main",
3+
"main": "./dist/main",
44
"version": "1.5.2",
55
"description": "Python language support for Atom-IDE",
66
"keywords": [
@@ -27,6 +27,13 @@
2727
"engines": {
2828
"atom": ">=1.21.0 <2.0.0"
2929
},
30+
"scripts": {
31+
"clean": "shx rm -rf dist",
32+
"babel": "npm run clean && shx cp -r lib dist && cross-env NODE_ENV=production cross-env BABEL_KEEP_MODULES=false babel dist --out-dir dist",
33+
"copy": "shx cp -r lib/debugger/VendorLib dist/debugger",
34+
"build-commit": "build-commit -o dist",
35+
"prepare": "npm run babel"
36+
},
3037
"dependencies": {
3138
"atom-languageclient": "0.9.9",
3239
"arch": "2.1.0",

0 commit comments

Comments
 (0)