-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from thekip/master
Fix sourcemaps errors and update test
- Loading branch information
Showing
27 changed files
with
497 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "0.12" | ||
- "5" | ||
|
||
script: | ||
- npm test | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 12 additions & 11 deletions
23
examples/babel/annotated-reference.js → cases/babel/reference/build.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = [ | ||
{ | ||
original: { source: 'webpack:///file-to-annotate.js', line: 33, column: 2 }, | ||
generated: { line: 84, column: 3}, | ||
}, | ||
{ | ||
original: { source: 'webpack:///file-to-annotate.js', line: 41, column: 0 }, | ||
generated: { line: 95, column: 0 }, | ||
}, | ||
]; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
33 changes: 17 additions & 16 deletions
33
examples/simple/annotated-reference.js → cases/simple/reference/build.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = [ | ||
{ | ||
original: { source: 'webpack:///file-to-annotate.js', line: 24, column: 5 }, | ||
generated: { line: 71, column: 3}, | ||
}, | ||
{ | ||
original: { source: 'webpack:///file-to-annotate.js', line: 11, column: 5 }, | ||
generated: { line: 58, column: 3 }, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,6 @@ module.exports = { | |
loaders: [ | ||
{test: /\.js$/, loaders: ['loader']}, | ||
] | ||
} | ||
}, | ||
devtool: 'source-map' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
'use strict'; | ||
|
||
declare const angular: any; | ||
|
||
import babelTestMsg from './to-import'; | ||
console.log(babelTestMsg); | ||
|
||
angular.module('test', []) | ||
.controller('testCtrl', function($scope) { | ||
|
||
}) | ||
.factory('testFactory', function($cacheFactory) { | ||
return {}; | ||
}) | ||
.service('testNotAnnotated', function() { | ||
return {}; | ||
}) | ||
.directive('testDirective', function ($timeout) { | ||
return { | ||
restrict: 'E', | ||
controller: function($scope) { | ||
|
||
} | ||
}; | ||
}) | ||
.controller('someCtrl', someCtrl); | ||
|
||
function toAnnotate($scope) { | ||
'ngInject'; | ||
console.log('hi'); // should be function body, otherwise babel remove directive prologue | ||
} | ||
|
||
class someCtrl { | ||
constructor($scope) { | ||
this.doSomething(); | ||
} | ||
|
||
doSomething() { | ||
|
||
} | ||
} | ||
|
||
console.log('after annotated function'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.