-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpaths.js
47 lines (32 loc) · 1.11 KB
/
paths.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
const fs = require('fs');
/** Parses package.json */
const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8'));
/** Src dir */
const sourcesRoot = 'src/' + pkg.name + '/';
/** "Main" static dir */
const staticRoot = sourcesRoot + 'static/';
/**
* Application path configuration for use in frontend scripts
*/
module.exports = {
// Parsed package.json
package: pkg,
// Path to the scss entry point
scssEntry: sourcesRoot + 'scss/screen.scss',
// Path to the scss (sources) directory
scssSrcDir: sourcesRoot + 'scss/',
// Path to the js entry point (source)
jsEntry: sourcesRoot + 'js/index.js',
// Path to js (sources)
jsSrc: sourcesRoot + 'js/**/*.js',
// Path to the js (sources) directory
jsSrcDir: sourcesRoot + 'js/',
// Path to the (transpiled) js directory
jsDir: staticRoot + 'bundles/',
// Path to js spec (test) files
jsSpec: sourcesRoot + 'jstests/**/*.spec.js',
// Path to js spec (test) entry file
jsSpecEntry: sourcesRoot + 'jstests/index.js',
// Path to js code coverage directory
coverageDir: 'reports/jstests/',
};