mirror of
https://github.com/filiprojek/nork.git
synced 2025-02-20 01:22:58 +01:00
express-ts skeleton
This commit is contained in:
15
framework/install
Normal file
15
framework/install
Normal file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/node
|
||||
|
||||
const fs = require('fs')
|
||||
const { exec } = require("child_process");
|
||||
|
||||
/**
|
||||
* This will only works if the project folder is in the parent folder
|
||||
* This is not global fs solution!
|
||||
*/
|
||||
console.log(__dirname);
|
||||
fs.copyFile('./framework/src/artisan', './artisan', (err) => {
|
||||
err ? console.log(err) : ''
|
||||
})
|
||||
|
||||
console.log("\x1b[32m%s\x1b[0m", "Framework installed successfully!");
|
Reference in New Issue
Block a user