Skip to content
Permalink
Browse files

Backport from downstream experience

  • Loading branch information...
aisera-mikowski committed Jun 3, 2018
1 parent 7f052ce commit 1785e175bbc587ffd7d40324df1ff1764acc41a4
@@ -9,7 +9,7 @@

## Recent changes
### Version 1.4.x
Work on version 1.4.x began on 2017-10-01. This README was last update on 2018-04-28 version 1.4.25.
Work on version 1.4.x began on 2017-10-01. This README was last update on 2018-06-02 version 1.4.26. The 1.4 series includes these changes:

- Add Typebomb2 example application
- Convert build system to JavaScript using `package.json` as manifest
@@ -22,6 +22,7 @@ Work on version 1.4.x began on 2017-10-01. This README was last update on 2018-0
- Revise code standards and images
- Update README with images
- Update AMI image for deployment and add screen shot
- Rename JQuery and PowerCSS to avoid conflicts

---
## Quick start
@@ -384,6 +385,8 @@ Client libraries are copied to the `js/vendor` directory. This makes them availa
- [SprintF][_32]: Sprintf library
- [TaffyDB][_17]: Client data management

The `jQuery` namespace is changed to `xhiJQ` and the PowerCSS namespace is changed from `pcss` to `xhiCSS`. This avoids conflicts with other libraries. The naming may be updated by adjusting `bin/rename-vendor-symbols`. When coding, please use these symbol (`xhiJQ` and `xhiCSS`) instead of their usual names (`jQuery` and `pcss`). Also, do _not_ expect the `$` symbol to represent jQuery. Rely on local mapping if you want that behavior, e.g. `(function ($) { ... }( xhiJQ ))`. All supporting libraries are already adjust, of course.

#### Node JS libraries
NodeJS libraries are **not** copied to a `vendor` directory. We may change this if we decide to create a server distribution. The following libraries are installed:

@@ -600,18 +603,20 @@ MIT
- (x) Revise code standards and images
- (x) Update AMI image for deployment and add screen shot
- (x) Update README with images
- (x) Support symbol renaming to avoid conflicts
(jQuery => xhiJQ, pcss => xhiCSS)
- (o) Add UUID snippet from Git to build number, for example, `000025-1c002d`
- (o) Fix commit hook conflict in `bin/xhi` run range
- (o) Update quick reference code standard
- (o) Test load times using remote server

### Version 1.5.x (next)
- (o) `bin/xhi` enhancements
- (o) `bin/xhi build` convert: superpack Perl to JS, use `package.json` config
- (o) `bin/xhi dev_start, prod_start` HTTPS : Use LetsEncrypt to use HTTPS by default
- (o) `bin/xhi dev_start, prod_start` HTTP/2: Configure for HTTP/2 if feasible
- (o) `bin/xhi deploy` implement: Add configuration and capability
- (o) `bin/xhi publish` : Push to NPM
- (o) `bin/xhi build` convert: superpack Perl to JS, use `package.json` config
- (o) `bin/xhi dev_start, prod_start` HTTPS : Use LetsEncrypt to use HTTPS by default
- (o) `bin/xhi dev_start, prod_start` HTTP/2: Configure for HTTP/2 if feasible
- (o) `bin/xhi deploy` implement: Add configuration and capability
- (o) `bin/xhi publish` : Push to NPM
---

## End
@@ -21,7 +21,7 @@
<link rel="stylesheet" href="css/vendor/font-awesome-4.7.0.css">

