angelsix / dna-web Goto Github PK
View Code? Open in Web Editor NEWThe only tool needed for full stack, live web development
License: MIT License
The only tool needed for full stack, live web development
License: MIT License
dnaweb /a /c
VS Code opens even when its just doing a process and close
Create a dna.config file in the folder you run dnaweb from, for example a blank configuration:
{
}
And it overrides all previous settings including the dna.config default file, with the null/default(T) types for each setting instead of just ignore those it does not specify
After running a process file generation loop (from GenerateOnStart or from a file change causing a recursive loop of file updates), we should output a summary so if there was an error on the first file out of 100 being processed, it doesn't get overlooked.
Similar to an MSbuild report... "5 Succeeded, 1 Failed, 0 Warnings"
Add a command
new config
That would create dna.config configuration file with all default settings in so someone can see the structure/options available
Hi,
I am experiencing a similar issue as one of your viewers of a YouTube tutorial, Web Development: 06 Responsive Design, where changes in style.scss is not updating the webpage. It updates the webpage if I restart WEBDna. Here is the scenario: I am running Microsoft Edge on Windows 10 and DNAWeb version 1.0.7.0. When I make some changes to the .scss file, Sass engine in DNAWeb detects changes in .sccs and generates .css file. DNAWeb then refreshes the web page, but I don't see the changes on the web page after refresh. When I view the web page under Developer Tool ->DOM Explorer and Style tabs, the selector for the element shows attribute values (in .css) from when I restarted DNAWeb. One other thing I notice is when I open the updated .css file, the last attribute for any selector does not end with a semicolon, ';'. I don't think this is the problem, however. Any info is appreciated and thank you for all these excellent tutorials on YouTube.
I'm presently having an issue with dna web live server. If i make changes in the code editor, the browser will keep refreshing the page as in a loop continuously without updating the new changes that was made. What could be the matter?
Provide a way to retrieve the compile date time and also to format it, such as
file.dnacs
Fails to find file.dhtml as the default engine extension is .dnacs in a C# file.
Support fallback to a list of file extensions in DnaEnvironment to check for
Ok startup, detect if VS Code is installed and prompt user to add html style file association to VS Code. If yes then add the "file.associations" area to the VS Code settings file
If a parent folder renames, the underlying files are not re-processed. They should be as it affects the output folder, especially for static folders
Give a dna.config file similar to:
{
"outputPath": "../WebRoot",
"staticFolders":
[
{ "source": "Assets", "destination": "../WebRoot/Assets" },
{ "source": "Assets", "destination": "../ServerRoot/wwwroot/Assets" }
]
}
If ../WebRoot
does not exist, on the first run of dnaweb, only some of the files copy (say 14 of 44 files). Running another generate
command, or creating the WebRoot
folder initially before running dnaweb solves the problem
When on windows machine, add the option to mimize to system tray instead of being in the taskbar all the time
After processing files, we should add OS specific toast style notifications, starting with Windows.
So on complete whether success or failure have a toast style popup indication so the user can see the result without swapping to the output of the console
The issue is that when I edit a sass file and hit ctrl+s it updates the output css file but there is no change in browser. It seems like the live server doesn't notice that a css file has been updated. Html code doesn't quite work either. Website doesn't refresh after saving the html file, but after refreshing it manually in browser the changes are visible.
Short video about the issue: https://www.youtube.com/watch?v=kRPr96K7_0c&feature=youtu.be
We should permanently monitor for dna.config file creation/changes so any alterations don't require restarting DnaWeb.
A good example is:
new template fabric.blank
Creates a new Fabric template, but then doesn't spin up the Live Server
Sometimes you want to run a command like a batch file, shell script or open a program in your development lifecycle.
It would be nice to be able to add these in the dna.config file like
"commands": [ { "update-server": "../Scripts/update-server.cmd" } ]
Then in DnaWeb if you type run update-server
it effectively executes the .cmd file.
Should detect if on a windows machine and if new installer is out.
Make it basic for now, add a json file that returns the latest windows version and URL to download the msi, on open check and if it is newer, prompt to download.
If they say yes, and download is successful, run a process.start on the msi, close the current version, then on startup check the temp download folder for any msi's clean them up and re-check
Right now .'s are not allowed, as we use the . to detect if a prefix is given, if not we append the prefix.
This should be fixed to be allowed, and to simply check if the first text before a . is the name of an existing prefix, if it is it is presumed to be a prefix, otherwise we still presume it's missing and prepend the default
Some items like Fonts, Images and static files want to end up in the WebRoot folder
However, auto-generated content needs to go in there too. This causes issues and confusion with auto-compiled (volatile) and source (permanent) files, and a messy git-ignore for source control too.
Add an option in dna.config to add a list of "asset" folders that get ignored for processing by any engines, and just straight copied as-is to the WebRoot folder, in the specified relative output folder.
For example:
{
"assets": [
{
"source": "Assets",
"destination": "../WebRoot/Assets"
]
}
Where the paths are relative to the current dna.config file location
Have an option in dna.config file set as "portable" or similar. When DnaWeb is run in that instance it then asks for the folder to monitor on startup, to make it easy to run from a USB stick instead.
Process would go:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.