app.json 16 KB

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