Skip to content

Commit be20acf

Browse files
author
Andrew Schmadel
committed
bump babel version; prepare for release
1 parent 2c88b10 commit be20acf

9 files changed

+17
-331
lines changed

CHANGES.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# babel-plugin-angularjs-annotate changelog
2+
3+
## v0.1.0 2016-04-15
4+
* Initial release
5+
6+
# ng-annotate changelog
7+
18
## v1.2.1 2016-01-10
29
* bugfix case where $inject arrays were incorrectly hoisted
310
* angular-dashboard-framework optional: match apply

OPTIONS.md

-54
This file was deleted.

defs-config.json

-6
This file was deleted.

optionals/angular-dashboard-framework.js

-67
This file was deleted.

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"simple-is": "~0.2.0"
1414
},
1515
"devDependencies": {
16-
"babel-core": "^6.5.1",
17-
"babel-preset-es2015": "^6.5.0",
18-
"babel-types": "^6.5.1",
16+
"babel-core": "^6.6.0",
17+
"babel-preset-es2015": "^6.6.0",
18+
"babel-types": "^6.6.1",
1919
"chalk": "^1.1.1",
2020
"diff": "^2.2.1",
2121
"indent-string": "^2.1.0",
@@ -31,7 +31,8 @@
3131
"annotate",
3232
"annotation",
3333
"annotations",
34-
"transformation"
34+
"transformation",
35+
"babel-plugin"
3536
],
3637
"scripts": {
3738
"test": "node --harmony tests/tests.js | tap-xunit"
File renamed without changes.

tests/optionals/angular-dashboard-framework.annotated.js

-99
This file was deleted.

tests/optionals/angular-dashboard-framework.js

-99
This file was deleted.

tests/tests.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const diff = require('diff');
55
const chalk = require('chalk');
66
const indent = require('indent-string');
77
const tape = require('tape').test;
8+
const path = require('path');
89

910
let suites = [
1011
require('./simple'),
@@ -46,8 +47,10 @@ function runTest(test) {
4647
// var out = babel.transform(fnBody(test.input), { plugins: "../babel-ng-annotate", presets: ["../es2015-modified"] });
4748
// var expected = babel.transform(fnBody(test.expected), { plugins: [], presets: ["../es2015-modified"] });
4849

49-
var out = babel.transform(fnBody(test.input), { plugins: "../babel-ng-annotate" });
50-
var expected = babel.transform(fnBody(test.expected), { plugins: [] });
50+
var resolve = (file) => path.resolve(__dirname, file);
51+
52+
var out = babel.transform(fnBody(test.input), { plugins: ["../babel-ng-annotate.js"].map(resolve), presets:["./es2015-modified"].map(resolve) });
53+
var expected = babel.transform(fnBody(test.expected), { plugins: [], presets:["./es2015-modified"].map(resolve) });
5154

5255

5356
t.equals(out.code.trim(), expected.code.trim(), test.name);

0 commit comments

Comments
 (0)