Skip to content

Commit 9b7daa7

Browse files
Henrikof
authored andcommitted
Monorepo (#729)
* - Moved whole jss package into packages/jss - Initialized lerna - Added universal build scripts Signed-off-by: Henri Beck <henribeck.dev@gmail.com> * Fixed some issues with testing Signed-off-by: Henri Beck <henribeck.dev@gmail.com> * Fixed snapshot testing Signed-off-by: Henri Beck <henribeck.dev@gmail.com> * Added running lint and test scripts before publishing Signed-off-by: Henri Beck <henribeck.dev@gmail.com> * set lerna version to the latest jss version
1 parent 55af128 commit 9b7daa7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+4605
-2132
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
flow-typed/
2+
**/node_modules/**
3+
packages/**/lib/
4+
packages/**/dist/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ lib
77
dist
88
.env
99
coverage
10+
packages/**/lincense.md

.size-snapshot.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

changelog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
## 9.8.4 / 2018-06-12
1414

15-
* Add link to the egghead course
16-
* Upgrade prettier and format code (#726)
15+
- Add link to the egghead course
16+
- Upgrade prettier and format code (#726)
1717

1818
## 9.8.3 / 2018-06-10
1919

docs/abstractions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ JSS core library is a rendering engine. We aim to make it small, fast and unopin
44
It is often too low level for applications.
55
That's why there is a bunch of higher level libraries on top of it, which provide more opinionated sugar APIs and framework integrations.
66

7-
[See all projects](./projects.md)
7+
[See all projects](projects.md)

docs/benefits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
1. **Avoids slow selectors.**
1414

15-
Because JSS rules are collision free, there is no need to write deeply nested selectors. This leads to stable [performance](./performance.md) at scale.
15+
Because JSS rules are collision free, there is no need to write deeply nested selectors. This leads to stable [performance](performance.md) at scale.
1616

1717
1. **Code reuse, expressiveness.**
1818

@@ -81,7 +81,7 @@
8181

8282
1. **Performance.**
8383

84-
Inline styles are [slower](./performance.md) than class names.
84+
Inline styles are [slower](performance.md) than class names.
8585

8686
## Compared to Radium
8787

docs/js-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ You need to have the [jss-global](https://github.com/cssinjs/jss-global) plugin
112112
`SheetsRegistry`
113113

114114
When rendering on the server, you will need to get all rendered styles as a CSS string.
115-
SheetsRegistry class allows you to **manually** aggregate and stringify them. Read [more about SSR](./ssr.md).
115+
SheetsRegistry class allows you to **manually** aggregate and stringify them. Read [more about SSR](ssr.md).
116116

117117
```javascript
118118
import jss, {SheetsRegistry} from 'jss'
@@ -414,4 +414,4 @@ const dynamicStyles = getDynamicStyles({
414414

415415
## Plugins
416416

417-
See [plugins](./plugins.md) documentation.
417+
See [plugins](plugins.md) documentation.

docs/json-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,4 +423,4 @@ Compiles to:
423423

424424
## Plugins
425425

426-
JSS plugins give you even more features, [read about them](./plugins.md).
426+
JSS plugins give you even more features, [read about them](plugins.md).

docs/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jss.setup({
126126

127127
## Configuring Content Security Policy
128128

129-
You might need to set the `style-src` CSP directive, but do not want to set it to `unsafe-inline`. See [these instructions for configuring CSP](./csp.md).
129+
You might need to set the `style-src` CSP directive, but do not want to set it to `unsafe-inline`. See [these instructions for configuring CSP](csp.md).
130130

131131
## CLI
132132

karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ module.exports = config => {
1919
'node_modules/es5-shim/es5-shim.js',
2020
'node_modules/es5-shim/es5-sham.js',
2121
'node_modules/css.escape/css.escape.js',
22-
'tests/index.js'
22+
'./packages/jss/tests/index.js'
2323
],
2424
preprocessors: {
25-
'tests/index.js': ['webpack', 'sourcemap']
25+
'./packages/jss/tests/index.js': ['webpack', 'sourcemap']
2626
},
2727
webpack: Object.assign(webpackConfig, {
2828
devtool: 'inline-source-map'

0 commit comments

Comments
 (0)