Skip to content

Commit

Permalink
feat: upgrade devkit
Browse files Browse the repository at this point in the history
  • Loading branch information
akijoey committed Sep 17, 2022
1 parent 4023e59 commit 764703b
Show file tree
Hide file tree
Showing 10 changed files with 3,583 additions and 5,191 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = {
extends: '@akijoey',
rules: {
'no-undef': 0
globals: {
hexo: 'readonly'
}
}
3 changes: 3 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["github>akijoey/devkit//.github/renovate"]
}
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@main
- run: yarn --frozen-lockfile
- run: yarn test
- run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
coverage
coverage
6 changes: 3 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
npx devkit lint:commit
6 changes: 3 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install lint-staged
npx devkit lint:staged
5 changes: 0 additions & 5 deletions .stylelintrc.js

This file was deleted.

18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# hexo-theme-lotus
# hexo-theme-mapleaf

[![npm][npm-image]][npm-url]
[![build][build-image]][build-url]
[![license][license-image]][license-url]

A fantastic hexo theme.

## Installation
## Install

`$ npm i hexo-theme-lotus`
`$ npm i hexo-theme-mapleaf`

## License

[MIT][license-url] © AkiJoey

[npm-image]: https://img.shields.io/npm/v/hexo-theme-lotus
[npm-url]: https://www.npmjs.com/package/hexo-theme-lotus
[build-image]: https://www.travis-ci.org/akijoey/hexo-theme-lotus.svg?branch=master
[build-url]: https://www.travis-ci.org/akijoey/hexo-theme-lotus
[license-image]: https://img.shields.io/github/license/akijoey/hexo-theme-lotus
[license-url]: https://github.com/akijoey/hexo-theme-lotus/blob/master/LICENSE
[npm-image]: https://img.shields.io/npm/v/hexo-theme-mapleaf
[npm-url]: https://www.npmjs.com/package/hexo-theme-mapleaf
[build-image]: https://img.shields.io/github/workflow/status/akijoey/hexo-theme-mapleaf/Build
[build-url]: https://github.com/akijoey/hexo-theme-mapleaf/actions/workflows/build.yml
[license-image]: https://img.shields.io/github/license/akijoey/hexo-theme-mapleaf
[license-url]: https://github.com/akijoey/hexo-theme-mapleaf/blob/main/LICENSE
46 changes: 17 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,31 @@
{
"name": "hexo-theme-lotus",
"version": "0.0.1",
"name": "hexo-theme-mapleaf",
"version": "1.0.0",
"description": "A fantastic hexo theme.",
"scripts": {
"lint": "dev-scripts lint",
"test": "dev-scripts test",
"format": "dev-scripts format",
"prepare": "dev-scripts hook"
},
"repository": {
"type": "git",
"url": "git+https://github.com/akijoey/hexo-theme-lotus.git"
},
"keywords": [
"hexo",
"theme"
],
"repository": "github:akijoey/hexo-theme-mapleaf",
"homepage": "https://github.com/akijoey/hexo-theme-mapleaf#readme",
"bugs": "https://github.com/akijoey/hexo-theme-mapleaf/issues",
"author": "AkiJoey <akijoey@akijoey.com> (https://akijoey.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/akijoey/hexo-theme-lotus/issues"
"scripts": {
"lint": "devkit lint",
"test": "devkit test",
"format": "devkit format",
"prepare": "devkit prepare",
"release": "devkit release"
},
"homepage": "https://github.com/akijoey/hexo-theme-lotus#readme",
"dependencies": {
"hexo-renderer-pug": "^1.0.0",
"hexo-renderer-rollup": "^0.0.4",
"hexo-renderer-stylus": "^2.0.1"
"hexo-renderer-pug": "^3.0.0",
"hexo-renderer-rollup": "^1.0.0",
"hexo-renderer-stylus": "^2.1.0",
"mapleaf": "^1.2.0",
"starcasket": "^1.0.2"
},
"devDependencies": {
"@akijoey/dev-scripts": "^1.0.4",
"stylelint-plugin-stylus": "^0.11.0"
},
"prettier": "@akijoey/prettier-config",
"commitlint": {
"extends": "@akijoey/commitlint-config"
},
"lint-staged": {
"*.js": "dev-scripts lint:script",
"*.styl": "dev-scripts lint:style",
"*.{js,styl,json,yml,md}": "dev-scripts format"
"@akijoey/devkit": "latest"
}
}

0 comments on commit 764703b

Please sign in to comment.