Giter VIP home page Giter VIP logo

dev-scripts's Introduction

aqovia

Static web site using Node, Nunjucks and LESS.

DO NOT EDIT OR ADD FILES OUTSIDE THE SOURCE FOLDER (_src) AS THEY WILL BE DELETED DURING THE (MANUAL) BUILDING PROCESS*

*Except for the following files (.gitignore, CNAME, README.md, package.json, sitemap.xml)

The site is a static site using the template engine Nunjucks. The site is built via a custom script (render-html.js) and it is using LESS to preprocess CSS.

On your local machine, after pulling a branch:

  • run “npm install” to install dependencies
  • run “npm run build” to clean and build the site
  • run “npm run serve” to run a testing site that will refresh with every changes (or so)

HTML content is in the folder _src/html New pages should be added to _src/html/pages New templates should be added to _src/html/templates

If you need to add new images, place them inside _src/img

If you need to add new presentation files, such as PDF, add them to _src/resources

If you need to add new scripts, place them to _src/js

If you need to add new LESS partials, add them to _scr/less

dev-scripts's People

Contributors

giampalab avatar jeanmarclaiaqovia avatar ma499 avatar seda-zor avatar soniadunkley avatar

Watchers

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

dev-scripts's Issues

The ReplaceServiceBusConnectionString script is ignoring the connectionStrings tag inside config files

I think we need to add the following foreach to the code:

foreach($add in $xmlFile.configuration.connectionStrings.add) {
    if ($add.name -eq 'ServiceBus'){
        $add.connectionString = $connectionString
        $xmlFile.Save($configFile)  
        
        write-host "File Changed (ServiceBus in connectionStrings tag): " $configFile            
    }
}

and also, it's good to have a message in the output like above, which shows what value it is changing.

ConvertFrom-Json : Invalid object passed in, ':' or '}' expected. (1): {

There is an error executing ReplaceServiceBusConnectionString.ps1:

CategoryInfo : NotSpecified: (:) [ConvertFrom-Json], ArgumentException + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ConvertFromJsonCommand

The solution is adding "-Raw" to the Get-Content cmdlet (here).

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.