diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Taskfile.yaml | 31 | ||||
-rw-r--r-- | lib/admin/package.json | 5 | ||||
-rw-r--r-- | lib/client/package.json | 11 |
3 files changed, 45 insertions, 2 deletions
diff --git a/lib/Taskfile.yaml b/lib/Taskfile.yaml new file mode 100644 index 0000000..e2989c2 --- /dev/null +++ b/lib/Taskfile.yaml @@ -0,0 +1,31 @@ + +#taskfile for building the libraries for admin and clients and creating their packages + +version: '3' + +tasks: + + build: + dir: '{{.USER_WORKING_DIR}}' + cmds: + #install deps and run build + - npm install + - npm run build + + #copy artifacts to temp directory + postbuild_success: + dir: '{{.USER_WORKING_DIR}}' + cmds: + - powershell -Command "mkdir bin -Force" + #tar the package and put it in the output dir + - tar --exclude="./node_modules" --exclude="./src" --exclude="./.git" --exclude="./bin" --exclude=".gitignore" --exclude="*.yaml" -czf bin/release.tgz . + + #clean hook + clean: + dir: '{{.USER_WORKING_DIR}}' + ignore_error: true + cmds: + - cmd: powershell -Command "Remove-Item -Recurse node_modules" + - cmd: powershell -Command "Remove-Item -Recurse dist" + - cmd: powershell -Command "Remove-Item -Recurse -Force bin" + - cmd: powershell -Command "Remove-Item release.tgz"
\ No newline at end of file diff --git a/lib/admin/package.json b/lib/admin/package.json index 4405d3e..14a7850 100644 --- a/lib/admin/package.json +++ b/lib/admin/package.json @@ -3,6 +3,11 @@ "version": "0.1.1", "author": "Vaughn Nugent", "description": "A browser client library for CMNext admin UI development", + "copyright": "Copyright \u00A9 2023 Vaughn Nugent", + "repository": "https://github.com/VnUgE/CMNext/tree/master/lib/admin", + "output_dir": "bin", + "type": "module", + "main": "./dist/index.js", "types": "./dist/index.d.ts", "typings": "./dist/index.d.ts", diff --git a/lib/client/package.json b/lib/client/package.json index 430503f..26923cb 100644 --- a/lib/client/package.json +++ b/lib/client/package.json @@ -1,8 +1,15 @@ { "name": "@vnuge/cmnext-client", - "version": "0.1.0", + "version": "0.1.1", + "type": "module", + "copyright": "Copyright \u00A9 2023 Vaughn Nugent", "author": "Vaughn Nugent", "description": "A browser client library to access your CMNext content from its http static storage", + "repository": "https://github.com/VnUgE/CMNext/tree/master/lib/client", + "output_dir": "bin", + + "license": "agpl3", + "main": "./dist/index.js", "types": "./dist/index.d.ts", "typings": "./dist/index.d.ts", @@ -11,7 +18,7 @@ "build": "tsc", "clean": "if exist dist ( rd /S /Q lib)" }, - "license": "agpl3", + "devDependencies": { "@babel/types": "^7.x", "@types/lodash-es": "^4.14.194", |