GithubHelp home page GithubHelp logo

js-clock's Introduction

ToC

js-clock

A colorful clock with JS

A brief description of your project, what it is used for. Also add a version badge if possible

Installing / Getting started

To install all project dependencies simply run

npm i

Developing

Built With

This project includes quite a few opinionated settings which where made according to our own guidelines. Therefore this template includes:

  • Webpack as module bundler, dev server and build tool
  • Babel for ES6 and Flow transpilation
  • Flow as type-checker
  • Standard as JS linter
  • StyleLint as scss/css linter
  • CSS-Autoprefixing via postcss
  • Jest as testing framework
  • SVG-Sprite for automatic sprite/scss generation
  • normalize.css as CSS-reset

Development commands

Dev-Server

To start the development server run:

npm start

This will built the svg-sprite files and start an instance of webpack-dev-server. From then on the whole project will rebuild, run your JS files through the Flow type-checker and lint you JS with standard and you scss/CSS with stylelint.

Type-Checker (Flow)

To separately type-check your JS-files, run:

npm run flow
Required module not found

To add third party library flow support use flow-typed.

If the library of your choice does not support flow, you can add a file named after the module into the flow-typed-directory. The file should have the following content in it:

// myModule.js
declare module 'myModule' {
  declare module.exports: any
}

If a local module is not resolve you can add an option to the .flowconfig like so:

[options]
module.system.node.resolve_dirname=src

Linters

To separately lint your JS-files, run:

npm run lint

or to autmatically fix issues if possible, run:

npm run lint:fix

To separately lint your stylesheets, run:

npm run stylelint

or to automatically fix issues if possible, run:

npm run stylelint:fix

Testing

Tests should usually live next to their base files and should be named like: <myBaseFile>.test.js.

To run Jest an check if your tests pass invoke:

npm run test

This will also generate a coverage folder, containing information about the projects test coverage.

To continuously run Jest and have Jest watch for changes, run:

npm run test:watch

Building

To build the project, run:

npm run build

This will build your svg-sprite files, compile, minify and bundle everything and put all packaged files into the dist/ directory (if there is no such directory it will just be newly created, an existing directory will be removed first). To allow our clients browsers to cache vendor files and only update the cache when it is really necessary, all important filenames include hashes for reference inside the built manifest file.

CI

This project already includes a default .gitlab-ci.yml. Just confiure the file to your needs.

Deploying / Publishing

give instructions on how to build and release a new version In case there's some step you have to take that publishes this project to a server, this is the right time to state it.

packagemanager deploy your-project -s server.com -u username -p password

And again you'd need to tell what the previous code actually does.

Versioning

We can maybe use SemVer for versioning. For the versions available, see the link to tags on this repository.

Configuration

Here you should write what are all of the configurations a user can enter when using the project.

Tests

Describe and show how to run the tests with code examples. Explain what these tests test and why.

Give an example

Style guide

Explain your code style and show how to check it.

Api Reference

If the api is external, link to api documentation. If not describe your api including authentication methods as well as explaining all the endpoints with their required parameters.

Database

Explaining what database (and version) has been used. Provide download links. Documents your database design and schemas, relations etc...

js-clock's People

Contributors

ehofmann95 avatar

Watchers

James Cloos 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.