Code Monkey home page Code Monkey logo

dna-web's People

Contributors

angelsix avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dna-web's Issues

dna.config file overrides previous settings even if not specified

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

Add generation report

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 `new config` command

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

DNAWeb not updating web page after changes are made and saved in .scss

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.

Dna web live server not functioning properly

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?

Auto-add dhtml extension to VS Code

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

Detect folder rename

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

Static folder doesn't always copy all files if root destination folder does not yet exist

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

Add notifications on success/error

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

[Live server] Css code not updating.

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

`new template` doesn't then re-scan dna.config files

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

Add custom commands in configuration

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.

Add auto-updater

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

Allow . in Live Data filenames

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

Allow Source folders flagged as asset folders

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

Make portable version

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:

  1. Copy the installed folder/contents of DnaWeb to a USB stick or other desired location
  2. Edit the dna.config file and add "portable": "True" or similar
  3. When running the DnaWeb.exe it will then prompt for for your project folder
  4. Type the folder path or drag and drop it onto the window and press enter to then start DnaWeb on that folder

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.