Skip to content

Commit 4f5019d

Browse files
author
Johnny Hausman
committed
+add make sure stealJS is installed
1 parent 520f762 commit 4f5019d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/generators/install.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,20 @@ Resource.installLibraries = function(done) {
620620
listInstall.push({ command:'curl', options:[ '-o', path.join('assets', 'canjs.zip'), 'https://codeload.github.com/bitovi/canjs/zip/master'], textFilter:textFilters, log:'<yellow><bold>install:</bold></yellow> curl CanJS', retry:3 });
621621
listInstall.push({ command:'unzip', options:[ path.join('assets', 'canjs.zip')], textFilter:textFilters, log:'<yellow><bold>install:</bold></yellow> unzip CanJS', retry:3 });
622622
listInstall.push({ command:'mv', options:[ 'canjs-master', path.join('assets', 'can')], textFilter:textFilters, log:'<yellow><bold>install:</bold></yellow> mv: CanJS', retry:3 });
623+
624+
625+
console.log('... well im here!');
626+
627+
// install StealJS : our client side apps :
628+
// curl -o assets/javascriptmvc.zip http://www.javascriptmvc.com/dist/javascriptmvc-3.3.zip
629+
// unzip assets/canjs.zip
630+
// mv canjs-master assets/can
631+
listInstall.push({ command:'curl', options:[ '-o', path.join('assets', 'javascriptmvc.zip'), 'http://www.javascriptmvc.com/dist/javascriptmvc-3.3.zip'], textFilter:textFilters, log:'<yellow><bold>install:</bold></yellow> curl StealJS', retry:3 });
632+
listInstall.push({ command:'unzip', options:[ path.join('assets', 'javascriptmvc.zip')], textFilter:textFilters, log:'<yellow><bold>install:</bold></yellow> unzip StealJS', retry:3 });
633+
listInstall.push({ command:'mv', options:[ path.join('assets', 'javascriptmvc', 'steal'), path.join('assets', 'steal')], textFilter:textFilters, log:'<yellow><bold>install:</bold></yellow> mv: StealJS', retry:3 });
634+
listInstall.push({ command:'mv', options:[ path.join('assets', 'javascriptmvc', 'js'), path.join('assets', 'cjs')], textFilter:textFilters, log:'<yellow><bold>install:</bold></yellow> mv: StealJS:cjs', retry:3 });
635+
listInstall.push({ command:'rm', options:[ '-R', path.join('assets', 'javascriptmvc')], textFilter:textFilters, log:'<yellow><bold>install:</bold></yellow> rm: javascriptmvc', retry:3 });
636+
623637
}
624638

625639

0 commit comments

Comments
 (0)