UNPKG

448 BJavaScriptView Raw
1module.exports = function hasInitialSetup(ctx) {
2 if (!ctx.fs.exists(ctx.destinationPath('package.json'))) {
3 return false;
4 }
5
6 const json = ctx.fs.readJSON(ctx.destinationPath('package.json'));
7
8 if (!json || !json.dependencies || !json.scripts) {
9 return false;
10 }
11
12 if (
13 !json.dependencies['@mediamonks/richmedia-temple-server'] ||
14 !json.scripts.dev ||
15 !json.scripts.build
16 ) {
17 return false;
18 }
19
20 return true;
21};