diff --git a/packages/jss-starter-kit/.size-snapshot.json b/packages/jss-starter-kit/.size-snapshot.json new file mode 100644 index 000000000..a9483ac72 --- /dev/null +++ b/packages/jss-starter-kit/.size-snapshot.json @@ -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 + } + } + } +} diff --git a/packages/jss-starter-kit/LICENSE b/packages/jss-starter-kit/LICENSE new file mode 100644 index 000000000..53d33c7b5 --- /dev/null +++ b/packages/jss-starter-kit/LICENSE @@ -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. diff --git a/packages/jss-starter-kit/package.json b/packages/jss-starter-kit/package.json new file mode 100644 index 000000000..aa4a45e23 --- /dev/null +++ b/packages/jss-starter-kit/package.json @@ -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": "oleg008@gmail.com" + }, + "repository": { + "type": "git", + "url": "git@github.com: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" + } +} diff --git a/packages/jss-starter-kit/src/index.js b/packages/jss-starter-kit/src/index.js new file mode 100644 index 000000000..31ea5137e --- /dev/null +++ b/packages/jss-starter-kit/src/index.js @@ -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()) diff --git a/rollup.config.js b/rollup.config.js index 3d0fac8d8..385c47ab4 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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