@symbo.ls/init 1.0.3 → 1.0.7
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/dist/main.js +2169 -277
- package/dist/main.js.map +1 -1
- package/package.json +9 -3
- package/.eslintrc.js +0 -9
- package/.symbolsrc.json +0 -1
- package/index.js +0 -24
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/init",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"gitHead": "54fa6500c697604b3f48ba33a573545d7bff35fa",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@domql/utils": "latest",
|
|
8
8
|
"@emotion/css": "latest",
|
|
9
9
|
"@symbo.ls/config-default": "latest",
|
|
10
|
-
"@symbo.ls/scratch": "latest"
|
|
10
|
+
"@symbo.ls/scratch": "latest",
|
|
11
|
+
"css-in-props": "latest"
|
|
11
12
|
},
|
|
12
|
-
"source": "index.js",
|
|
13
|
+
"source": "src/index.js",
|
|
13
14
|
"main": "dist/main.js",
|
|
14
15
|
"targets": {
|
|
15
16
|
"main": {
|
|
@@ -18,9 +19,14 @@
|
|
|
18
19
|
"includeNodeModules": true
|
|
19
20
|
}
|
|
20
21
|
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
21
26
|
"scripts": {
|
|
22
27
|
"prebuild": "rm -rf dist .parcel-cache",
|
|
23
28
|
"build": "parcel build index.js",
|
|
29
|
+
"build:watch": "nodemon --exec \"yarn build\" --ignore 'dist/*' --watch ..",
|
|
24
30
|
"test:lint": "npx standard \"packages/**/*.js\"",
|
|
25
31
|
"test": "echo running all tests is not supported, maybe run: \"yarn test:lint\"",
|
|
26
32
|
"push": "echo push is not yet supported",
|
package/.eslintrc.js
DELETED
package/.symbolsrc.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":"0.0.1","COLOR":{"transparent":"rgba(0, 0, 0, 0)","black":"black","blue":"#0079FD","indigo":"#50E1FF","green":"#59AC56","red":"#FE5B47","yellow":"#EDCB38","orange":"#E2862F","brown":"#7D6755","pink":"#FD8ABF","purple":"#7345AF","white":"white"},"GRADIENT":{"gradient-dark":"linear-gradient(0deg,\n rgba(0,0,0,0.06) 0%,\n rgba(0,0,0,0.07) 100%\n )","gradient-dark-active":"linear-gradient(0deg,\n rgba(0,0,0,0.09) 0%,\n rgba(0,0,0,0.1) 100%\n )","gradient-light":"linear-gradient(\n 0deg,\n rgba(255,255,255,0.05) 0%,\n rgba(255,255,255,0.06) 100%\n )","gradient-light-active":"linear-gradient(\n 0deg,\n rgba(255,255,255,0.09) 0%,\n rgba(255,255,255,0.10) 100%\n )"},"THEME":{"document":{"variants":{"light":{"color":"black","background":"white"},"dark":{"color":"white","background":"black"}}},"primary":{"color":"white","background":"blue"},"secondary":{"variants":{"light":{"color":"white","background":"gradient-light"},"dark":{"color":"white","background":"gradient-dark-active"}}}},"FONT":{"Karla":[{"url":"https://symbols-fonts.s3.us-west-1.amazonaws.com/Karla/Karla-VariableFont_wght.ttf","fontWeight":"variable","fontStyle":"normal","fontDisplay":"swap","unicodeRange":"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF"},{"url":"https://symbols-fonts.s3.us-west-1.amazonaws.com/Karla/Karla-VariableFont_wght.ttf","fontStyle":"normal","fontWeight":"variable","fontDisplay":"swap","unicodeRange":"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD"}]},"FONT_FAMILY":{"StartWithKarla":{"default":true,"value":["\"Karla\""],"type":"serif"}}}
|
package/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
set,
|
|
5
|
-
FONT,
|
|
6
|
-
RESET,
|
|
7
|
-
getFontFace
|
|
8
|
-
} from '@symbo.ls/scratch'
|
|
9
|
-
import CONFIG_DEFAULT from '@symbo.ls/config-default'
|
|
10
|
-
import SYMBOLSRC_FILE from './.symbolsrc.json'
|
|
11
|
-
|
|
12
|
-
import { injectGlobal } from '@emotion/css'
|
|
13
|
-
|
|
14
|
-
export const init = (config) => {
|
|
15
|
-
const defaultConfig = config || CONFIG_DEFAULT || SYMBOLSRC_FILE
|
|
16
|
-
|
|
17
|
-
const Scratch = set({ verbose: false, ...defaultConfig })
|
|
18
|
-
console.log(Scratch)
|
|
19
|
-
|
|
20
|
-
const FontFace = getFontFace(FONT)
|
|
21
|
-
|
|
22
|
-
injectGlobal(FontFace)
|
|
23
|
-
injectGlobal(RESET)
|
|
24
|
-
}
|