Skip to content
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
40 changes: 20 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: Test Build
on:
push:
branches:
- master
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
run_install: true
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
run_install: true

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Build
run: |
pnpm build
- name: Build
run: |
pnpm build
7 changes: 4 additions & 3 deletions copy_with_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
based onthe trigger configurations. This style calss is added to
the nominated buttoin and never removed.
*/
button.copy_with_style { }
button.copy_with_style {
}

/* A style to use when a copy is being prepared
The button will either be disabled (not clickable) or
Expand All @@ -27,6 +28,6 @@ button.preparing_for_copy {
changes.
*/
button.ready_to_copy {
transform: scale(1.3, 1.3);
background-color: #8ae234;
transform: scale(1.3, 1.3);
background-color: #8ae234;
}
35 changes: 18 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"name": "copy-with-style",
"version": "1.0.0",
"description": "A single file client-side JavaScript class that supports copying fully styled HTML elements to the clipboard",
"author": "Bernd Wechner",
"scripts": {
"build": "rollup -c rollup.config.ts --configPlugin esbuild",
"prepublish": "pnpm build"
},
"packageManager": "[email protected]",
"files": [
"dist"
],
"devDependencies": {
"esbuild": "0.17.19",
"rollup": "3.23.0",
"rollup-plugin-esbuild": "5.0.0"
}
"name": "copy-with-style",
"version": "1.0.0",
"description": "A single file client-side JavaScript class that supports copying fully styled HTML elements to the clipboard",
"author": "Bernd Wechner",
"license": "Hippocratic License 2.1",
"scripts": {
"build": "rollup -c rollup.config.ts --configPlugin esbuild",
"prepublish": "pnpm build"
},
"packageManager": "[email protected]",
"files": [
"dist"
],
"devDependencies": {
"esbuild": "0.19.8",
"rollup": "4.6.1",
"rollup-plugin-esbuild": "6.1.0"
}
}
Loading