Git Product home page Git Product logo

vuewordpress-cli's People

Contributors

lukaszjedrasik avatar fifciu avatar

Watchers

James Cloos avatar

vuewordpress-cli's Issues

Survey / Init

Survey asks for:
a) URL address

  1. It should has http/https and dot
    b) Base language
  2. It has to be 2 chars long
    c) Should module fetch menus?
  3. Yes, all
  4. Yes, but only certain
    I. Ask for them
  5. No

Return answers.
I encourage to call it surveys/init.js

Test / Init

Write tests for:

  • Survey/Init

    • Does it check is URL proper?
    • Does it check is Lang proper?
    • Does it ask for slugs after choose "Yes, only certain"?
    • Does it split slugs properly?
  • IO / Init

    • [ ] [ ] Does it insert proper config for main.js (check with all possible menus answer)?
    • [ ] [ ] Does it insert proper config for nuxt.config.js (check with all possible menus answer)?

As main.js === main.ts in this example, there is no need to test both (for now).

Survey / PWA

It should ask:

  • After how many milliseconds make a fallback to offline storage (default value is 5000)

Information are here

IO / Change

It changes setting's value in the config file (main/nuxt.config.js)

Test / Change

Tests:

  • Does it change URL?
  • Does it change Lang?
  • Does it change MenuFetchMode?
  • What does happen with MenuSlugs when MenuFetchMode is changed to diffrent value?
  • Does it change MenuSlugs?

IO / Init

Based on provided answers from #1 it should open file (main.js/main.ts/nuxt.config.js) and inject proper code.

There you can see example config

Commands / Init

After creating subprograms that make a survey and changes in a file. Prepare command that will use them: #1 #2

Test / PWA

Prepare tests for injecting PWA config into:

  • vue.config.js
  • package.json
  • nuxt.config.js
  • make sure fallback time changes if it is diffrent than default

Commands / Change

change <setting> <value>
It should change the current setting in a config file to the new value.

settings to support:

  • url
  • lang
  • menu FetchMode
    • values: each, certain, none
  • menuSlugs (if menuFetchMode === only certain menus)

value is a string

IO / PWA

After prepare #5, you should write code for inserting config into:

  • vue.config.js
  • package.json (there it can also be)
  • nuxt.config.js

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.