Add new build scripts
This commit is contained in:
parent
f6d5e43bcb
commit
50d9e900f2
|
@ -32,9 +32,10 @@
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rollup --config",
|
"build": "pnpm run build:js && pnpm run build:css",
|
||||||
"build:dev": "cross-env NODE_ENV=development rollup --config",
|
"build:js": "vite build",
|
||||||
"dev": "cross-env NODE_ENV=development rollup --config --watch",
|
"build:css": "postcss src/shareon.css -o dist/shareon.min.css --map",
|
||||||
|
"dev": "vite",
|
||||||
"lint": "prettier --check . && eslint src/*.js",
|
"lint": "prettier --check . && eslint src/*.js",
|
||||||
"size": "size-limit",
|
"size": "size-limit",
|
||||||
"test": "pnpm run lint && pnpm run build && pnpm run size",
|
"test": "pnpm run lint && pnpm run build && pnpm run size",
|
||||||
|
@ -55,6 +56,7 @@
|
||||||
"postcss": "^8.4.6",
|
"postcss": "^8.4.6",
|
||||||
"postcss-banner": "^4.0.1",
|
"postcss-banner": "^4.0.1",
|
||||||
"postcss-calc": "^8.2.3",
|
"postcss-calc": "^8.2.3",
|
||||||
|
"postcss-cli": "^9.1.0",
|
||||||
"postcss-css-variables": "^0.18.0",
|
"postcss-css-variables": "^0.18.0",
|
||||||
"prettier": "^2.5.1",
|
"prettier": "^2.5.1",
|
||||||
"rollup": "^2.67.0",
|
"rollup": "^2.67.0",
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import initializeShareon from "./shareon";
|
import initializeShareon from "./shareon";
|
||||||
import "./shareon.css";
|
|
||||||
|
|
||||||
// TODO: update README
|
// TODO: update README
|
||||||
const s = document.currentScript;
|
const s = document.currentScript;
|
||||||
|
|
Loading…
Reference in New Issue