Skip to content

Commit

Permalink
feat: add glup
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Feb 18, 2022
1 parent 54912e8 commit 15c0015
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 3.0.0-beta (2022-02-13)
# 3.0.0-beta (2022-02-18)


### Bug Fixes
Expand All @@ -13,6 +13,10 @@
* **init:** init project ([0675ac6](https://github.com/enncy/online-course-script/commit/0675ac6a631e8946a52e7e4e655b28faee8248d4))
* **packages:** init packages : web app scripts ([24e5386](https://github.com/enncy/online-course-script/commit/24e5386ec86dec33cc696fda6b5956785e2c1359))
* **script:** add cx and zhs login ([8d69e16](https://github.com/enncy/online-course-script/commit/8d69e166fd73cf2ae2d700aa772b78159efbdeaa))
* **script:** change folder name, and add browser script ([c540500](https://github.com/enncy/online-course-script/commit/c540500b0cef50e7c2944d3ea6331e93c3e00e52))
* **scripts-tempaermonkey:** add tempermonkey support, update browser export ([456af02](https://github.com/enncy/online-course-script/commit/456af0250ff33fada0930f01270d1e147f27e2f7))
* **scripts/cx:** add new login : phone-code login ([494e523](https://github.com/enncy/online-course-script/commit/494e523ffda8ddf5c9320be5861b42234fab4d91))
* **scripts:** 修改 package.json , 调整登录api ([614c628](https://github.com/enncy/online-course-script/commit/614c628a749bc6dd4e1556fd9fbdb026c82d6937))
* **scripts:** add script package ([6f03fb4](https://github.com/enncy/online-course-script/commit/6f03fb4d3545f02f8ccfeb14fa7b5d8169c15348))
* **test and cx login:** update tests README.md and add new login way of cx : phone-code-login ([ab46a1d](https://github.com/enncy/online-course-script/commit/ab46a1df98c73351518847a629ddaeb7f51a2d4d))

Expand Down
21 changes: 21 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const { series } = require("gulp");
const del = require("del");
const { exec } = require("child_process");

function cleanOutput() {
return del(["./dist", "./packages/scripts/lib", "./CHANGELOG.md"]);
}

function tsc() {
return exec("tsc", { cwd: "./packages/scripts" });
}

function webpack() {
return exec("npm run webpack");
}

function changelog() {
return exec("npm run changelog");
}

exports.default = series(cleanOutput, tsc, webpack, changelog);
19 changes: 15 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{
"name": "ocsjs",
"version": "3.0.0-beta",
"version": "3.0.0-beta.2",
"description": "ocs - online course script 在线网络课程辅助工具",
"main": "./packages/scripts/lib/index.js",
"main": "./dist/index.js",
"types": "./packages/scripts/lib/src/index.d.ts",
"files": [
"dist"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"webpack": "webpack --config webpack.config.js",
"gulp": "gulp"
},
"dependencies": {
"electron-store": "^8.0.1",
Expand All @@ -14,12 +20,17 @@
"devDependencies": {
"@types/node": "^17.0.16",
"cz-conventional-changelog": "^3.3.0",
"del": "^6.0.0",
"electron": "^17.0.0",
"follow-redirects": "1.14.7",
"gulp": "^4.0.2",
"gulp-cli": "^2.3.0",
"json-schema": "0.4.0",
"markdown-it": "12.3.2",
"nanoid": "3.1.31",
"node-forge": "1.0.0"
"node-forge": "1.0.0",
"webpack": "^5.69.0",
"webpack-cli": "^4.9.2"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 15c0015

Please sign in to comment.