Skip to content

Commit d87f2d5

Browse files
committed
dev-bl/template-select: Fix bad nc.js template literals.
1 parent a1ec862 commit d87f2d5

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

build/nc.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,19 @@ if (dataset === undefined || dataset === '') {
3131
./nc.js --dataset=projectname
3232
3333
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+
`
3536
);
3637
shell.exit();
3738
}
3839

3940
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;`
4647
let js = shell.ShellString(script).to('app/assets/netcreate-config.js');
4748

4849
shell.echo(` 2. Starting dev server...

0 commit comments

Comments
 (0)