mirror of
https://github.com/filiprojek/nork.git
synced 2024-11-02 18:12:28 +01:00
19 lines
409 B
JavaScript
Executable File
19 lines
409 B
JavaScript
Executable File
#!/usr/bin/node
|
|
import fs from 'fs'
|
|
import path from 'path'
|
|
|
|
/**
|
|
* This will only works if the project folder is in the parent folder
|
|
* This is not global fs solution!
|
|
*/
|
|
|
|
fs.copyFile('./framework/artisan.js', './artisan.js', err => {
|
|
if (err) {
|
|
console.log(err)
|
|
console.log(path.resolve(path.dirname('')))
|
|
}
|
|
if (!err) {
|
|
console.log('\x1b[32m%s\x1b[0m', 'Framework installed successfully!')
|
|
}
|
|
})
|