Skip to content

Commit

Permalink
Merge pull request #1139 from stealjs/babel-presets
Browse files Browse the repository at this point in the history
Add support for non builtin presets
  • Loading branch information
Manuel Mujica authored Mar 31, 2017
2 parents 1d6839a + a9219ac commit f6c07b5
Show file tree
Hide file tree
Showing 19 changed files with 1,254 additions and 541 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"async": "^2.1.4",
"babel-core": "^4.7.16",
"babel-plugin-steal-test": "0.0.2",
"babel-preset-steal-test": "0.0.1",
"babel-standalone": "6.23.1",
"fs-extra": "^2.0.0",
"grunt": "~0.4.1",
Expand Down
23 changes: 23 additions & 0 deletions scripts/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,26 @@ fs.copySync(
);
});
}());

// copy babel presets tests dependencies
(function() {
var paths = [
"babel_presets",
"babel_env_presets",
"babel_presets_options"
];

var deps = [
"babel-preset-steal-test",
"babel-plugin-steal-test"
];

paths.forEach(function(folder) {
deps.forEach(function(dep) {
fs.copySync(
path.join(root, "node_modules", dep),
path.join(root, "test", folder, "node_modules", dep)
);
});
});
}());
Loading

0 comments on commit f6c07b5

Please sign in to comment.