Skip to content

Commit

Permalink
[WIP] Add jss-starter-kit
Browse files Browse the repository at this point in the history
  • Loading branch information
appsforartists committed Dec 18, 2018
1 parent 97c5707 commit 5bcf5dd
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 0 deletions.
31 changes: 31 additions & 0 deletions packages/jss-starter-kit/.size-snapshot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"dist/jss-starter-kit.js": {
"bundled": 67978,
"minified": 23899,
"gzipped": 7277
},
"dist/jss-starter-kit.min.js": {
"bundled": 66862,
"minified": 23379,
"gzipped": 7024
},
"dist/jss-starter-kit.cjs.js": {
"bundled": 2193,
"minified": 2009,
"gzipped": 606
},
"dist/jss-starter-kit.esm.js": {
"bundled": 1219,
"minified": 1127,
"gzipped": 392,
"treeshaked": {
"rollup": {
"code": 726,
"import_statements": 489
},
"webpack": {
"code": 2160
}
}
}
}
8 changes: 8 additions & 0 deletions packages/jss-starter-kit/LICENSE
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.
48 changes: 48 additions & 0 deletions packages/jss-starter-kit/package.json
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"
}
}
26 changes: 26 additions & 0 deletions packages/jss-starter-kit/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// @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`)

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'

jss.setup(preset())
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export default [
commonjs(commonjsOptions),
nodeGlobals({process: false}),
replace({
'process.env.NODE_ENV': JSON.stringify('development'),
'process.env.VERSION': JSON.stringify(pkg.version)
})
// sizeSnapshot barfs with
Expand Down

0 comments on commit 5bcf5dd

Please sign in to comment.