Skip to content

Commit d7d71f7

Browse files
committed
Compiler can now watch imported files.
1 parent 07bf277 commit d7d71f7

File tree

6 files changed

+349
-145
lines changed

6 files changed

+349
-145
lines changed

packages/vue-component/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.6.3 - 2016/07/18
4+
5+
- The compiler can now watch imported files and hot-reload/rebuild the components that uses them.
6+
- The dependency watching has been implemented for less.
7+
38
## 0.6.1 - 2016/07/08
49

510
- The `.vueignore` file inside a folder will only apply to that folder, similar to `.gitignore` files.

packages/vue-component/package.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package.describe({
22
name: 'akryum:vue-component',
3-
version: '0.6.2',
3+
version: '0.6.3',
44
summary: 'VueJS single-file components that hot-reloads',
55
git: 'https://github.com/Akryum/meteor-vue-component',
66
documentation: 'README.md'
@@ -27,7 +27,8 @@ Package.registerBuildPlugin({
2727
'postcss': '5.0.21',
2828
'postcss-selector-parser': '2.0.0',
2929
'socket.io': '1.4.6',
30-
'async': '1.4.0'
30+
'async': '1.4.0',
31+
'lodash': '4.13.1'
3132
}
3233
});
3334

packages/vue-component/plugin/tag-handler.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ global._vue_js_cache = global._vue_js_cache || {};
55

66
// Tag handler
77
VueComponentTagHandler = class VueComponentTagHandler {
8-
constructor({ inputFile, allFiles, babelOptions }) {
8+
constructor({ inputFile, babelOptions, dependencyManager }) {
99
this.inputFile = inputFile;
10-
this.allFiles = allFiles;
1110
this.babelOptions = babelOptions;
11+
this.dependencyManager = dependencyManager;
1212

1313
this.component = {
1414
template: null,
@@ -169,7 +169,8 @@ VueComponentTagHandler = class VueComponentTagHandler {
169169
//console.log(`Compiling <style> in lang ${lang}...`);
170170
let result = compile({
171171
source: css,
172-
inputFile: this.inputFile
172+
inputFile: this.inputFile,
173+
dependencyManager: this.dependencyManager
173174
});
174175
//console.log("Css result", result);
175176
css = result.css;

0 commit comments

Comments
 (0)