- Build electron using it's own babel config (using
env)
{
"electron-main": {
"presets": [
["es2015"],
"react"
],
"plugins": [| using Project.Logic; | |
| namespace Project.Controllers | |
| { | |
| public class ExampleController : Controller | |
| { | |
| public JsonResult GetUser(Guid userId) | |
| { | |
| UserModel user = Logic.User.Get(userId); | |
| return Json(user, JsonRequestBehavior.AllowGet); |
| using Project.Logic; | |
| namespace Project.Controllers | |
| { | |
| public class ExampleController : Controller | |
| { | |
| private readonly User _userLogic = new User(); | |
| public JsonResult GetUser(Guid userId) | |
| { | |
| UserModel user = _userLogic.Get(userId); |
| using Project.Logic; | |
| namespace Project.Controllers | |
| { | |
| public class ExampleController : Controller | |
| { | |
| private readonly User _userLogic = User.New(); | |
| // public JsonResult GetUser(Guid userId) ... | |
| } | |
| } |
| namespace Project.Controllers | |
| { | |
| public class ExampleController : ModuleController | |
| { | |
| public JsonResult GetUser(Guid userId) | |
| { | |
| UserModel user = Modules.UserLogic.Get(userId); | |
| return Json(user, JsonRequestBehavior.AllowGet); | |
| } | |
| } |
| using Project.Data; // enternal dependency | |
| namespace Project.Logic | |
| { | |
| public class User | |
| { | |
| // .. | |
| public List<UserModel> GetAll() { | |
| IEnumerable<User> users = _entities.Users; |
| // Requires references to: | |
| // - System.ValueTuple | |
| // - Microsoft.VisualStudio.QualityTools.UnitTestFramework | |
| public class Person | |
| { | |
| public string Name { get; set; } | |
| public string City { get; set; } | |
| public void Deconstruct(out string name, out string city) | |
| { |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Debug Jest", | |
| "type": "node", | |
| "request": "launch", | |
| "program": "${workspaceRoot}/node_modules/jest-cli/bin/jest.js", | |
| "stopOnEntry": false, | |
| "args": ["--runInBand"], |
| export default class SampleClass { | |
| getSomething() { | |
| return 'something'; | |
| } | |
| } |
| git branch -m old_branch new_branch # perform the rename | |
| git push origin :old_branch # delete remote branch | |
| git push --set-upstream origin new_branch # push to remote, setting the remote branch |