Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump word-wrap from 1.2.3 to 1.2.4 #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@alpacahq:registry=https://npm.pkg.github.com/alpacahq
//npm.pkg.github.com/:_authToken=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
15 changes: 6 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
SRC_DEPS = src/index.tsx src/third-party/qrcodegen/index.ts
CFG_DEPS = yarn.lock package.json tsup.config.ts
CFG_DEPS = package.json tsup.config.ts

all: lib/index.js lib/index.d.ts lib/index.js examples/iife/demo.js
all: lib/index.js lib/index.d.ts lib/index.js

lib:
mkdir -p lib

lib/index.d.ts: lib $(SRC_DEPS) $(CFG_DEPS)
yarn run build:code
npm run build:code

lib/esm/index.js: lib $(SRC_DEPS) $(CFG_DEPS)
yarn run build:code
npm run build:code

lib/index.js: lib $(SRC_DEPS) $(CFG_DEPS)
yarn run build:code

examples/iife/demo.js: lib/esm/index.js examples/demo.tsx
yarn run build:examples
npm run build:code

clean:
rm -rf lib examples/iife/demo.js
rm -rf lib
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# qrcode.react

This is a copy of qrcode.react
A React component to generate [QR codes](http://en.wikipedia.org/wiki/QR_code) for rendering to the DOM.

## Installation
Expand Down
292 changes: 0 additions & 292 deletions examples/demo.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions examples/index.html

This file was deleted.

13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,19 @@
"react-component",
"qrcode"
],
"homepage": "http://zpao.github.io/qrcode.react",
"main": "./lib/index.js",
"module": "./lib/esm/index.js",
"types": "./lib/index.d.ts",
"scripts": {
"build": "yarn run build:code && yarn run build:examples",
"build": "yarn run build:code",
"build:code": "tsup src/index.tsx -d lib --format esm,cjs --dts --legacy-output --target=es2017 --platform=browser",
"build:examples": "tsup examples/demo.tsx -d examples --format iife --env.NODE_ENV production --minify --target=es2017 --legacy-output",
"lint": "eslint .",
"pretty": "prettier --write '{*,.*}.{mjs,js,json}' '**/*.{js,json}'",
"prepare": "tsc && make clean && make all",
"prepublish-docs": "make clean && make all",
"publish-docs": "gh-pages --dist=examples --src='{index.html,iife/demo.js}'",
"test": "jest",
"typecheck": "tsc --noEmit"
},
"author": "Paul O’Shannessy <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/zpao/qrcode.react.git"
},
"license": "ISC",
"files": [
"lib"
Expand Down Expand Up @@ -67,5 +59,8 @@
"transform": {
"\\.[jt]sx?$": "babel-jest"
}
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/alpacahq"
}
}
Loading