Skip to content

Commit

Permalink
🆕 Transpile the package using ucompiler
Browse files Browse the repository at this point in the history
  • Loading branch information
steelbrain committed Feb 8, 2016
1 parent babddd3 commit a5441b3
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
node_modules
/lib
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
node_modules
/spec
/src
15 changes: 15 additions & 0 deletions .ucompiler
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"defaultRule": "compile-src",
"rules": [{
"name": "compile-src",
"plugins": ["babel"],
"babel": {
"presets": ["steelbrain"]
},
"include": [{
"directory": "src",
"extensions": ["js"]
}],
"outputPath": "lib/{relativePath:4}"
}]
}
2 changes: 1 addition & 1 deletion lib/helpers.js → src/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use babel'
'use strict'

import {BufferedProcess} from 'atom'
const extractionRegex = /Installing (.*?) to .* (.*)/
Expand Down
3 changes: 2 additions & 1 deletion lib/main.js → src/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use babel'
'use strict'

const FS = require('fs')
const Path = require('path')
const {View} = require('./view')
Expand Down
3 changes: 2 additions & 1 deletion lib/view.js → src/view.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use babel'
'use strict'

export class View {
constructor(name, dependencies) {
this.name = name
Expand Down

0 comments on commit a5441b3

Please sign in to comment.