pyc-website
main website for pyc inc.
git clone https://9o.is/git/pyc-website.git
build.config.js
(2727B)
1 /**
2 * * This file/module contains all configuration for the build process.
3 * */
4 module.exports = {
5
6 dirs: {
7 src: "src/main/webapp",
8 vendor: "src/main/webapp/vendor",
9 target: "target/grunt",
10 dist: "<%= dirs.target %>/dist",
11 build: "<%= dirs.target %>/build",
12 resources: "<%= dirs.target %>/resources"
13 },
14
15 /**
16 * * This is a collection of file patterns that refer to our app code (the
17 * * stuff in `src/main/webapp/app`). These file paths are used in the configuration of
18 * * build tasks. `js` is all project angular javascript, less tests. `jsjq` is
19 * * jquery javascript. `tpl` contains our app's template HTML files, `less`
20 * * is our main stylesheet, and `jsspec` contains our app's tests.
21 * */
22 app_files: {
23 js: [
24 "<%= dirs.src %>/app/App.js",
25 "<%= dirs.src %>/app/**/*.js",
26 "!<%= dirs.src %>/app/**/*.spec.js"
27 ],
28 jsspec: ['<%= dirs.src %>/app/**/*.spec.js'],
29 less: '<%= dirs.src %>/less/styles.less'
30 },
31
32 /**
33 * * This is a collection of files used during testing only.
34 * */
35 test_files: {
36 js: []
37 },
38
39 /**
40 * * This is the same as `app_files`, except it contains patterns that
41 * * reference vendor code (`components/`) that we need to place into the build
42 * * process somewhere. While the `app_files` property ensures all
43 * * standardized files are collected for compilation, it is the user's job
44 * * to ensure non-standardized (i.e. vendor-related) files are handled
45 * * appropriately in `vendor_files.js`.
46 * *
47 * * The `vendor_files.js` property holds files to be automatically
48 * * concatenated and minified with our project source files.
49 * *
50 * * The `vendor_files.css` property holds any CSS files to be automatically
51 * * included in our app.
52 * *
53 * * The `vendor_files.assets` property holds any assets to be copied along
54 * * with our app's assets. This structure is flattened, so it is not
55 * * recommended that you use wildcards.
56 * */
57 vendor_files: {
58 js: [
59 "<%= dirs.vendor %>/modernizr.js",
60 "<%= dirs.vendor %>/angular.min.js",
61 "<%= dirs.vendor %>/ui-bootstrap-tpls.js",
62 //"<%= dirs.vendor %>/ui-router.js",
63 "<%= dirs.vendor %>/underscore.min.js",
64 "<%= dirs.vendor %>/angular-google-maps.min.js",
65 "<%= dirs.vendor %>/ui-mask.js",
66 "<%= dirs.vendor %>/liftAjax.js",
67 //"<%= dirs.vendor %>/videogular.js",
68 //"<%= dirs.vendor %>/videogular-controls.js",
69 "<%= dirs.vendor %>/angular-file-upload.js",
70 "<%= dirs.vendor %>/angular-google-analytics.js",
71 "<%= dirs.vendor %>/angular-wizard.js",
72 "<%= dirs.vendor %>/ngAnimate.js",
73 "<%= dirs.vendor %>/jquery.backgroundvideo.min.js"
74 ],
75 css: [
76 ],
77 assets: [
78 ]
79 },
80 };