Skip to content

Commit

Permalink
release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Jan 1, 2023
1 parent c12cf50 commit 620a4ad
Show file tree
Hide file tree
Showing 13 changed files with 568 additions and 177 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.14.2
version: 7.18.2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.14.2
version: 7.18.2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"cSpell.words": [
"callsite",
"Codacy",
"consola",
"convertable",
"demi",
"esbuild",
"filesize",
"gitmars",
"hooks-demi",
"iife",
"instanceof",
Expand Down
40 changes: 0 additions & 40 deletions build/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
// import { dirname, resolve } from 'node:path'
// import { fileURLToPath } from 'node:url'
import type { RollupOptions } from 'rollup'
// import glob from 'fast-glob'
import nodeResolve from '@rollup/plugin-node-resolve'
import babel from '@rollup/plugin-babel'
import commonjs from '@rollup/plugin-commonjs'
// import terser from '@rollup/plugin-terser'
import typescript from '@rollup/plugin-typescript'
import json from '@rollup/plugin-json'
import alias, { type ResolverObject } from '@rollup/plugin-alias'
Expand All @@ -15,9 +11,6 @@ import shebang from 'rollup-plugin-replace-shebang'
import pkg from '../package.json' assert { type: 'json' }
import { banner, extensions, reporter } from './config'

// const __filename = fileURLToPath(import.meta.url)
// const __dirname = dirname(__filename)
// const production = !process.env.ROLLUP_WATCH
const externals = [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.devDependencies || {})
Expand All @@ -31,15 +24,6 @@ const nodeResolver = nodeResolve({
moduleDirectories: ['node_modules']
})

// const moduleList = glob
// .sync('*', {
// cwd: resolve(__dirname, '..', 'src'),
// ignore: ['__tests__'],
// deep: 1,
// onlyDirectories: true
// })
// .map(name => resolve('src', name, 'index.ts'))

const options: RollupOptions = {
plugins: [
alias({
Expand Down Expand Up @@ -84,30 +68,6 @@ const options: RollupOptions = {
}

export default [
// {
// input: moduleList,
// output: [
// {
// entryFileNames: '[name].cjs',
// dir: 'lib',
// preserveModules: true,
// preserveModulesRoot: 'src',
// exports: 'auto',
// format: 'cjs',
// banner
// },
// {
// entryFileNames: '[name].mjs',
// dir: 'es',
// preserveModules: true,
// preserveModulesRoot: 'src',
// exports: 'auto',
// format: 'es',
// banner
// }
// ],
// ...options
// },
{
input: 'src/installer.ts',
output: [
Expand Down
1 change: 1 addition & 0 deletions docs/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
58 changes: 58 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
index.md - v1.0.0 / [Exports](modules.md)

<div style="text-align: center;" align="center">

# reinstaller

A simple installing tool

[![NPM version][npm-image]][npm-url]
[![Codacy Badge][codacy-image]][codacy-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![npm download][download-image]][download-url]
[![gzip][gzip-image]][gzip-url]
[![License][license-image]][license-url]

[![Sonar][sonar-image]][sonar-url]

</div>

## **完整文档请查阅: [API 完整文档](./docs/modules.md)**

## 安装

```bash
# 使用npm
$ npm install reinstaller --save

# 使用yarn
$ yarn add reinstaller
```

## 使用

## 问题和支持

Please open an issue [here](https://github.com/saqqdy/reinstaller/issues).

## License

[MIT](LICENSE)

[npm-image]: https://img.shields.io/npm/v/reinstaller.svg?style=flat-square
[npm-url]: https://npmjs.org/package/reinstaller
[codacy-image]: https://app.codacy.com/project/badge/Grade/f70d4880e4ad4f40aa970eb9ee9d0696
[codacy-url]: https://www.codacy.com/gh/saqqdy/reinstaller/dashboard?utm_source=github.com&utm_medium=referral&utm_content=saqqdy/reinstaller&utm_campaign=Badge_Grade
[travis-image]: https://travis-ci.com/saqqdy/reinstaller.svg?branch=master
[travis-url]: https://travis-ci.com/saqqdy/reinstaller
[codecov-image]: https://img.shields.io/codecov/c/github/saqqdy/reinstaller.svg?style=flat-square
[codecov-url]: https://codecov.io/github/saqqdy/reinstaller?branch=master
[download-image]: https://img.shields.io/npm/dm/reinstaller.svg?style=flat-square
[download-url]: https://npmjs.org/package/reinstaller
[gzip-image]: http://img.badgesize.io/https://unpkg.com/reinstaller/lib/index.js?compression=gzip&label=gzip%20size:%20JS
[gzip-url]: http://img.badgesize.io/https://unpkg.com/reinstaller/lib/index.js?compression=gzip&label=gzip%20size:%20JS
[license-image]: https://img.shields.io/badge/License-MIT-yellow.svg
[license-url]: LICENSE
[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_reinstaller
[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_reinstaller
3 changes: 3 additions & 0 deletions docs/modules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[index.md - v1.0.0](README.md) / Exports

# index.md - v1.0.0
16 changes: 16 additions & 0 deletions docs/out.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"id": 0,
"name": "index.md - v1.0.0",
"kind": 1,
"kindString": "Project",
"flags": {},
"originalName": "index.md",
"sources": [
{
"fileName": "installer.ts",
"line": 3,
"character": 0,
"url": "https://github.com/saqqdy/reinstaller/blob/c12cf50/src/installer.ts#L3"
}
]
}
16 changes: 11 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reinstaller",
"description": "A installing tool",
"version": "1.0.0-alpha.2",
"version": "1.0.0",
"packageManager": "pnpm@7.18.0",
"bin": {
"reinstaller": "./bin/index.js",
Expand Down Expand Up @@ -36,35 +36,41 @@
"build:bundle": "rollup -c build/rollup.config.ts --configPlugin @rollup/plugin-typescript",
"build:umd": "webpack --config build/webpack.config.js",
"build:types": "tsc --emitDeclarationOnly --outDir temp -p src",
"build:docs": "rimraf docs && typedoc && prettier --write \"**/*.md\"",
"roll-types": "api-extractor run && rimraf temp",
"watch": "pnpm build:bundle -w",
"pub": "tscjs scripts/publish",
"unpub": "tscjs scripts/unpublish",
"sync": "tscjs scripts/sync",
"clean": "rimraf lib es dist",
"dist": "run-s clean build docs prettier:docs",
"dist": "run-s clean build build:docs",
"test-unit": "jest --filter ./scripts/filter-unit.js",
"jest": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --coverage",
"coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"docs": "rimraf docs && typedoc",
"eslint": "eslint --fix .",
"prettier": "prettier --write \"**/*.{js,ts,jsx,tsx,yml,json,md}\"",
"prettier:docs": "prettier --write \"**/*.md\""
"prettier": "prettier --write \"**/*.{js,ts,jsx,tsx,yml,json,md}\""
},
"dependencies": {
"@gitmars/core": "^4.0.0",
"callsite-record": "^4.1.5",
"commander": "^9.4.1",
"consola": "^2.15.3",
"core-js": "^3.27.1",
"cosmiconfig": "^8.0.0",
"debug": "^4.3.4",
"depcheck": "^1.4.3",
"fs-extra": "^11.1.0",
"global-modules": "^2.0.0",
"js-cool": "^2.8.0",
"lodash-es": "^4.17.21",
"lodash-unified": "^1.0.3",
"ora": "^6.1.2",
"os-locale": "^6.0.2",
"package-json": "^8.1.0",
"picocolors": "^1.0.0",
"preferred-pm": "^3.0.3",
"semver": "^7.3.8",
"semver-diff": "^4.0.0",
"shelljs": "^0.8.5"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 620a4ad

Please sign in to comment.