File tree 1 file changed +8
-7
lines changed 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,19 @@ if (dataset === undefined || dataset === '') {
31
31
./nc.js --dataset=projectname
32
32
33
33
e.g. if you're trying to load "tacitus",
34
- the syntax is './nc.js --dataset=tacitus'`
34
+ the syntax is './nc.js --dataset=tacitus'\n
35
+ `
35
36
) ;
36
37
shell . exit ( ) ;
37
38
}
38
39
39
40
let script = `
40
- // this file generated by NC command\n
41
- const NC_CONFIG = {\n
42
- dataset: "' + dataset + '"\n
43
- };\n
44
- if (typeof process === "object") module.exports = NC_CONFIG;\n
45
- if (typeof window === "object") window.NC_CONFIG = NC_CONFIG;\n `
41
+ // this file generated by NC command
42
+ const NC_CONFIG = {
43
+ dataset: "${ dataset } "
44
+ };
45
+ if (typeof process === "object") module.exports = NC_CONFIG;
46
+ if (typeof window === "object") window.NC_CONFIG = NC_CONFIG;`
46
47
let js = shell . ShellString ( script ) . to ( 'app/assets/netcreate-config.js' ) ;
47
48
48
49
shell . echo ( ` 2. Starting dev server...
You can’t perform that action at this time.
0 commit comments