GithubHelp home page GithubHelp logo

viktortat / vue-telekom-seed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from t-systems-rus/vue-telekom-seed

0.0 2.0 0.0 1.29 MB

Seed Vue application with vue-telekom built in

License: MIT License

JavaScript 18.33% HTML 3.76% Vue 67.41% TypeScript 8.52% CSS 0.91% Gherkin 1.07%

vue-telekom-seed's Introduction

vue-telekom-seed

This is a seed front-end application to use in most of our Vue.js projects.

Getting Started

To get the initial code please clone this repo.

Please note before building that this seed actually uses our T-Systems vue-telekom project internally. Which is a collection of custom components and Telekom design styling.

And since vue-telekom is a submodule you will have to run this after cloning the project:

git submodule init
git submodule update

This should get latest submodule version. If you wish to update the submodule and the link please run

git submodule update --remote

How to

# Install dependencies first
yarn

# Serve with hot reload at localhost:8080 (if port is busy will be other - see console)
yarn serve

# Build for production with minification
yarn build

# Run unit tests
yarn test:unit

# Run e2e tests
yarn test:e2e

# Perform TSLint code check
yarn lint

Via UI

You can also run these tasks via nice UI app if you have vue-cli installed globally.

# Install vue cli globally
yarn global add @vue/cli

# Run UI
vue ui

After this import you project via UI and look at tasks.

For more information on how to use Vue CLI please look at the documentation.

WebStorm / Intellij IDEA configuration

Enable TSlint plugin, Vue plugin and TypeScript integration. All of these should work by default.

Unit testing via Jest

  1. Click Run in the main toolbar
  2. Edit Configurations
  3. On the top left of the Run/Debug Configurations dialog, click the + sign.
  4. Choose Jest
  5. Name the new configuration "Jest"
  6. Under "Configuration file" select jest.conf.js from root
  7. Specify Jest package - node_modules/jest
  8. Click Apply

You can now both run Unit tests and debug them inside the IDE.

e2e testing via Nightwatch

Note that this is different from running via console yarn test:e2e which also starts the http server and checks if port is in use.

Prerequisite : running application locally e.g. yarn serve or somewhere else.

  1. Click Run in the main toolbar
  2. Edit Configurations
  3. On the top left of the Run/Debug Configurations dialog, click the + sign.
  4. Choose Node.js
  5. Name the new configuration "Nightwatch"
  6. Under "JavaScript file" enter node_modules\nightwatch\bin\runner.js
  7. Under "Application parameters" enter --config nightwatch.config.js --env chrome
  8. Add environment variable VUE_DEV_SERVER_URL with value which is the location of your application, in case of local yarn serve the value will be http://localhost:8080/
  9. Click Apply

You can now both run e2e tests and debug them inside the IDE.

vue-telekom-seed's People

Contributors

igogrek avatar mzymta avatar

Watchers

James Cloos avatar viktortat avatar

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.