3.2.8 • Published 7 years ago

@antistatique/retraitespopulaires-styleguide v3.2.8

Weekly downloads
224
License
-
Repository
github
Last release
7 years ago

RP - Retraites Populaires - Styleguide

Retraites Populaires Styleguide.

Content

User documentation

Install CSS/JS dependencies with npm & yarn

  $ npm init
  $ npm login
  $ yarn install --save @antistatique/retraitespopulaires-styleguide

Link assets to your project

  • Use any task runner (gulp/grunt/...) to move node_modules/@antistatique/retraitespopulaires-styleguide/build/ to your asset folder

HTML template (quick and dirty, see complete styleguide here)

<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie10 lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]>         <html class="no-js lt-ie10"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<meta name="viewport" content="width=device-width">

<link rel="stylesheet" href="/build/css/vendors.min.css">
<link rel="stylesheet" href="/build/css/main.css">

</head>
<body>

<!-- bottom scripts -->
<script src="//code.jquery.com/jquery-2.2.4.min.js" crossorigin="anonymous"></script>
<script src="/build/js/vendors.min.js"></script>

<!-- Include this script if you want to use the organic lines -->
<script src="/build/js/MorphSVGPlugin.min.js"></script>

<script src="/build/js/bundle.js"></script>
</body>
</html>

Contributor documentation

Prerequisites

First of all, you need to have the following tools installed globally on your environment:

  • node (version 8)
  • npm (version 5.6)
  • gulp
  • yarn

Install

$ npm install
$ npm run build

The git repository of Retraites Populaires is:

 $ git remote add rp ssh://git@webbucket:7999/sp/styleguide.git

You will need some global dependencies such as:

  • metalsmith
$ npm install -g metalsmith

Development

First you have to launch Gulp to watch your files

$ npm start

To then access the styleguide, go to http://localhost:3000/retraitespopulaires-styleguide/ (/retraitespopulaires-styleguide/ is added here because the styleguide is published on npm)

Regression Testing

To test all components against what they should look like, we use Gemini, a utility for visual regression testing.

Installation

You have to install some modules globally

$ yarn add global gemini gemini-babel gemini-gui selenium-standalone
# then install selenium-standalone
$ selenium-standalone install

Generate references

Once a component has been updated and validated, you can regenerate the reference screenshot by running this in your project root:

# first start selenium-standalone
$ selenium-standalone start
# then update gemini tests ONLY for one component!
$ gemini update --grep [name-of-component]

If this is a new component, you have to add it to the gemini-config.json file first, or create a custom test suite in the /gemini directory.

We will be implementing interaction testing and responsive soon. The branch feature/regression-testing is used as a point of reference for the first draft. You must cherry-pick any changes you make elsewhere in the gemini config before updating the screenshots.

Gemini GUI

Gemini provides a useful UI that you can run in your project root with:

$ gemini-gui gemini

You can then run tests and approve them on the fly.

Deploy

The deployment of branch dev and master is managed yourself and publish on NPM!

First time

# You need to create a new realease using git flow
$ git flow release start 0.0.1
# Make some last minutes changes and prepare your realease and edit CHANGELOG.md file!
$ git flow release finish -p 0.0.1
# Publish on NPM your last release
$ npm publish

Deploy on gh-pages

$ gulp --ghpages && gulp deploy
3.2.8

7 years ago

3.2.7

7 years ago

3.2.6

8 years ago

3.2.5

8 years ago

3.2.4

8 years ago

3.2.3

8 years ago

3.2.2

8 years ago

3.2.1

8 years ago

3.2.0

8 years ago

3.1.10

8 years ago

3.1.9

8 years ago

3.1.8

8 years ago

3.1.7

8 years ago

3.1.6

9 years ago

3.1.5

9 years ago

3.1.4

9 years ago

3.1.2

9 years ago

3.1.1

9 years ago

3.1.0

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.2.2

9 years ago

2.2.1

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.8.4

9 years ago

1.8.3

9 years ago

1.8.2

9 years ago

1.8.0

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.3

10 years ago

0.1.21

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.7

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.31

10 years ago

0.0.3

10 years ago

0.0.27

10 years ago

0.0.26

10 years ago

0.0.25

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago