app.json 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. {
  2. "name": "make",
  3. "namespace": "make",
  4. "version": "1.0.0.0",
  5. "framework": "ext",
  6. "toolkit": "classic",
  7. "theme": "theme-default",
  8. /**
  9. * The list of required packages (with optional versions; default is "latest").
  10. *
  11. * For example,
  12. *
  13. * "requires": [
  14. * "charts"
  15. * ]
  16. */
  17. "requires": [
  18. "exporter",
  19. "font-awesome",
  20. "ux",
  21. "modern-locale",
  22. "font-saas",
  23. "app-common"
  24. ],
  25. "locale": "zh_CN",
  26. /**
  27. * The relative path to the application's markup file (html, jsp, asp, etc.).
  28. */
  29. "indexHtmlPath": "index.html",
  30. /**
  31. * Comma-separated string with the paths of directories or files to search. Any classes
  32. * declared in these locations will be available in your class "requires" or in calls
  33. * to "Ext.require". The "app.dir" variable below is expanded to the path where the
  34. * application resides (the same folder in which this file is located).
  35. */
  36. "classpath": [
  37. "app"
  38. ],
  39. /**
  40. * Comma-separated string with the paths of directories or files to search. Any classes
  41. * declared in these locations will be automatically required and included in the build.
  42. * If any file defines an Ext JS override (using Ext.define with an "override" property),
  43. * that override will in fact only be included in the build if the target class specified
  44. * in the "override" property is also included.
  45. */
  46. "overrides": [
  47. "overrides"
  48. ],
  49. /**
  50. * Fashion build configuration properties.
  51. */
  52. "fashion": {
  53. "missingParameters": "error",
  54. "inliner": {
  55. /**
  56. * Disable resource inliner. Production builds enable this by default.
  57. */
  58. "enable": false
  59. }
  60. },
  61. /**
  62. * Sass configuration properties.
  63. */
  64. "sass": {
  65. /**
  66. * The root namespace to use when mapping *.scss files to classes in the
  67. * sass/src and sass/var directories. For example, "make.view.Foo" would
  68. * map to "sass/src/view/Foo.scss". If we changed this to "make.view" then
  69. * it would map to "sass/src/Foo.scss". To style classes outside the app's
  70. * root namespace, change this to "". Doing so would change the mapping of
  71. * "make.view.Foo" to "sass/src/make/view/Foo.scss".
  72. */
  73. "namespace": "make",
  74. /**
  75. * Generated sass source settings
  76. *
  77. * "generated": {
  78. * // The file used to save sass variables edited via Sencha Inspector and Sencha Themer.
  79. * // This file will automatically be applied to the end of the scss build.
  80. * "var": "sass/save.scss",
  81. *
  82. * // The directory used to save generated sass sources.
  83. * // This directory will automatically be applied to the end of the scss build.
  84. * "src": "sass/save"
  85. * }
  86. *
  87. */
  88. "generated": {
  89. "var": "sass/save.scss",
  90. "src": "sass/save"
  91. },
  92. /**
  93. * Comma-separated list of files or folders containing extra Sass. These
  94. * files are automatically included in the Sass compilation. By default this
  95. * is just "etc/all.scss" to allow import directives to control the order
  96. * other files are included.
  97. *
  98. * All "etc" files are included at the top of the Sass compilation in their
  99. * dependency order:
  100. *
  101. * +-------+---------+
  102. * | | base |
  103. * | theme +---------+
  104. * | | derived |
  105. * +-------+---------+
  106. * | packages | (in package dependency order)
  107. * +-----------------+
  108. * | application |
  109. * +-----------------+
  110. */
  111. "etc": [
  112. "sass/etc/all.scss"
  113. ],
  114. /**
  115. * Comma-separated list of folders containing Sass variable definitions
  116. * files. These file can also define Sass mixins for use by components.
  117. *
  118. * All "var" files are included after "etc" files in the Sass compilation in
  119. * dependency order:
  120. *
  121. * +-------+---------+
  122. * | | base |
  123. * | theme +---------+
  124. * | | derived |
  125. * +-------+---------+
  126. * | packages | (in package dependency order)
  127. * +-----------------+
  128. * | application |
  129. * +-----------------+
  130. *
  131. * The "sass/var/all.scss" file is always included at the start of the var
  132. * block before any files associated with JavaScript classes.
  133. */
  134. "var": [
  135. "sass/var/all.scss",
  136. "sass/var"
  137. ],
  138. /**
  139. * Comma-separated list of folders containing Sass rule files.
  140. *
  141. * All "src" files are included after "var" files in the Sass compilation in
  142. * dependency order (the same order as "etc"):
  143. *
  144. * +-------+---------+
  145. * | | base |
  146. * | theme +---------+
  147. * | | derived |
  148. * +-------+---------+
  149. * | packages | (in package dependency order)
  150. * +-----------------+
  151. * | application |
  152. * +-----------------+
  153. */
  154. "src": [
  155. "sass/src"
  156. ]
  157. },
  158. /**
  159. * List of all JavaScript assets in the right execution order.
  160. *
  161. * Each item is an object with the following format:
  162. *
  163. * {
  164. * // Path to file. If the file is local this must be a relative path from
  165. * // this app.json file.
  166. * //
  167. * "path": "path/to/script.js", // REQUIRED
  168. *
  169. * // Set to true on one file to indicate that it should become the container
  170. * // for the concatenated classes.
  171. * //
  172. * "bundle": false, // OPTIONAL
  173. *
  174. * // Set to true to include this file in the concatenated classes.
  175. * //
  176. * "includeInBundle": false, // OPTIONAL
  177. *
  178. * // Specify as true if this file is remote and should not be copied into the
  179. * // build folder. Defaults to false for a local file which will be copied.
  180. * //
  181. * "remote": false, // OPTIONAL
  182. *
  183. * // If not specified, this file will only be loaded once, and cached inside
  184. * // localStorage until this value is changed. You can specify:
  185. * //
  186. * // - "delta" to enable over-the-air delta update for this file
  187. * // - "full" means full update will be made when this file changes
  188. * //
  189. * "update": "", // OPTIONAL
  190. *
  191. * // A value of true indicates that is a development mode only dependency.
  192. * // These files will not be copied into the build directory or referenced
  193. * // in the generate app.json manifest for the micro loader.
  194. * //
  195. * "bootstrap": false // OPTIONAL
  196. * }
  197. *
  198. */
  199. "js": [
  200. {
  201. "path": "${framework.dir}/build/ext-all-rtl-debug.js"
  202. },
  203. {
  204. "path": "app.js",
  205. "bundle": true
  206. }
  207. ],
  208. /**
  209. * List of all CSS assets in the right inclusion order.
  210. *
  211. * Each item is an object with the following format:
  212. *
  213. * {
  214. * // Path to file. If the file is local this must be a relative path from
  215. * // this app.json file.
  216. * //
  217. * "path": "path/to/stylesheet.css", // REQUIRED
  218. *
  219. * // Specify as true if this file is remote and should not be copied into the
  220. * // build folder. Defaults to false for a local file which will be copied.
  221. * //
  222. * "remote": false, // OPTIONAL
  223. *
  224. * // If not specified, this file will only be loaded once, and cached inside
  225. * // localStorage until this value is changed. You can specify:
  226. * //
  227. * // - "delta" to enable over-the-air delta update for this file
  228. * // - "full" means full update will be made when this file changes
  229. * //
  230. * "update": "" // OPTIONAL
  231. * }
  232. */
  233. "css": [
  234. {
  235. // this entry uses an ant variable that is the calculated
  236. // value of the generated output css file for the app,
  237. // defined in .sencha/app/defaults.properties
  238. "path": "${build.out.css.path}",
  239. "bundle": true,
  240. "exclude": ["fashion"]
  241. }
  242. ],
  243. /**
  244. * This option is used to configure the dynamic loader. At present these options
  245. * are supported.
  246. *
  247. */
  248. "loader": {
  249. // This property controls how the loader manages caching for requests:
  250. //
  251. // - true: allows requests to receive cached responses
  252. // - false: disable cached responses by adding a random "cache buster"
  253. // - other: a string (such as the build.timestamp shown here) to allow
  254. // requests to be cached for this build.
  255. //
  256. "cache": false,
  257. // When "cache" is not true, this value is the request parameter used
  258. // to control caching.
  259. //
  260. "cacheParam": "_dc"
  261. },
  262. "builds": {
  263. "dev": {
  264. "server": {
  265. "mall": "https://test-mall.uuzcc.cn",
  266. "basePath": {
  267. "https": "https://saas-api-test.usoftchina.com:5443",
  268. "http": "http://127.0.0.1:9000"
  269. },
  270. "urlPattern": "^\/api\/",
  271. "sso": "https://test-sso.uuzcc.cn",
  272. "ssoLogout": "https://ssorest.uuzcc.cn/api/user/logout?appId=sp&targetUrl={RETURN_URL}",
  273. "feedbackurl":"https://om.uuzcc.cn/"
  274. },
  275. "client": {
  276. "portal": "https://saas-test.usoftchina.com:5443",
  277. "cloudCenter": "https://www.uuzcc.cn",
  278. "accountCenter": "https://account.uuzcc.cn",
  279. "trade-app": "http://localhost:1841/app-trade",
  280. "make-app": "http://localhost:1841/app-make"
  281. }
  282. },
  283. "test": {
  284. "server": {
  285. "mall": "https://test-mall.uuzcc.cn",
  286. "basePath": {
  287. "https": "https://saas-api-test.usoftchina.com:5443",
  288. "http": "http://10.1.81.61:9000"
  289. },
  290. "urlPattern": "^\/api\/",
  291. "sso": "https://test-sso.uuzcc.cn",
  292. "ssoLogout": "https://ssorest.uuzcc.cn/api/user/logout?appId=sp&targetUrl={RETURN_URL}",
  293. "feedbackurl":"https://om.uuzcc.cn/"
  294. },
  295. "client": {
  296. "portal": "https://saas-test.usoftchina.com:5443",
  297. "cloudCenter": "https://www.uuzcc.cn",
  298. "accountCenter": "https://account.uuzcc.cn",
  299. "trade-app": "https://saas-test.usoftchina.com:5443/trade",
  300. "make-app": "https://saas-test.usoftchina.com:5443/make"
  301. }
  302. },
  303. "tencent-dev": {
  304. "server": {
  305. "mall": "https://test-mall.uuzcc.cn",
  306. "basePath": "https://saas-d-api.usoftchina.com",
  307. "urlPattern": "^\/api\/",
  308. "sso": "https://test-sso.uuzcc.cn",
  309. "ssoLogout": "https://ssorest.uuzcc.cn/api/user/logout?appId=sp&targetUrl={RETURN_URL}",
  310. "feedbackurl":"https://om.uuzcc.cn/"
  311. },
  312. "client": {
  313. "portal": "https://saas-d.usoftchina.com",
  314. "cloudCenter": "https://www.uuzcc.cn",
  315. "accountCenter": "https://account.uuzcc.cn",
  316. "trade-app": "https://saas-d.usoftchina.com/trade",
  317. "make-app": "https://saas-d.usoftchina.com/make"
  318. }
  319. },
  320. "tencent-test": {
  321. "server": {
  322. "mall": "https://test-mall.uuzcc.cn",
  323. "basePath": "https://saas-api.uuzcc.cn",
  324. "urlPattern": "^\/api\/",
  325. "sso": "https://test-sso.uuzcc.cn",
  326. "ssoLogout": "https://ssorest.uuzcc.cn/api/user/logout?appId=sp&targetUrl={RETURN_URL}",
  327. "feedbackurl":"https://om.uuzcc.cn/"
  328. },
  329. "client": {
  330. "portal": "https://saas.uuzcc.cn",
  331. "cloudCenter": "https://www.uuzcc.cn",
  332. "accountCenter": "https://account.uuzcc.cn",
  333. "trade-app": "https://saas.uuzcc.cn/trade",
  334. "make-app": "https://saas.uuzcc.cn/make"
  335. }
  336. },
  337. "prod": {
  338. "server": {
  339. "mall": "https://mall2.usoftchina.com/",
  340. "basePath": "https://saas-api.usoftchina.com",
  341. "urlPattern": "^\/api\/",
  342. "sso": "https://sso.ubtob.com",
  343. "ssoLogout": "https://ssorest.usoftchina.com/api/user/logout?appId=sp&targetUrl={RETURN_URL}",
  344. "feedbackurl":"https://om.usoftchina.com/"
  345. },
  346. "client": {
  347. "portal": "https://saas.usoftchina.com",
  348. "cloudCenter": "https://www.usoftchina.com",
  349. "accountCenter": "https://sso2.usoftchina.com",
  350. "trade-app": "https://saas.usoftchina.com/trade",
  351. "make-app": "https://saas.usoftchina.com/make"
  352. }
  353. }
  354. },
  355. /**
  356. * Settings specific to production builds.
  357. */
  358. "production": {
  359. "output": {
  360. "appCache": {
  361. "enable": true,
  362. "path": "cache.appcache"
  363. }
  364. },
  365. "loader": {
  366. "cache": "${build.timestamp}"
  367. },
  368. "cache": {
  369. "enable": true
  370. },
  371. "compressor": {
  372. "type": "yui"
  373. }
  374. },
  375. /**
  376. * Settings specific to testing builds.
  377. */
  378. "testing": {
  379. },
  380. /**
  381. * Settings specific to development builds.
  382. */
  383. "development": {
  384. "watch": {
  385. "delay": 250
  386. }
  387. },
  388. /**
  389. * Controls the output structure of development-mode (bootstrap) artifacts. May
  390. * be specified by a string:
  391. *
  392. * "bootstrap": "${app.dir}"
  393. *
  394. * This will adjust the base path for all bootstrap objects, or expanded into object
  395. * form:
  396. *
  397. * "bootstrap": {
  398. * "base": "${app.dir}",
  399. * "manifest": "bootstrap.json",
  400. * "microloader": "bootstrap.js",
  401. * "css": "bootstrap.css"
  402. * }
  403. *
  404. * You can optionally exclude entries from the manifest. For example, to exclude
  405. * the "loadOrder" (to help development load approximate a build) you can add:
  406. *
  407. * "bootstrap": {
  408. * "manifest": {
  409. * "path": "bootstrap.json",
  410. * "exclude": "loadOrder"
  411. * }
  412. * }
  413. *
  414. */
  415. "bootstrap": {
  416. "base": "${app.dir}",
  417. "microloader": "bootstrap.js",
  418. "css": "bootstrap.css"
  419. },
  420. /**
  421. * Controls the output directory for build resources. May be set with
  422. * either a string:
  423. *
  424. * "${workspace.build.dir}/${build.environment}/${app.name}"
  425. *
  426. * or an object containing values for various types of build artifacts:
  427. *
  428. * {
  429. * "base": "${workspace.build.dir}/${build.environment}/${app.name}",
  430. * "page": {
  431. * "path": "../index.html",
  432. * "enable": false
  433. * },
  434. * "css": "${app.output.resources}/${app.name}-all.css",
  435. * "js": {
  436. * "path": "app.js",
  437. * // This setting constrols the output language level. Set to 'ES6' to
  438. * // disable the transpiler
  439. * "version": "ES5"
  440. * },
  441. * "microloader": {
  442. * "path": "microloader.js",
  443. * "embed": true,
  444. * "enable": true
  445. * },
  446. * "manifest": {
  447. * "path": "app.json",
  448. * "embed": false,
  449. * "enable": "${app.output.microloader.enable}"
  450. * },
  451. * "resources": "resources",
  452. * "slicer": {
  453. * "path": "${app.output.resources}/images",
  454. * "enable": false
  455. * },
  456. * // Setting the "enable" property of this object to a Truthy value will cause a Application Cache
  457. * // manifest file to be generated based on this files appCache object. This file will then be injected
  458. * // into the index.html file of the built application
  459. * "appCache":{
  460. * "enable": false"
  461. * }
  462. * }
  463. *
  464. */
  465. "output": {
  466. "base": "${workspace.build.dir}/${build.environment}/${app.name}",
  467. "appCache": {
  468. "enable": false
  469. }
  470. },
  471. /**
  472. * Controls for localStorage caching
  473. * "cache": {
  474. * // This property controls whether localStorage caching of this manifest file is on or off.
  475. * // if disabled no deltas will be generated during a build and full updates will be disabled
  476. * "enable": false,
  477. *
  478. * // This property allows for global toggle of deltas.
  479. * // If set to a string the value will be used as the path to where deltas will be generated relative to you build.
  480. * // If set to a Truthy Value the default path ok "deltas" will be used
  481. * // If set to a Falsey value or if this property is not present deltas will be disabled and not generated.
  482. *
  483. * "deltas": "deltas"
  484. * }
  485. */
  486. "cache": {
  487. "enable": false,
  488. "deltas": true
  489. },
  490. /**
  491. * Used to automatically generate cache.manifest (HTML 5 application cache manifest)
  492. * file when you build.
  493. */
  494. "appCache": {
  495. /**
  496. * List of items in the CACHE MANIFEST section
  497. */
  498. "cache": [
  499. "index.html"
  500. ],
  501. /**
  502. * List of items in the NETWORK section
  503. */
  504. "network": [
  505. "*"
  506. ],
  507. /**
  508. * List of items in the FALLBACK section
  509. */
  510. "fallback": []
  511. },
  512. /**
  513. * Extra resources to be copied into the resource folder as specified in the "resources"
  514. * property of the "output" object. Folders specified in this list will be deeply copied.
  515. */
  516. "resources": [
  517. {
  518. "path": "resources",
  519. "output": "shared"
  520. },
  521. {
  522. "path": "${workspace.dir}/resources",
  523. "output": "shared"
  524. }
  525. ],
  526. /**
  527. * Directory path to store all previous production builds. Note that the content
  528. * generated inside this directory must be kept intact for proper generation of
  529. * deltas between updates.
  530. */
  531. "archivePath": "archive",
  532. /**
  533. * Additional resources used during theme slicing operations
  534. */
  535. "slicer": {
  536. "js": [
  537. {
  538. "path": "sass/example/custom.js",
  539. "isWidgetManifest": true
  540. }
  541. ],
  542. "output": {
  543. "appCache": {
  544. "enable": false
  545. }
  546. },
  547. "cache": {
  548. "enable": false
  549. }
  550. },
  551. /**
  552. * Build Profiles. This object's properties are each a "build profile". You can
  553. * add as many as you need to produce optimized builds for devices, themes, locales
  554. * or other criteria. Your "Ext.beforeLoad" hook (see index.html) is responsible for
  555. * selecting the desired build profile by setting "Ext.manifest" to one of these
  556. * names.
  557. *
  558. */
  559. /**
  560. * File / directory name patttern to ignore when copying to the builds. Must be a
  561. * valid regular expression.
  562. */
  563. "ignore": [
  564. "(^|/)CVS(/?$|/.*?$)"
  565. ],
  566. /**
  567. * Uniquely generated id for this application, used as prefix for localStorage keys.
  568. * Normally you should never change this value.
  569. */
  570. "id": "bd11d686-8d1c-4d7d-a701-b18cd1826439"
  571. }