<!-- scripts -->
<script src="js/app-ex02/ex02.08-app.js"></script>
<script src="js/app-ex02/ex02.08_app.js"></script>
</head>
<body></body>
</html>
@@ -11,11 +11,11 @@
regexp : true, sloppy : true, vars : false,
white : true, todo : true, unparam : true
*/
/*global $, xhi:true, ex01 */
$(function () {
/*global xhiJQ, xhi:true, ex01 */
xhiJQ(function () {
'use strict';
var app_map = xhi._makeAppFn_( 'ex01' );
ex01._07_shell_._initModuleFn_( $('body') );
ex01._07_shell_._initModuleFn_( xhiJQ('body') );
ex01._06_lb_._showLbFn_({
_title_html_ : 'Example 01',
_content_html_ :
@@ -1,11 +1,11 @@
/**
* ex01.js
* ex01_app.js
* @author Michael S. Mikowski - mike.mikowski@gmail.com
*
* Example 01 application using xhi instances instead of modules.
*
*/
/*global $, xhi:true, ex01 */
/*global xhiJQ, xhi:true, ex01 */
(function () {
'use strict';
var
@@ -42,7 +42,7 @@

function main () {
var app_map = xhi._makeAppFn_( 'ex01' );
ex01._07_shell_._initModuleFn_( $('body') );
ex01._07_shell_._initModuleFn_( xhiJQ('body') );
ex01._06_lb_._showLbFn_({
_title_html_ : 'Example 01',
_content_html_ :
@@ -54,8 +54,8 @@
}

function testLoad() {
if ( window.$ ) {
$ = window.$;
if ( window.xhiJQ ) {
$ = window.xhiJQ;
$( main );
}
else {
@@ -11,11 +11,11 @@
regexp : true, sloppy : true, vars : false,
white : true, todo : true, unparam : true
*/
/*global $, xhi:true, ex02 */
$(function () {
/*global xhiJQ, xhi:true, ex02 */
xhiJQ(function () {
'use strict';
var app_map = xhi._makeAppFn_( 'ex02' );
ex02._07_shell_._initModuleFn_( $('body') );
ex02._07_shell_._initModuleFn_( xhiJQ('body') );
ex02._06_lb_._showLbFn_({
_title_html_ : 'Example 02',
_content_html_ :
@@ -1,11 +1,11 @@
/*
* ex02.js
* ex02_app.js
* @author Michael S. Mikowski - mike.mikowski@gmail.com
*
* Example 02 application using xhi instances instead of modules.
*
*/
/*global $, xhi:true, ex02 */
/*global xhiJQ, xhi:true, ex02 */
(function () {
'use strict';
var
@@ -34,15 +34,15 @@
'js/xhi/07_shell.js',
'js/xhi/08_app.js'
],
libCount = libList.length,
loadCount = 0,
libCount = libList.length,
loadCount = 0,
loadDelayMs = 100,

$, scriptObj, libIdx, libSrcStr;

function main () {
var app_map = xhi._makeAppFn_( 'ex02' );
ex02._07_shell_._initModuleFn_( $('body') );
ex02._07_shell_._initModuleFn_( xhiJQ('body') );
ex02._06_lb_._showLbFn_({
_title_html_ : 'Example 02',
_content_html_ :
@@ -54,8 +54,8 @@
}

function testLoad() {
if ( window.$ ) {
$ = window.$;
if ( window.xhiJQ ) {
$ = window.xhiJQ;
$( main );
}
else {
@@ -1,4 +1,4 @@
/*global $, xhi, tb02 */
/*global xhi, tb02 */
// == BEGIN MODULE tb02 ===============================================
// Create root namespace map 'tb02'
xhi._00_root_._makeInstanceFn_( 'tb02' );
@@ -1,4 +1,4 @@
/*global $, xhi, tb02 */
/*global xhi, tb02 */
// == BEGIN MODULE tb02._01_util_ =====================================
// Create tb02._01_util_
xhi._01_util_._makeInstanceFn_( tb02 );
@@ -4,7 +4,7 @@
*
* Typebomb 2 data component.
*/
/*global $, tb02*/
/*global tb02*/

// == BEGIN MODULE tb02._02_data_ =====================================
tb02._02_data_ = (function () {
@@ -4,9 +4,9 @@
*
* Typebomb 2 model component.
*/
/*global $, tb02*/
/*global xhiJQ, tb02*/
// == BEGIN MODULE tb02._03_model_ =====================================
tb02._03_model_ = (function () {
tb02._03_model_ = (function ( $ ) {
// == BEGIN MODULE SCOPE VARIABLES ===================================
'use strict';
var
@@ -853,5 +853,5 @@ tb02._03_model_ = (function () {
_reportKeyPress_ : reportKeyPressFn
};
// == . END PUBLIC METHODS ===========================================
}());
}( xhiJQ ));
// == . END MODULE tb02._03_model_ =====================================
@@ -1,4 +1,4 @@
/*global $, xhi, tb02 */
/*global xhi, tb02 */
// == BEGIN MODULE tb02._04_utilb_ =====================================
// Create tb02._04_utilb_
xhi._04_utilb_._makeInstanceFn_( tb02 );
@@ -1,4 +1,4 @@
/*global $, xhi, tb02 */
/*global xhi, tb02 */
// == BEGIN MODULE tb02._05_css_base_ ==================================
// Create tb02._05_css_base_
xhi._05_css_base_._makeInstanceFn_( tb02 );
@@ -1,4 +1,4 @@
/*global $, xhi, tb02 */
/*global xhi, tb02 */
// == BEGIN MODULE tb02._05_css_lb_ ====================================
// Create tb02._05_css_lb_
xhi._05_css_lb_._makeInstanceFn_( tb02 );
@@ -1,4 +1,4 @@
/*global $, xhiCSS, tb02*/
/*global xhiCSS, tb02*/
// == BEGIN MODULE tb02._06_css_ =======================================
tb02._06_css_ = (function () {
// == BEGIN MODULE SCOPE VARIABLES ===================================
@@ -1,4 +1,4 @@
/*global $, xhi, tb02 */
/*global xhi, tb02 */
// == BEGIN MODULE tb02._06_lb_ ========================================
// Create tb02._06_lb_
xhi._06_lb_._makeInstanceFn_( tb02 );
@@ -1,6 +1,6 @@
/*global $, tb02, Audio*/
/*global xhiJQ, tb02, Audio*/
// == BEGIN MODULE tb02._07_shell_ ====================================
tb02._07_shell_ = (function () {
tb02._07_shell_ = (function ( $ ) {
// == BEGIN MODULE SCOPE VARIABLES ==================================
'use strict';
var
@@ -464,5 +464,5 @@ tb02._07_shell_ = (function () {
// . END public method /initModuleFn/
return { _initModuleFn_ : initModuleFn };
// == . END PUBLIC METHODS ==========================================
}());
}( xhiJQ ));
// == . END MODULE tb02._07_shell_ ====================================
@@ -5,8 +5,8 @@
*
* Michael S. Mikowski - mike.mikowski@gmail.com
*/
/*global $, tb02 */
$(function () {
/*global xhiJQ, tb02 */
xhiJQ(function () {
'use strict';
tb02._07_shell_._initModuleFn_();
});
@@ -6,7 +6,7 @@
* Version 02 replaces the _css_ module with PowerCSS
*
*/
/*global tb02, $*/
/*global tb02*/
// == BEGIN MODULE tb02 ================================================
(function () {
// == BEGIN MODULE SCOPE VARIABLES ===================================
@@ -58,8 +58,8 @@
}

function testLoadFn() {
if ( window.$ ) {
$ = window.$;
if ( window.xhiJQ ) {
$ = window.xhiJQ;
$( startAppFn );
}
else {
@@ -263,7 +263,7 @@ xhi._05_css_shell_ = (function () {
{ _selector_str_ : __p('.{_p_}-_shell_cont_'),
_rule_map_ : {
_margin_ : '_auto_',
_padding_ : [[ '_5rem_', '_scp_rem_04_', '_3rem_', '_5d5rem_' ]],
_padding_ : [[ '_5rem_', '_spc_rem_04_', '_3rem_', '_5d5rem_' ]],
_max_width_ : [ '100rem' ],
_transition_ : '_trans_short_'
}
@@ -281,15 +281,15 @@ xhi._05_css_shell_ = (function () {
_rule_map_ : {
_display_ : '_inline_block_',
_float_ : '_left_',
_line_height_ : '_scp_rem_04_',
_line_height_ : '_spc_rem_04_',
_font_size_ : '_1d25rem_',
_color_ : '_link_fade_hex_'
}
},
{ _selector_str_ : __p('.{_p_}-_shell_cont_head_bread_ li:nth-child(even)'),
_rule_map_ : {
_margin_top_ : '_d125rem_',
_width_ : '_scp_rem_04_',
_width_ : '_spc_rem_04_',
_font_family_ : '_font_family_awesome_',
_text_align_ : '_center_'
}
@@ -328,12 +328,12 @@ xhi._05_css_shell_ = (function () {
{ _begin_cond_str_ : '@media all and (max-width: 812px)' },
{ _selector_str_ : __p('.{_p_}-_shell_cont_'),
_rule_map_ : {
_padding_ : [[ '_5rem_', '_3rem_', '_5rem_', '_scp_rem_04_' ]]
_padding_ : [[ '_5rem_', '_3rem_', '_5rem_', '_spc_rem_04_' ]]
}
},
{ _selector_str_ : __p('.{_p_}-_shell_base_'),
_rule_map_ : {
_padding_ : [[ '_0_', '_3rem_', '_0_', '_scp_rem_04_' ]]
_padding_ : [[ '_0_', '_3rem_', '_0_', '_spc_rem_04_' ]]
}
},
{ _selector_str_ : __p('.{_p_}-_shell_nav_'),
@@ -36,7 +36,7 @@
-
-
-
+if ( !noGlobal ) { window.jQuery = window.$ = jQuery; }
+if ( !noGlobal ) { window.jQuery = jQuery; }

return jQuery;
-} );

0 comments on commit 1785e17

Please sign in to comment.
You can’t perform that action at this time.