@symbo.ls/init 1.0.6 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -4
- package/{index.js → src/index.js} +5 -3
- package/.eslintrc.js +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/init",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"gitHead": "54fa6500c697604b3f48ba33a573545d7bff35fa",
|
|
6
6
|
"dependencies": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"@symbo.ls/scratch": "latest",
|
|
11
11
|
"css-in-props": "latest"
|
|
12
12
|
},
|
|
13
|
-
"source": "index.js",
|
|
14
|
-
"main": "
|
|
13
|
+
"source": "src/index.js",
|
|
14
|
+
"main": "src/index.js",
|
|
15
15
|
"targets": {
|
|
16
16
|
"main": {
|
|
17
17
|
"context": "browser",
|
|
@@ -19,9 +19,15 @@
|
|
|
19
19
|
"includeNodeModules": true
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"src",
|
|
25
|
+
".symbolsrc.json",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
22
28
|
"scripts": {
|
|
23
29
|
"prebuild": "rm -rf dist .parcel-cache",
|
|
24
|
-
"build": "parcel build index.js",
|
|
30
|
+
"build": "parcel build src/index.js",
|
|
25
31
|
"build:watch": "nodemon --exec \"yarn build\" --ignore 'dist/*' --watch ..",
|
|
26
32
|
"test:lint": "npx standard \"packages/**/*.js\"",
|
|
27
33
|
"test": "echo running all tests is not supported, maybe run: \"yarn test:lint\"",
|
|
@@ -6,8 +6,9 @@ import {
|
|
|
6
6
|
RESET,
|
|
7
7
|
getFontFaceString
|
|
8
8
|
} from '@symbo.ls/scratch'
|
|
9
|
+
|
|
9
10
|
import CONFIG_DEFAULT from '@symbo.ls/config-default'
|
|
10
|
-
import SYMBOLSRC_FILE from '
|
|
11
|
+
import SYMBOLSRC_FILE from '../.symbolsrc.json'
|
|
11
12
|
|
|
12
13
|
import createEmotion from '@emotion/css/create-instance'
|
|
13
14
|
import { setClassname } from 'css-in-props'
|
|
@@ -19,12 +20,13 @@ const { css, injectGlobal } = createEmotion({
|
|
|
19
20
|
export const init = (config) => {
|
|
20
21
|
const defaultConfig = config || CONFIG_DEFAULT || SYMBOLSRC_FILE
|
|
21
22
|
|
|
22
|
-
set({ verbose: false, ...defaultConfig })
|
|
23
|
-
|
|
23
|
+
const conf = set({ verbose: false, ...defaultConfig })
|
|
24
24
|
const FontFace = getFontFaceString(FONT)
|
|
25
25
|
|
|
26
26
|
injectGlobal(FontFace)
|
|
27
27
|
injectGlobal(RESET)
|
|
28
|
+
|
|
29
|
+
return conf
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
export const setClass = props => setClassname(props, css)
|