Skip to content

Commit

Permalink
Build TS on CI (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire authored Aug 20, 2021
1 parent 1babe5f commit b6086f5
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm install && npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ phpunit.phar
/tests/assignments.php
/tests/items.php
/tests/rules.php

# js
/node_modules
/dist
37 changes: 37 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 13 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "@hiqdev/hipanel-rbac",
"version": "0.1.4",
"version": "0.1.5",
"description": "HiQDev RBAC items",
"type": "module",
"main": "js/index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc"
},
"repository": {
"type": "git",
Expand All @@ -17,9 +18,16 @@
"role"
],
"author": "strorch",
"files": [
"js",
"dist"
],
"license": "proprietary",
"bugs": {
"url": "https://github.com/hiqdev/hipanel-rbac/issues"
},
"homepage": "https://github.com/hiqdev/hipanel-rbac#readme"
"homepage": "https://github.com/hiqdev/hipanel-rbac#readme",
"devDependencies": {
"typescript": "^4.3.5"
}
}
20 changes: 20 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"outDir": "./dist",
"strict": true
},
"include": [
"js"
],
"exclude": [
"node_modules",
"config",
"docs",
"src",
"tests",
"dist"
]
}

0 comments on commit b6086f5

Please sign in to comment.