Skip to content

Commit

Permalink
update gh pages on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
piglovesyou committed Jan 3, 2024
1 parent 42e5df5 commit 050ad3e
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 55 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# merge-cells [![Node.js CI](https://github.com/piglovesyou/merge-cells/actions/workflows/node.js.yml/badge.svg)](https://github.com/piglovesyou/merge-cells/actions/workflows/node.js.yml)

Provide JavaScript/TypeScript functions to help you merge cells in a table.
Provide JavaScript/TypeScript functions to help you merge cells of an HTML table.

👉 Example: https://piglovesyou.github.io/merge-cells/

## Usage

```html

<script type="module" defer>
import { mergeCells } from 'https://cdn.jsdelivr.net/npm/merge-cells@latest/dist/merge-cells.min.js'
Expand Down
108 changes: 54 additions & 54 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
{
"name": "merge-cells",
"version": "0.1.0",
"main": "dist/merge-cells.js",
"files": [
"dist"
],
"author": "Soichi Takamura <[email protected]>",
"license": "MIT",
"devDependencies": {
"@babel/preset-env": "^7.23.6",
"@babel/preset-typescript": "^7.23.3",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.5",
"@types/pug": "^2.0.10",
"gh-pages": "^6.1.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.0",
"make-dir": "^4.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.1.1",
"prettier-plugin-organize-imports": "^3.2.4",
"pug": "^3.0.2",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"uglify-js": "^3.17.4"
},
"prettier": {
"semi": false,
"singleQuote": true,
"tabWidth": 4,
"printWidth": 120
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write"
]
},
"scripts": {
"prepare": "husky install",
"clean": "rm -rf dist",
"lint": "prettier --check .",
"fix": "prettier --write .",
"build:gh-pages": "ts-node ./scripts/gen-gh-pages-html.ts",
"build:dist": "tsc --project tsconfig.dist.json",
"minify": "uglifyjs --compress --mangle --output dist/merge-cells.min.js --source-map filename dist/merge-cells.js",
"build": "npm-run-all clean --parallel build:* --sequential minify",
"test": "jest",
"preversion": "npm-run-all lint test build",
"postversion": "git push --tags && yarn publish . --tag $npm_package_version",
"gh-pages": "gh-pages -d dist"
}
"name": "merge-cells",
"version": "0.1.0",
"main": "dist/merge-cells.js",
"files": [
"dist"
],
"author": "Soichi Takamura <[email protected]>",
"license": "MIT",
"devDependencies": {
"@babel/preset-env": "^7.23.6",
"@babel/preset-typescript": "^7.23.3",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.5",
"@types/pug": "^2.0.10",
"gh-pages": "^6.1.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.0",
"make-dir": "^4.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.1.1",
"prettier-plugin-organize-imports": "^3.2.4",
"pug": "^3.0.2",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"uglify-js": "^3.17.4"
},
"prettier": {
"semi": false,
"singleQuote": true,
"tabWidth": 4,
"printWidth": 120
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write"
]
},
"scripts": {
"prepare": "husky install",
"clean": "rm -rf dist",
"lint": "prettier --check .",
"fix": "prettier --write .",
"build:gh-pages": "ts-node ./scripts/gen-gh-pages-html.ts",
"build:dist": "tsc --project tsconfig.dist.json",
"minify": "uglifyjs --compress --mangle --output dist/merge-cells.min.js --source-map filename dist/merge-cells.js",
"build": "npm-run-all clean --parallel build:* --sequential minify",
"test": "jest",
"gh-pages": "gh-pages -d dist",
"preversion": "npm-run-all lint test build",
"postversion": "git push --tags && yarn publish . --tag $npm_package_version && yarn gh-pages"
}
}
2 changes: 2 additions & 0 deletions scripts/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ html(lang="en")

.container
h1= pageTitle
p Provide JavaScript/TypeScript functions to help you merge cells of an HTML table.
p Go to #[a(href="https://github.com/piglovesyou/merge-cells") github.com/piglovesyou/merge-cells] for usage and more.

table#table.table.table-bordered
thead
Expand Down

0 comments on commit 050ad3e

Please sign in to comment.