Skip to content

Commit

Permalink
v3.1.0-alpha.0
Browse files Browse the repository at this point in the history
fix: fix bug

v3.1.1-alpha.0
  • Loading branch information
yanhaijing committed Nov 23, 2023
1 parent 60576ce commit 99d64c9
Show file tree
Hide file tree
Showing 61 changed files with 31,333 additions and 1,225 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
# 变更日志

## 3.1.2-alpha.0 / 2023-11-19

- fix: 修复插件 peerDependencies 为 3.x

## 3.1.1-alpha.0 / 2023-11-19

- template-loader 插件
- fix: 不同版本 webpack export defalut 处理错误问题

## 3.1.0-alpha.0 / 2023-11-19

- browserify-templatejs 插件
- feat: 去掉 expression 参数,现在自动添加 require @templatejs/runtime
- esbuild-plugin-templatejs 插件
- feat: 去掉 expression 参数,现在自动添加 import @templatejs/runtime
- feat: 去掉 expression 参数,现`在自动添加 import @templatejs/runtime
- fix: tplName 在windows下显示不正确
- gulp-templatejs 插件
- feat: 去掉 expression 参数,现在自动添加 require @templatejs/runtime
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,16 @@ $ yarn test
$ npx lerna publish
```

Release without tagging, suitable for test package.

```bash
$ yarn lint
$ yarn build
$ yarn test
$ lerna version --no-git-tag-version
$ npx lerna publish from-package --dist-tag next
```

## Contributors List

[contributors](https://github.com/yanhaijing/template.js/graphs/contributors)
Expand Down
14 changes: 11 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ $ npx lerna list # 列出所有的包
$ npx lerna bootstrap # 安装全部依赖
$ npx lerna link # 建立全部软连接
$ npx lerna changed # 列出下次发版lerna publish 要更新的包
$ npx lerna publish # 会打tag,上传git,上传npm
$ npx lerna publish from-package # 跳过选版本过程,从package.json的version发版
$ npx lerna publish # 会打tag,上传git, 上传npm
```

发布步骤,修改 changelog
Expand All @@ -124,7 +123,16 @@ $ yarn lint
$ yarn build
$ yarn test
$ npx lerna publish # 正式包
$ npx lerna publish --dist-tag next # 测试包
```

不打 tag 发包,适合测试包

```bash
$ yarn lint
$ yarn build
$ yarn test
$ lerna version --no-git-tag-version # 修改版本号,不打tag
$ npx lerna publish from-package --dist-tag next # 测试包
```

## 贡献者列表
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"packages/template-loader",
"packages/cli"
],
"version": "3.0.0-alpha.0"
"version": "3.1.2-alpha.0"
}
6 changes: 3 additions & 3 deletions packages/browserify-templatejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browserify-templatejs",
"version": "3.0.0-alpha.0",
"version": "3.1.2-alpha.0",
"description": "template.js的browserify编译插件",
"main": "dist/index.js",
"types": "./types/index.d.ts",
Expand Down Expand Up @@ -78,11 +78,11 @@
"typescript": "^5.2.2"
},
"dependencies": {
"@templatejs/precompiler": "^3.0.0-alpha.0",
"@templatejs/precompiler": "^3.1.2-alpha.0",
"@types/through": "^0.0.29"
},
"peerDependencies": {
"@templatejs/runtime": "^2.0.0"
"@templatejs/runtime": "^3.1.2-alpha.0"
},
"sideEffects": false,
"publishConfig": {
Expand Down
62 changes: 31 additions & 31 deletions packages/cli/lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
#!/usr/bin/env node

const yargs = require("yargs");
const yargs = require('yargs');

const { log } = require("./util");
const { log } = require('./util');

const { runInitPrompts } = require("./run-prompts");
const { init } = require("./init");
const { runInitPrompts } = require('./run-prompts');
const { init } = require('./init');

log();

yargs
.usage("usage: template [options]")
.usage("usage: template <command> [options]")
.example("template new myproject", "新建一个项目 myproject")
.alias("h", "help")
.alias("v", "version")
.command(
["new", "n"],
"新建一个项目",
function (yargs) {
return yargs
.option("force", {
alias: "f",
describe: "强制新建",
})
.option("type", {
alias: "t",
describe: "项目类型",
});
},
function (argv) {
runInitPrompts(argv._[1], yargs.argv).then(function (answers) {
init(argv, answers);
});
}
)
.demandCommand()
.epilog("copyright 2013-2020").argv;
.usage('usage: template [options]')
.usage('usage: template <command> [options]')
.example('template new myproject', '新建一个项目 myproject')
.alias('h', 'help')
.alias('v', 'version')
.command(
['new', 'n'],
'新建一个项目',
function (yargs) {
return yargs
.option('force', {
alias: 'f',
describe: '强制新建',
})
.option('type', {
alias: 't',
describe: '项目类型',
});
},
function (argv) {
runInitPrompts(argv._[1], yargs.argv).then(function (answers) {
init(argv, answers);
});
},
)
.demandCommand()
.epilog('copyright 2013-2020').argv;
Loading

0 comments on commit 99d64c9

Please sign in to comment.