![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Hot-Module-Reload made for dummies!
Package for Node.js, written in TypeScript with async/await. Designed to use with JSPM or SystemJS. Using SystemJS for Universal (ES6) Module Loading Support.
$ npm install jspm-hmr --save-dev
$ ./node_modules/.bin/jspm-hmr --init
$ npm start
Now make some changes in "src/app.js" file and save it to see hot-module-reload in action! You should use ES6 Modules (import/export) for future-proof code: http://exploringjs.com/es6/ch_modules.html
$ npm install jspm-hmr [--save-dev]
Tip: You can install it globally using -g flag so you can use it as simple http server in any directory on your machine
Pro-tip: You can use --init flag to initialize your project with index.html, app.js, server.js files - configured with hot-module-reload for JSPM & SystemJS
$ jspm-hmr [path] [options]
Options:
-h, --help output usage information
-V, --version output the version number
-I, --init initialize your project with index.html, app.js, server.js files - configured with hot-module-reload for JSPM & SystemJS
-O, --open automatically open browser (defaults to false)
-P, --port <number> port number (defaults to 8888)
-C, --caching [number] enable caching with max-age= (defaults to -1)
$ jspm-hmr -I
$ jspm-hmr . -O
$ jspm-hmr "dist" -P 4444 -C 3600
Watches specified files for changes in chosen path and emits events through web sockets on changes to your client to reload that particular JavaScript modules that has changed. -I or --init flag initialize index.html and server.js in your project with automatic hot-module-reload configuration for easy setup.
Under the hood it uses great systemjs-hot-reloader with chokidar-socket-emitter.
Copyright 2016 Piotr Witek piotrek.witek@gmail.com (http://piotrwitek.github.io)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
Dev-Server with Hot-Reload for JSPM & SystemJS
The npm package jspm-hmr receives a total of 9 weekly downloads. As such, jspm-hmr popularity was classified as not popular.
We found that jspm-hmr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.