https://github.com/getninjas/gaiden
GetNinjas Styleguide
https://github.com/getninjas/gaiden
bem-methodology css styleguide
Last synced: 11 months ago
JSON representation
GetNinjas Styleguide
- Host: GitHub
- URL: https://github.com/getninjas/gaiden
- Owner: getninjas
- License: mit
- Created: 2016-10-07T18:17:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T05:21:59.000Z (over 3 years ago)
- Last Synced: 2024-11-08T06:47:35.972Z (over 1 year ago)
- Topics: bem-methodology, css, styleguide
- Language: CSS
- Homepage: https://getninjas.github.io/gaiden
- Size: 6.2 MB
- Stars: 30
- Watchers: 14
- Forks: 4
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://www.codacy.com/app/eduardojmatos/gaiden?utm_source=github.com&utm_medium=referral&utm_content=getninjas/gaiden&utm_campaign=badger) [](https://badge.fury.io/js/gaiden)
GetNinjas Styleguide - https://getninjas.github.io/gaiden
# Quick Start
- Clone the repository: `git clone https://github.com/getninjas/gaiden.git`
- Install dependencies with: `npm install`
- Configure the build links with: `npm run config`
# Build Process
The `npm run build` command, generated files into the `dist` folder, separated `themes` file.
# Release process
We are using `npm version` to generate our releases. There are 3 kind of releases generally used: major, minor and patch. See the http://semver.org/ for more details.
The process is:
1. After merge PR on master:
```bash
git checkout master
git pull --tags origin master
```
2. Run `npm run version` command.
3. Run `npm version major|minor|patch -m "Message of your changes"` (important: you need to be an admin to push on master).
4. Now let's publish the package on npm:
1. If you not have access to Org GetNinjas in NPM, you need ask for users in Org to add you.
2. If nothing fails on `npm version` and you have the credentials of npm GetNinjas account, run `npm publish`.
5. Done! Now, you can install the package on any project!
# Deploy to gh-pages
1. Run `npm run deploy-storybook` to publish static site in gh-pages;
2. Access this link https://getninjas.github.io/gaiden/ and enjoy it!
# Commands
Here are a description of the scripts that we have in the project:
| **Script** | **Description** |
|------------------|-------------------------------------------------------------------------------------------------------------|
| storybook | Start storybook for development purposes |
| build-storybook | Build storybook for deploy. The output is in `docs` folder |
| deploy-storybook | Deploy storybook in github-pages |
| version | Build the project and add the dist folder to git stage |
| postversion | Script that runs after the version (due to naming conventions). Push the changes and the tags to the branch |
| build | Build the library |