First Commit
This commit is contained in:
commit
feb864dc47
170 changed files with 4671 additions and 0 deletions
23
hackatonApp/hooks/before_platform_add/init_directories.js
Normal file
23
hackatonApp/hooks/before_platform_add/init_directories.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* On a fresh clone, the local platforms/ and plugins/ directories will be
|
||||
* missing, so ensure they get created before the first platform is added.
|
||||
*/
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
|
||||
var platformsDir = path.resolve(__dirname, '../../platforms');
|
||||
var pluginsDir = path.resolve(__dirname, '../../plugins');
|
||||
|
||||
try {
|
||||
fs.mkdirSync(platformsDir, function (err) {
|
||||
if (err) { console.error(err); }
|
||||
});
|
||||
} catch(ex) {}
|
||||
|
||||
try {
|
||||
fs.mkdirSync(pluginsDir, function (err) {
|
||||
if (err) { console.error(err); }
|
||||
});
|
||||
} catch(ex) {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue