private void newProjectToolStripMenuItem_Click(object sender, EventArgs e) { dlgNewProject np = new dlgNewProject(); DialogResult dr = np.ShowDialog(); Project p = Project.CreateNew(np.Name); this.currentProject = p; }
public static Project CreateNew(string name) { Project p = new Project(name); DirectoryInfo di = Directory.CreateDirectory(Hurricane.ProjectPath + System.IO.Path.DirectorySeparatorChar + name); di.CreateSubdirectory("JavaScript"); di.CreateSubdirectory("Templates"); di.CreateSubdirectory("Library"); di.CreateSubdirectory("Assets"); p.xml = new XDocument(); p.xml.Add(new XDeclaration("1.0", String.Empty, String.Empty)); p.xml.Add(new XElement("HurricaneProject"), new XElement("Directories", new XElement("Directory", new XAttribute("name", "JavaScript")), new XElement("Directory", new XAttribute("name", "Templates")), new XElement("Directory", new XAttribute("name", "Library")), new XElement("Directory", new XAttribute("name", "Assets")) ) ); p.path = di.FullName; p.name = name; p.Save(); return p; }
public static void BuildJavaScriptLibrary(Project project) { }
public static void Run(Project project) { // This loads a 'compiled' project into memory and opens its comm ports accepting signalr data connections. }
public static void Publish(Project project) { // Deploy html project to IIS. I guess eventually, other server environments. }