app.json 18 KB

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