app.json 17 KB

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