arylo-init
Advanced tools
Comparing version 2.1.0 to 2.1.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fs = require("fs"); | ||
const constants = require("../constants"); | ||
exports.getVersion = (ver) => { | ||
@@ -11,2 +12,5 @@ return require(`./${ver}`); | ||
exports.diffVersions = (ver) => { | ||
if (ver === constants.version) { | ||
return []; | ||
} | ||
const curVersion = parseVersion(ver); | ||
@@ -26,3 +30,3 @@ const versions = exports.hisVersions.reduce((arr, v) => { | ||
} | ||
return false; | ||
return true; | ||
}).map((v) => `${v.major}.${v.minor}.${v.patch}`); | ||
@@ -29,0 +33,0 @@ }; |
import * as fs from "fs"; | ||
import constants = require("../constants"); | ||
@@ -25,2 +26,5 @@ interface IVersion { | ||
export const diffVersions = (ver: string) => { | ||
if (ver === constants.version) { | ||
return [ ]; | ||
} | ||
const curVersion = parseVersion(ver); | ||
@@ -40,3 +44,3 @@ const versions = hisVersions.reduce((arr, v) => { | ||
} | ||
return false; | ||
return true; | ||
}).map((v) => `${v.major}.${v.minor}.${v.patch}`); | ||
@@ -43,0 +47,0 @@ }; |
{ | ||
"name": "arylo-init", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Initial Node.js Project for Arylo Edition", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
# arylo-init | ||
Generate a Node.js Project for Arylo Edition | ||
Generate a Node.js Project for Arylo Edition / 用于新建一个Node.js项目的脚手架 | ||
@@ -12,7 +12,7 @@ [![node][NPM_URL]][NPM_HREF] | ||
## Usages | ||
## Usages / 使用方法 | ||
### New Project | ||
### New Project / 新建项目 | ||
#### Method 0 | ||
#### Method 0 / 方法0(推荐) | ||
@@ -23,3 +23,3 @@ ```shell | ||
#### Method 1 | ||
#### Method 1 / 方法1 | ||
@@ -30,3 +30,17 @@ ```shell | ||
``` | ||
### Update Project / 更新项目 | ||
#### Method 0 / 方法0(推荐) | ||
```shell | ||
npx arylo-init update <update_project_path> | ||
``` | ||
#### Method 1 / 方法1 | ||
```shell | ||
npm install arylo-init --global | ||
arylo-init update <update_project_path> | ||
``` | ||
[NPM_URL]: https://img.shields.io/node/v/arylo-init.svg?style=flat-square&maxAge=600 | ||
@@ -33,0 +47,0 @@ [NPM_HREF]: https://www.npmjs.com/package/arylo-init |
Sorry, the diff of this file is not supported yet
43109
45
918
54
13