Skip to content

Commit 597016b

Browse files
committed
move primer-css module into packages
1 parent f75d990 commit 597016b

File tree

6 files changed

+158
-0
lines changed

6 files changed

+158
-0
lines changed

packages/primer-css/.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: node_js
2+
node_js:
3+
- '7'

packages/primer-css/CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# HEAD
2+
3+
# 4.4.0
4+
5+
- Adding primer-marketing module to primer
6+
7+
# 4.3.0
8+
9+
- Using primer-core and primer-product modules
10+
11+
# 4.1.0
12+
13+
- Added: [primer-markdown](https://github.com/primer/markdown) to the build
14+
- Fixes: Pointing "style" package.json to `build/build.css` file.
15+
16+
# 4.0.2
17+
18+
- Added npm build scripts to add `build/build.css` to the npm package
19+
20+
# 4.0.1
21+
22+
- Fixed: missing primer-layout from build
23+
24+
# 4.0.0
25+
26+
- Whole new npm build system, pulling in the code from separate component repos

packages/primer-css/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 GitHub Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/primer-css/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Primer CSS
2+
3+
[![NPM version](http://img.shields.io/npm/v/primer-css.svg)](https://www.npmjs.org/package/primer-css)
4+
[![Build Status](https://travis-ci.org/primer/primer-css.svg?branch=master)](https://travis-ci.org/primer/primer-css)
5+
6+
> Primer is the CSS toolkit that powers GitHub's front-end design. It's purposefully limited to common components to provide our developers with the most flexibility, and to keep GitHub uniquely *GitHubby*. It's built with SCSS and available via NPM, so it's easy to include all or part of it within your own project.
7+
8+
This repository is a compilation of [several CSS modules](https://github.com/primer).
9+
10+
## Install
11+
12+
This repository is distributed with [npm][npm]. After [installing npm][install-npm], you can install `primer-css` with this command.
13+
14+
```
15+
$ npm install --save primer-css
16+
```
17+
18+
## Usage
19+
20+
The source files included are written in [Sass][sass] (`scss`) You can simply point your sass `include-path` at your `node_modules` directory and import it like this.
21+
22+
```scss
23+
@import "primer-css/index.scss";
24+
```
25+
26+
You can also import specific portions of the module by importing those partials from the `/lib/` folder. _Make sure you import any requirements along with the modules._
27+
28+
## Build
29+
30+
For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css` The built css file is also included in the npm package.
31+
32+
```
33+
$ npm run build
34+
```
35+
36+
## Documentation
37+
38+
You can read more about primer in the [docs][docs].
39+
40+
## License
41+
42+
[MIT](./LICENSE) © [GitHub](https://github.com/)
43+
44+
[primer]: https://github.com/primer/primer
45+
[docs]: http://primercss.io/
46+
[npm]: https://www.npmjs.com/
47+
[install-npm]: https://docs.npmjs.com/getting-started/installing-node
48+
[sass]: http://sass-lang.com/

packages/primer-css/index.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*!
2+
* Primer
3+
* http://primercss.io
4+
*
5+
* Released under MIT license. Copyright 2015 GitHub, Inc.
6+
*/
7+
8+
// Primer master file
9+
//
10+
// Imports all Primer files in their intended order for easy mass-inclusion.
11+
// Should you need specific files, you can easily use separate `@import`s.
12+
13+
// Global requirements
14+
@import "primer-core/index.scss";
15+
@import "primer-product/index.scss";
16+
@import "primer-marketing/index.scss";

packages/primer-css/package.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"version": "6.0.0",
3+
"name": "primer-css",
4+
"description": "Primer is the CSS toolkit that powers GitHub's front-end design. It's purposefully limited to common components to provide our developers with the most flexibility, and to keep GitHub uniquely *GitHubby*. It's built with SCSS, so it's easy to include all or part of it within your own project.",
5+
"homepage": "http://primercss.io/",
6+
"author": "GitHub, Inc.",
7+
"license": "MIT",
8+
"style": "build/build.css",
9+
"files": [
10+
"index.scss",
11+
"lib",
12+
"build"
13+
],
14+
"repository": {
15+
"type": "git",
16+
"url": "https://github.com/primer/primer-css.git"
17+
},
18+
"bugs": {
19+
"url": "https://github.com/primer/primer-css/issues"
20+
},
21+
"scripts": {
22+
"bootstrap": "lerna bootstrap",
23+
"publish": "lerna publish",
24+
"updated": "lerna updated",
25+
"build": "primer-module-build index.scss",
26+
"prepublish": "npm run build",
27+
"test": "npm run build"
28+
},
29+
"dependencies": {
30+
"primer-core": "^3.0.0",
31+
"primer-marketing": "^3.0.0",
32+
"primer-product": "^3.0.0"
33+
},
34+
"devDependencies": {
35+
"lerna": "^2.0.0-rc.2",
36+
"primer-module-build": "*"
37+
},
38+
"keywords": [
39+
"primer",
40+
"css",
41+
"github",
42+
"primercss"
43+
]
44+
}

0 commit comments

Comments
 (0)