mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Publish zodern:hot@0.1.0
This commit is contained in:
3
packages/hot/README.md
Normal file
3
packages/hot/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# zodern:hot
|
||||
|
||||
Adds Hot Module Reloading. Learn more at [https://github.com/zodern/comet](https://github.com/zodern/comet).
|
||||
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user