sencha-hotswap
#### Global
Last updated 3 years ago by xblox .
BSD · Repository · Original npm · Tarball · package.json
$ cnpm install sencha-hotswap 
SYNC missed versions from official npm registry.

Installation

Global

npm install -g --production sencha-hotwatch

Local

npm install --save-dev --production sencha-hotwatch

Usage

Via extending your package.json :


"hotswap": {
    "watch": [
      "./classic/src",
      "./build/development"
    ]
  },
 "scripts": {
    "watch":"sencha-hotswap"
 }

Now run:

npm run watch

Via CLI:

Run

sencha-hotswap --watch='../miimetiq/architect/modules/dashboard/frontend/classic/src,../miimetiq/architect/modules/dashboard/frontend/build/development'

Extend your index.html for

	<!-- Sockjs -->
	<script id="sockjs" type="text/javascript" src="./node_modules/sencha-hotswap-client/client/sockjs-0.3.min.js"></script>
	<!-- Hotswap -->
	<script id="hotswap" type="text/javascript" src="./node_modules/sencha-hotswap-client/client/hotswap-client.js"></script>

Register your class for hotswap:


	Ext.define('Dashboard.view.MiimetiqDashboardComponentViewController', {
	extend: 'Ext.app.ViewController',
	alias: 'controller.miimetiq-dashboard-component',
	constructor: function () {
		RegisterHotswap(this);
	},
	....

Proceed as usual:

  • Fire sencha `sencha app watch'
  • Run npm run watch or if globally installed : `sencha-hotswap' inside your frontend folder (needs proper package.json or --watch argument )
  • update/insert methods of your class
  • save your file, some moment later sencha-hotwatch will notify and update your client application in the browser

Current Tags

  • 0.0.12                                ...           latest (3 years ago)

10 Versions

  • 0.0.12                                ...           3 years ago
  • 0.0.11                                ...           3 years ago
  • 0.0.10                                ...           3 years ago
  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (42)
Dev Dependencies (15)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |