-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert to monorepo using lerna.js #153
Changes from all commits
24af618
5f54133
e95d3d1
8de9897
861274f
cc17d16
97a9f53
7bee843
de66604
df571c8
e2997f8
68ed0eb
8013152
3324128
c58c828
45199c2
87a3076
d1f4d6f
d672777
cd8bbc3
0f8ed3a
4f8e481
4372032
e84884f
4da589f
4e76c46
beba1ad
ef090e7
4bddfbe
12001d7
760a30a
2fcc44a
adb9355
20d7613
602ee07
4ea1900
8c96431
105b1f7
3dce3d6
2691f31
633f85b
10922a5
d038640
035f05b
e6f66d9
3bbfa53
faacc7d
c6844f2
0f177d8
5416e31
640af9c
65c1c21
9f1edba
9dc46ba
bb89be0
520c34c
ae4e8f0
5496e51
d277f2e
2f7f228
7ed024b
5ec9cc1
2db6eb0
667711c
4b5c786
e9fa437
8c342d3
f1cb8f7
5bd5f1e
bb81f8a
fd79bac
100b2cb
17e6912
ea243ca
d56abd6
3e8b914
d2b6051
0f5064e
925602e
29a8562
ce88a02
b757cab
aac8d9d
e13a964
2bab338
6f70e40
556909d
73b94e8
61d635d
ac589ba
9fee70d
339053f
0b0ca7d
b295c69
23af21d
0b378b8
b04abc5
e25b7b4
ce91188
835a41a
42fae0a
cadbead
4152ae6
73ada31
0ce4981
bf820ac
5f7cd7f
4710d02
38c7b1e
1ad59e2
65a13f0
76bacdb
5624a35
48221cf
fb1f152
d5ea9d3
be98715
44ce2ed
fe210cf
53780ee
0d62fc0
20886a3
a3e21bf
b31cb99
6fbb28c
cbfb997
ef8a629
2c9aa50
2616935
5893a15
8d996d6
71dce5e
c74847c
226dd3c
b3ffe58
c2d482f
f426e28
edbafb3
9b74e44
4414b99
a6db751
418d637
a3b92df
b97ef92
b0c22e4
82ee690
55dc077
9107921
7b68846
a4b3e3d
942d14f
dfdfb78
3f796bb
60871b9
8774ca7
d9c0ba1
7747ad9
a57debd
99056df
5339f51
5d4f8be
ada1d6d
9463b8e
54bf925
91cd992
61262a1
45981cd
ed6db56
a49e9f0
2992abb
0c0b6cc
4966413
f054da4
54018f1
0c11263
7e1f409
2005e51
1079017
fe09f61
3c7cd9f
50aebf8
bd18fa1
d20adb7
1083f07
671a9b4
369dad4
939ca2c
89196f5
ac0a65b
952a50e
c7762da
e1f8eb7
ca6494e
2a864a9
77df51a
e098585
a3bb033
9b6b8a4
785a237
db48709
0cb7f0e
56178c0
c0b98ac
5e467e1
c882f1e
6aa7396
140e1c2
9d59d86
e49811f
3a75172
2d33d43
e6cb210
f7f01ad
6fa41a9
6da7ab7
384ccef
f02bdfd
955d34c
fc14f92
831893c
3417b84
03ecf69
23197cb
2a0d689
30e6fd1
c48fbeb
5685a04
c01a158
575011f
c958cdf
328b95b
6ac0b6f
b9a246b
619a73f
4cc7315
c4ed67f
43f8bf3
c797b2e
6bebbd7
7b71bac
afa4279
fbde917
afda66d
73a946d
a11ffe8
767a412
a798a81
a7470d9
ec4525b
67e1469
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
bower_components | ||
build | ||
components | ||
node_modules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"npmClient": "yarn", | ||
"version": "independent" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,8 @@ | ||
{ | ||
"name": "suitcss", | ||
"version": "3.0.0", | ||
"description": "CSS base styles, utilities, and structural components for web apps", | ||
"style": "index.css", | ||
"files": [ | ||
"index.css" | ||
], | ||
"dependencies": { | ||
"suitcss-base": "^3.0.0", | ||
"suitcss-components": "^2.0.0", | ||
"suitcss-utils": "^3.0.0" | ||
}, | ||
"name": "suit", | ||
"private": true, | ||
"devDependencies": { | ||
"suitcss-preprocessor": "^4.0.0" | ||
}, | ||
"scripts": { | ||
"build": "npm run setup && npm run preprocess", | ||
"preprocess": "suitcss index.css build/build.css", | ||
"setup": "npm install" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/suitcss/suit.git" | ||
"lerna": "^3.4.3" | ||
}, | ||
"keywords": [ | ||
"browser", | ||
"css-components", | ||
"css-utilities", | ||
"suitcss", | ||
"style" | ||
] | ||
"license": "MIT" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bower_components | ||
build | ||
components | ||
node_modules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
language: node_js | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that with the monorepo now we need a centralized There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, but I would track that in a separate issue. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep makes sense, thanks! |
||
sudo: false | ||
node_js: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should normalize this field too. I'd pick node 8 and 10, 6 is going out the LTS maintenance in April. |
||
- "stable" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
### HEAD | ||
|
||
### 5.0.0 (October 8th, 2018) | ||
|
||
* Update normalize.css to `^8.0.0`. | ||
* Remove `tabindex=-1` ruleset. | ||
|
||
### 4.0.0 (September 25th, 2017) | ||
|
||
* Update normalize.css to `^7.0.0`. | ||
|
||
### 3.0.0 (April 28th, 2017) | ||
|
||
* Update normalize.css to `^6.0.0`. | ||
* Add reset rules removed from normalize.css. | ||
|
||
### 2.0.0 (April 11, 2016) | ||
|
||
* Update normalize.css to `^4.0.0`. | ||
* Update stylelint-config-suitcss to `^5.0.0`. | ||
|
||
### 1.0.2 (February 28, 2016) | ||
|
||
* Update preprocessor to `^1.0.1`. | ||
* Fix `max-line-length` error with stylelint. | ||
|
||
### 1.0.1 (October 31, 2015) | ||
|
||
* Revert removal of `component.json`. | ||
|
||
### 1.0.0 (October 25, 2015) | ||
|
||
* Use `box-sizing: border-box;` as a default. | ||
* Remove `bower.json` and `component.json`. | ||
|
||
### 0.8.0 (October 28, 2014) | ||
|
||
* Add support for JS bundling. | ||
* Remove typography and link color configuration. | ||
|
||
### 0.7.0 (June 26, 2014) | ||
|
||
* Change variable names. | ||
* Add `.css` extension to imports for interoperability. | ||
|
||
### 0.6.0 (June 21, 2014) | ||
|
||
* Support npm-based workflow. | ||
* Add preprocessor build tools. | ||
* Work around a Firefox/IE bug that removes `button` focus styles. | ||
|
||
### 0.5.0 (May 20, 2014) | ||
|
||
* Update to use latest variable syntax. | ||
* Reset default 'button' styles. | ||
|
||
### 0.4.0 (March 27, 2014) | ||
|
||
* Add npm support. | ||
* Add SUIT-style Component(1) build pipeline. | ||
* Depend on normalize.css 3.0.x. | ||
* Introduce base theme variables for `html` and `a`. | ||
* Remove default `figure` margin. | ||
|
||
### 0.3.0 (November 20, 2013) | ||
|
||
* Add `!important` to the `tabindex=-1` styles. | ||
* Update Bower ignores. | ||
* Add 'suit-test' as a development dependency. | ||
* Use Component(1) for development. | ||
* Add CSS linting and configuration. | ||
|
||
### 0.2.0 (August 25, 2013) | ||
|
||
* Remove focus outline from elements removed from the keyboard tab flow. | ||
* Remove default border from iframes. | ||
|
||
### 0.1.0 (June 1, 2013) | ||
|
||
* Initial release. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# SUIT CSS base | ||
|
||
[![Build Status](https://travis-ci.org/suitcss/base.svg?branch=master)](https://travis-ci.org/suitcss/base) | ||
|
||
Base styles for web applications. Provides a thin layer on top of | ||
[Normalize.css](https://github.com/necolas/normalize.css). | ||
|
||
Read more about how to use [SUIT CSS](https://github.com/suitcss/suit/). | ||
|
||
## Installation | ||
|
||
* [npm](http://npmjs.org/): `npm install suitcss-base` | ||
* [Component(1)](http://github.com/component/component): `component install suitcss/base` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will this keep working? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not even working right now. :)
having said that. for as long as we keep the original repo and archive it, . component installation should still work. |
||
* [Download](https://github.com/suitcss/base/releases) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably we should remove these download links There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed. |
||
|
||
## Testing | ||
|
||
Install [Node](http://nodejs.org) (comes with npm). | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
To generate a build: | ||
|
||
``` | ||
npm run build | ||
``` | ||
|
||
To lint code with [postcss-bem-linter](https://github.com/postcss/postcss-bem-linter) and [stylelint](http://stylelint.io/) | ||
|
||
``` | ||
npm run lint | ||
``` | ||
|
||
To generate the testing build. | ||
|
||
``` | ||
npm run build-test | ||
``` | ||
|
||
Basic visual tests are in `test/index.html`. | ||
|
||
## Browser support | ||
|
||
* Google Chrome | ||
* Firefox | ||
* Safari | ||
* Opera | ||
* Internet Explorer 9+ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "suitcss-base", | ||
"repo": "suitcss/base", | ||
"version": "3.0.0", | ||
"styles": ["lib/base.css"], | ||
"dependencies": { | ||
"necolas/normalize.css": "6.0.0" | ||
}, | ||
"author": "Nicolas Gallagher", | ||
"license": "MIT" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import "normalize.css"; | ||
@import "./lib/base.css"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require('normalize.css/normalize.css'); | ||
require('./lib/base.css'); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/** | ||
* A thin layer on top of normalize.css that provides a starting point more | ||
* suitable for web applications. | ||
*/ | ||
|
||
/** | ||
* 1. Prevent padding and border from affecting element width | ||
* https://goo.gl/pYtbK7. | ||
* 2. Change the default font family in all browsers (opinionated). | ||
*/ | ||
|
||
html { | ||
box-sizing: border-box; /* 1 */ | ||
font-family: sans-serif; /* 2 */ | ||
} | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: inherit; | ||
} | ||
|
||
/** | ||
* Removes the default spacing and border for appropriate elements. | ||
*/ | ||
|
||
blockquote, | ||
dl, | ||
dd, | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6, | ||
figure, | ||
p, | ||
pre { | ||
margin: 0; | ||
} | ||
|
||
button { | ||
background: transparent; | ||
border: 0; | ||
padding: 0; | ||
} | ||
|
||
/** | ||
* Work around a Firefox/IE bug where the transparent `button` background | ||
* results in a loss of the default `button` focus styles. | ||
*/ | ||
|
||
button:focus { | ||
outline: 1px dotted; | ||
outline: 5px auto -webkit-focus-ring-color; | ||
} | ||
|
||
fieldset { | ||
border: 0; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
iframe { | ||
border: 0; | ||
} | ||
|
||
ol, | ||
ul { | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "suitcss-base", | ||
"version": "5.0.0", | ||
"description": "CSS base styles", | ||
"keywords": [ | ||
"base", | ||
"browser", | ||
"css", | ||
"normalize-css", | ||
"suitcss", | ||
"style" | ||
], | ||
"homepage": "https://github.com/suitcss/suit/tree/master/packages/base", | ||
"bugs": "https://github.com/suitcss/suit/labels/bug", | ||
"license": "MIT", | ||
"author": "Nicolas Gallagher", | ||
"files": [ | ||
"index.css", | ||
"index.js", | ||
"lib" | ||
], | ||
"style": "index.css", | ||
"repository": "https://github.com/suitcss/suit/tree/master/packages/base", | ||
"scripts": { | ||
"build": "npm run setup && npm run preprocess", | ||
"build-test": "npm run setup && npm run preprocess-test", | ||
"lint": "suitcss -e index.css build/lint.css && rm build/lint.css", | ||
"preprocess": "suitcss index.css build/build.css", | ||
"preprocess-test": "suitcss -i test test/test.css build/test.css", | ||
"setup": "npm install", | ||
"watch": "npm run preprocess-test -- -w -v", | ||
"test": "npm run lint" | ||
}, | ||
"dependencies": { | ||
"normalize.css": "^8.0.0" | ||
}, | ||
"devDependencies": { | ||
"suitcss-components-test": "*", | ||
"suitcss-preprocessor": "^4.0.0" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you didn't remove this from other packages. Should we do for all of them or for none?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lerna version
was (wrongfully?) complaining that some packages would be under gitignore, e.g.components-button
. It think it would be safe to remove it from all packages.component
itself is deprecated for more than 3 years now.