-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97c5707
commit 64d855a
Showing
9 changed files
with
197 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"dist/jss-starter-kit.js": { | ||
"bundled": 82381, | ||
"minified": 33203, | ||
"gzipped": 9557 | ||
}, | ||
"dist/jss-starter-kit.min.js": { | ||
"bundled": 81265, | ||
"minified": 32683, | ||
"gzipped": 9306 | ||
}, | ||
"dist/jss-starter-kit.cjs.js": { | ||
"bundled": 2480, | ||
"minified": 2273, | ||
"gzipped": 682 | ||
}, | ||
"dist/jss-starter-kit.esm.js": { | ||
"bundled": 1408, | ||
"minified": 1302, | ||
"gzipped": 452, | ||
"treeshaked": { | ||
"rollup": { | ||
"code": 836, | ||
"import_statements": 541 | ||
}, | ||
"webpack": { | ||
"code": 2342 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
The MIT License (MIT) | ||
Copyright (c) 2014-present Oleg Isonen/Slobodskoi & contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "jss-starter-kit", | ||
"description": "A bundle to get you started playing with JSS. Not optimized for production deployment.", | ||
"version": "9.8.4", | ||
"license": "MIT", | ||
"homepage": "https://cssinjs.org/", | ||
"main": "dist/jss-starter-kit.cjs.js", | ||
"module": "dist/jss-starter-kit.esm.js", | ||
"unpkg": "dist/jss-starter-kit.bundle.js", | ||
"typings": "./src/index.d.ts", | ||
"author": { | ||
"name": "Oleg Slobodskoi", | ||
"email": "[email protected]" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:cssinjs/jss.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/cssinjs/jss/issues/new" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src", | ||
"LICENSE" | ||
], | ||
"keywords": [ | ||
"jss", | ||
"style", | ||
"sheet", | ||
"stylesheet", | ||
"css", | ||
"components", | ||
"composable", | ||
"css in js", | ||
"css-in-js" | ||
], | ||
"scripts": { | ||
"build": "node ../../scripts/build.js", | ||
"check-snapshot": "node ../../scripts/match-snapshot.js" | ||
}, | ||
"dependencies": { | ||
"jss": "^9", | ||
"jss-plugin-cache": "^3", | ||
"jss-plugin-isolate": "^5", | ||
"jss-preset-default": "^4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# jss-starter-kit:🚰 the whole kitchen sink | ||
|
||
[![Gitter](https://badges.gitter.im/JoinChat.svg)](https://gitter.im/cssinjs/lobby) | ||
|
||
The `jss-starter-kit` combines all of the other [packages](https://github.com/cssinjs/jss/tree/master/packages) into a single bundle, to make it easy to import directly into a playground like Codepen, or a local HTML file. | ||
|
||
:warning: This bundle includes every JSS package, unminified. It's great for experimenting, but not suitable for production deployment. | ||
|
||
## Quick start | ||
|
||
There's an instance of JSS already set up with all of the default plugins, exported as `jss`. | ||
|
||
```javascript | ||
import {jss} from 'https://unpkg.com/jss-starter-kit' | ||
|
||
// Notice that you can use camel-cased style keys here, because | ||
// the default preset include jss-plugin-syntax-camel-case. If you want to use | ||
// jss in your production application, you'll need to manually install the | ||
// plugins you need. | ||
const {classes} = jss | ||
.createStyleSheet({ | ||
wrapper: { | ||
padding: 40, | ||
background: '#f7df1e', | ||
textAlign: 'center' | ||
}, | ||
title: { | ||
font: { | ||
size: 40, | ||
weight: 900 | ||
}, | ||
color: '#24292e' | ||
}, | ||
link: { | ||
color: '#24292e', | ||
'&:hover': { | ||
opacity: 0.5 | ||
} | ||
} | ||
}) | ||
.attach() | ||
|
||
document.body.innerHTML = ` | ||
<div class="${classes.wrapper}"> | ||
<h1 class="${classes.title}">Hello JSS!</h1> | ||
<a | ||
class=${classes.link} | ||
href="http://cssinjs.org/" | ||
traget="_blank" | ||
> | ||
See docs | ||
</a> | ||
</div> | ||
` | ||
``` | ||
|
||
## Plugins | ||
|
||
[Every plugin shipped by JSS](https://github.com/cssinjs/jss/tree/master/packages) is included here. See [`index.js`](https://github.com/cssinjs/jss/blob/master/packages/jss-starter-kit/src/index.js) to see the names they are exported as. | ||
|
||
## Issues | ||
|
||
File a bug against [cssinjs/jss prefixed with \[jss-starter-kit\]](https://github.com/cssinjs/jss/issues/new?title=[jss-starter-kit]%20). | ||
|
||
## License | ||
|
||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// @flow | ||
import jss from 'jss' | ||
import preset from 'jss-preset-default' | ||
|
||
console.warn(`The JSS Starter Kit is for learning and experimentation. It's not optimized for production deployment. | ||
If you'd like to JSS in production, try using the "jss" and "jss-preset-default" bundles directly. See an example at https://github.com/cssinjs/jss#example`) | ||
|
||
jss.setup(preset()) | ||
|
||
export {default as jss} from 'jss' | ||
export {default as preset} from 'jss-preset-default' | ||
export {default as functions} from 'jss-plugin-syntax-rule-value-function' | ||
export {default as observable} from 'jss-plugin-syntax-rule-value-observable' | ||
export {default as template} from 'jss-plugin-syntax-template' | ||
export {default as global} from 'jss-plugin-syntax-global' | ||
export {default as extend} from 'jss-plugin-syntax-extend' | ||
export {default as nested} from 'jss-plugin-syntax-nested' | ||
export {default as compose} from 'jss-plugin-syntax-compose' | ||
export {default as camelCase} from 'jss-plugin-syntax-camel-case' | ||
export {default as defaultUnit} from 'jss-plugin-syntax-default-unit' | ||
export {default as expand} from 'jss-plugin-syntax-expand' | ||
export {default as vendorPrefixer} from 'jss-plugin-vendor-prefixer' | ||
export {default as propsSort} from 'jss-plugin-props-sort' | ||
export {default as isolate} from 'jss-plugin-isolate' | ||
export {default as cache} from 'jss-plugin-cache' | ||
|
||
export default jss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters