app.json 17 KB

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