This repository has been archived by the owner on Jul 16, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Unicorn list, unicorn sync, add nuget
- Loading branch information
Romain Lenzotti
committed
Jul 20, 2018
1 parent
f6516fa
commit c2fc1c6
Showing
17 changed files
with
2,955 additions
and
2,772 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env node | ||
const path = require('path'); | ||
const nuget = require('../src/nuget'); | ||
|
||
const scriptName = path.basename(__filename); | ||
|
||
const options = process.argv.reduce((obj, value) => { | ||
if (path.basename(value) === scriptName) { | ||
obj.script = true; | ||
return obj; | ||
} | ||
|
||
if (obj.script) { | ||
if (obj.command) { | ||
obj.args.push(value.replace(/^--/, '-')); | ||
} else { | ||
obj.command = value; | ||
} | ||
} | ||
|
||
return obj; | ||
}, { command: null, args: [] }); | ||
|
||
nuget.exec(options.command, ...options.args); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env node | ||
const config = require('@node-sitecore/config'); | ||
const nugetRestore = require('../src/nuget-restore'); | ||
const nuget = require('../src/nuget'); | ||
|
||
nugetRestore(config.solutionPath); | ||
nuget.exec('restore', config.solutionPath); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.