Publish zodern:hot@0.1.0

This commit is contained in:
zodern
2020-06-07 20:06:29 -05:00
parent 618c4e63e3
commit 51e1885f19
3 changed files with 15 additions and 15 deletions

3
packages/hot/README.md Normal file
View File

@@ -0,0 +1,3 @@
# zodern:hot
Adds Hot Module Reloading. Learn more at [https://github.com/zodern/comet](https://github.com/zodern/comet).

View File

@@ -1,6 +1,6 @@
Package.describe({
name: 'zodern:hot',
version: '0.1.1',
version: '0.1.0',
summary: 'Adds Hot Module Reloading to Meteor',
documentation: 'README.md'
});
@@ -8,28 +8,21 @@ Package.describe({
Package.registerBuildPlugin({
name: 'hot-core',
sources: ['plugin.js'],
use: ['ecmascript'],
use: ['ecmascript@0.14.3'],
npmDependencies: {
ws: '7.2.5'
},
});
Package.onUse(function (api) {
api.versionsFrom('1.10');
api.use('isobuild:compiler-plugin@1.0.0');
api.use('babel-compiler');
api.use('modules');
api.imply('zodern:modules-runtime-hot');
api.imply('zodern:modules-runtime-hot@0.12.0');
api.addFiles('./client.js', 'client');
});
Package.onTest(function (api) {
api.use(["tinytest", "underscore"]);
api.use(["es5-shim", "ecmascript", "babel-compiler"]);
api.addFiles("runtime-tests.js");
api.addFiles("transpilation-tests.js", "server");
api.addFiles("bare-test.js");
api.addFiles("bare-test-file.js", ["client", "server"], {
bare: true
});
});

View File

@@ -107,9 +107,13 @@ function init() {
});
});
Plugin._onPreLinked(function (prelinkResult) {
sharedState.prelinkResultHandler(prelinkResult);
});
if (Plugin._onPreLinked) {
Plugin._onPreLinked(function (prelinkResult) {
sharedState.prelinkResultHandler(prelinkResult);
});
} else {
console.log('zodern:COMET is required for HMR: https://github.com/zodern/comet');
}
}
if (!sharedState.initialized) {