zmp-cli 3.9.0 → 3.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/index.js CHANGED
File without changes
package/build/index.js CHANGED
File without changes
package/config/index.js CHANGED
File without changes
package/create/index.js CHANGED
File without changes
@@ -2,7 +2,8 @@ const generateNpmScripts = require('./generate-npm-scripts');
2
2
  const { generateTailWindScripts } = require('./generate-npm-scripts');
3
3
 
4
4
  module.exports = function generatePackageJson(options) {
5
- const { name, framework, cssPreProcessor, includeTailwind, stateManagement } = options;
5
+ const { name, framework, cssPreProcessor, includeTailwind, stateManagement } =
6
+ options;
6
7
 
7
8
  // Dependencies
8
9
  const dependencies = ['zmp-framework', 'zmp-sdk', 'swiper'];
@@ -29,7 +30,11 @@ module.exports = function generatePackageJson(options) {
29
30
  if (framework === 'react-typescript') {
30
31
  dependencies.push(...dependenciesReactTs);
31
32
  }
32
- const devDependencies = ['cross-env', 'postcss-preset-env@6.7.0', 'vite'];
33
+ const devDependencies = [
34
+ 'cross-env',
35
+ 'postcss-preset-env@6.7.0',
36
+ 'vite@2.6.14',
37
+ ];
33
38
  // CSS PreProcessor
34
39
  if (cssPreProcessor === 'stylus') devDependencies.push(...['stylus']);
35
40
  else if (cssPreProcessor === 'less') devDependencies.push(...['less']);
package/deploy/index.js CHANGED
File without changes
package/login/index.js CHANGED
File without changes
package/migrate/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmp-cli",
3
- "version": "3.9.0",
3
+ "version": "3.9.1",
4
4
  "description": "ZMP command line utility (CLI)",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -103,4 +103,4 @@
103
103
  "eslint-plugin-promise": "^4.2.1",
104
104
  "eslint-plugin-standard": "^5.0.0"
105
105
  }
106
- }
106
+ }
package/start/index.js CHANGED
File without changes
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- var indent = require('../utils/indent');
4
-
5
- var _require = require('../utils/colors'),
6
- colorThemeCSSProperties = _require.colorThemeCSSProperties;
7
-
8
- module.exports = function (options) {
9
- var template = options.template,
10
- theming = options.theming;
11
- var customColor = theming.customColor,
12
- color = theming.color,
13
- fillBars = theming.fillBars;
14
- var styles = '';
15
- var themeRgb = [0, 122, 255];
16
-
17
- if (customColor && color) {
18
- var customProps = colorThemeCSSProperties("".concat(color));
19
- themeRgb = customProps['--zmp-theme-color-rgb'].split(',').map(function (n) {
20
- return n.trim();
21
- });
22
- styles += indent(0, "\n /* Custom color theme properties */\n :root {\n ".concat(Object.keys(customProps).filter(function (prop) {
23
- return prop !== '--zmp-tabbar-fill-link-active-color' && prop !== '--zmp-tabbar-fill-link-active-border-color';
24
- }).map(function (prop) {
25
- return "".concat(prop, ": ").concat(customProps[prop], ";");
26
- }).join('\n '), "\n }\n :root.theme-dark,:root .theme-dark {\n ").concat(Object.keys(customProps).map(function (prop) {
27
- return "".concat(prop, ": ").concat(customProps[prop], ";");
28
- }).join('\n '), "\n }\n "));
29
- }
30
-
31
- if (fillBars) {
32
- styles += indent(0, "\n /* Invert navigation bars to fill style */\n ");
33
- }
34
-
35
- if (includeTailwind) {
36
- styles += indent(0, "\n @import \"./tailwind.css\";\n ");
37
- }
38
-
39
- if (template === 'split-view') {
40
- styles += indent(0, "\n /* Left Panel right border when it is visible by breakpoint */\n .panel-left.panel-in-breakpoint:before {\n position: absolute;\n right: 0;\n top: 0;\n height: 100%;\n width: 1px;\n background: rgba(0,0,0,0.1);\n content: '';\n z-index: 6000;\n }\n\n /* Hide navbar link which opens left panel when it is visible by breakpoint */\n .panel-left.panel-in-breakpoint ~ .view .navbar .panel-open[data-panel=\"left\"] {\n display: none;\n }\n\n /*\n Extra borders for main view and left panel for iOS theme when it behaves as panel (before breakpoint size)\n */\n .ios .panel-left:not(.panel-in-breakpoint).panel-in ~ .view-main:before,\n .ios .panel-left:not(.panel-in-breakpoint).panel-closing ~ .view-main:before {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 1px;\n background: rgba(0,0,0,0.1);\n content: '';\n z-index: 6000;\n }\n ");
41
- } else {
42
- styles += indent(0, "\n /* Your app custom styles here */\n ");
43
- }
44
-
45
- return styles.trim();
46
- };
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- var templateIf = require('../../utils/template-if');
4
-
5
- var indent = require('../../utils/indent');
6
-
7
- var stylesExtension = require('../../utils/styles-extension');
8
-
9
- module.exports = function (options) {
10
- var cssPreProcessor = options.cssPreProcessor,
11
- theming = options.theming,
12
- customBuild = options.customBuild,
13
- includeTailwind = options.includeTailwind;
14
- var scripts = '';
15
- scripts += indent(0, "\n // Import React and ReactDOM\n import React from 'react';\n import { createRoot } from 'react-dom/client';\n\n // Import ZMP\n import ZMP from '".concat(customBuild ? './zmp-custom.js' : 'zmp-framework/core/lite-bundle', "';\n\n // Import ZMP-React Plugin\n import ZMPReact from 'zmp-framework/react';").concat(includeTailwind ? "\n\n // Import tailwind styles\n import './css/tailwind.css';\n " : '', "\n\n // Import ZMP Styles\n ").concat(templateIf(customBuild, function () {
16
- return "\n import './css/zmp-custom.less';\n ";
17
- }, function () {
18
- return "\n import 'zmp-framework/".concat(theming.useUiKits ? 'zmp-bundle.min.css' : 'zmp.min.css', "';\n ");
19
- }), "\n\n // Import Icons and App Custom Styles\n ").concat(templateIf(theming.iconFonts, function () {
20
- return "\n import './css/icons.css';\n ";
21
- }), "\n import './css/app.").concat(stylesExtension(cssPreProcessor), "';\n\n // Import App Component\n import App from './components/app.jsx';\n import appConfig from '../app-config.json';\n\n if (!window.APP_CONFIG) {\n window.APP_CONFIG = appConfig;\n }\n\n // Init ZMP React Plugin\n ZMP.use(ZMPReact)\n\n // Mount React App\n const root = createRoot(document.getElementById('app'));\n root.render(React.createElement(App));\n "));
22
- return scripts.trim();
23
- };
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- var templateIf = require('../../utils/template-if');
4
-
5
- var indent = require('../../utils/indent');
6
-
7
- var stylesExtension = require('../../utils/styles-extension');
8
-
9
- module.exports = function (options) {
10
- var cssPreProcessor = options.cssPreProcessor,
11
- theming = options.theming,
12
- customBuild = options.customBuild,
13
- includeTailwind = options.includeTailwind;
14
- var scripts = '';
15
- scripts += indent(0, "\n // Import React and ReactDOM\n import React from 'react';\n import { createRoot } from 'react-dom/client';\n\n // Import ZMP\n import ZMP from '".concat(customBuild ? './zmp-custom.js' : 'zmp-framework/core/lite-bundle', "';\n\n // Import ZMP-React Plugin\n import ZMPReact from 'zmp-framework/react';").concat(includeTailwind ? "\n\n // Import tailwind styles\n import './css/tailwind.css';\n " : '', "\n\n // Import ZMP Styles\n ").concat(templateIf(customBuild, function () {
16
- return "\n import './css/zmp-custom.less';\n ";
17
- }, function () {
18
- return "\n import 'zmp-framework/".concat(theming.useUiKits ? 'zmp-bundle.min.css' : 'zmp.min.css', "';\n ");
19
- }), "\n\n // Import Icons and App Custom Styles\n ").concat(templateIf(theming.iconFonts, function () {
20
- return "\n import './css/icons.css';\n ";
21
- }), "\n import './css/app.").concat(stylesExtension(cssPreProcessor), "';\n\n // Import App Component\n import App from './components/app';\n import appConfig from '../app-config.json';\n\n if (!(window as any).APP_CONFIG) {\n (window as any).APP_CONFIG = appConfig\n }\n\n // Init ZMP React Plugin\n ZMP.use(ZMPReact)\n\n // Mount React App\n const root = createRoot(document.getElementById('app')!);\n root.render(React.createElement(App));\n "));
22
- return scripts.trim();
23
- };