Skip to content

Commit

Permalink
refactor: pick mql methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Nov 30, 2023
1 parent 837109c commit 8986d11
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ yarn-error.log*
# others
packages/*/stats.html
packages/hover-vanilla/docs/dist
packages/react/src/utils/mql.js
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,10 @@
"simple-git-hooks": {
"commit-msg": "npx commitlint --edit",
"pre-commit": "npx nano-staged"
},
"standard": {
"ignore": [
"packages/react/src/utils/mql.js"
]
}
}
5 changes: 4 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"react"
],
"dependencies": {
"@microlink/mql": "~0.11.1",
"@microlink/mql": "~0.12.0",
"localhost-url-regex": "~1.0.4",
"nanoclamp": "~2.0.4"
},
Expand Down Expand Up @@ -58,6 +58,7 @@
"jest-enzyme": "latest",
"jest-styled-components": "latest",
"lodash": "latest",
"esbuild": "latest",
"prop-types": "latest",
"react": "^17",
"react-dom": "^17",
Expand All @@ -76,9 +77,11 @@
"scripts": {
"build": "NODE_ENV=production rollup -c rollup.config.js --bundleConfigAsCjs",
"build-storybook": "NODE_ENV=production build-storybook --quiet",
"transpile": "echo \"export { fetchFromApi, getApiUrl } from '@microlink/mql'\" | esbuild --bundle --target=ES2019 --format=esm --minify-whitespace --minify-identifiers > src/utils/mql.js",
"dev": "start-storybook -p 6006",
"start": "node scripts/start.js",
"pretest": "npm run build",
"postinstall": "npm run transpile",
"test": "NODE_ENV=test jest --detectOpenHandles"
},
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fetchFromApi, getApiUrl as createApiUrl } from '@microlink/mql'
import { fetchFromApi, getApiUrl as createApiUrl } from './mql'
import localhostUrl from 'localhost-url-regex'
import { css } from 'styled-components'

Expand Down
1 change: 1 addition & 0 deletions packages/react/src/utils/mql.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8986d11

Please sign in to comment.