Skip to content

Commit

Permalink
Remove grunt dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Ofer Levi <ofer.levi@verizonmedia.com>
  • Loading branch information
OferLevi85 committed Jul 8, 2021
1 parent bc610ed commit e9db841
Show file tree
Hide file tree
Showing 57 changed files with 4,178 additions and 3,698 deletions.
10 changes: 10 additions & 0 deletions clients/nodejs/zpe/.prettierrc
@@ -0,0 +1,10 @@
arrowParens: always
bracketSpacing: true
endOfLine: lf
jsxBracketSameLine: false
jsxSingleQuote: true
semi: true
singleQuote: true
tabWidth: 4
trailingComma: es5
useTabs: false
95 changes: 0 additions & 95 deletions clients/nodejs/zpe/Gruntfile.js

This file was deleted.

20 changes: 15 additions & 5 deletions clients/nodejs/zpe/Makefile
Expand Up @@ -10,16 +10,26 @@ NPM := $(shell command -v npm 2> /dev/null)

ifdef NPM

all:
npm install
$(PWD)/node_modules/grunt-cli/bin/grunt

.PHONY: build lint test
all: build lint test
else

all:
@echo "npm is not available please install npm"

endif

build:
@echo "Make: Build"
npm install

lint:
@echo "Make: lint"
npm run ci-lint

test:
@echo "Make: unit tests"
npm run test

clean:
rm -rf build node_modules artifacts
rm -rf node_modules artifacts
14 changes: 0 additions & 14 deletions clients/nodejs/zpe/eslint.json

This file was deleted.

19 changes: 3 additions & 16 deletions clients/nodejs/zpe/package.json
Expand Up @@ -11,10 +11,10 @@
},
"scripts": {
"build": "make",
"lint": "grunt lint",
"fix-lint": "prettier --write src/**/*.js ./*.js test/**/*.js",
"ci-lint": "prettier --list-different src/**/*.js ./*.js test/**/*.js",
"test": "./node_modules/nyc/bin/nyc.js node_modules/.bin/jenkins-mocha --require test/config/mock.js test/unit/*.js",
"testDev": "mocha --require test/config/mock.js test/unit/*.js",
"functional": "grunt functional-sd",
"noop": "echo Ignoring this section."
},
"keywords": [
Expand All @@ -36,28 +36,15 @@
"@athenz/auth-core": "^1.0.0"
},
"devDependencies": {
"prettier": "^2.3.0",
"chai": "~3.5.0",
"chai-as-promised": "~6.0.0",
"chart.js": "^2.2.1",
"csslint": "^1.0.5",
"grunt": "~0.4.5",
"grunt-browserify": "~5.0.0",
"grunt-cli": "~1.2.0",
"grunt-contrib-clean": "~0.7.0",
"grunt-contrib-copy": "~1.0.0",
"grunt-contrib-jshint": "^1.1.0",
"grunt-contrib-watch": "^1.0.0",
"grunt-eslint": "^19.0.0",
"grunt-exec": "~1.0.1",
"grunt-filesize": "0.0.7",
"grunt-postcss": "^0.8.0",
"grunt-protractor-webdriver": "~0.2.5",
"grunt-webdriver": "~1.0.0",
"jenkins-mocha": "^5.0.0",
"jquery": "^3.1.1",
"jquery-ui": "^1.10.5",
"jshint": "^2.9.4",
"load-grunt-tasks": "^3.5.2",
"minifyify": "~7.3.5",
"mkdirp": "~0.5.1",
"mocha": "~3.2.0",
Expand Down
24 changes: 14 additions & 10 deletions clients/nodejs/zpe/src/AccessCheckStatus.js
@@ -1,14 +1,18 @@
'use strict';

module.exports = {
ALLOW: "Access Check was explicitly allowed",
DENY: "Access Check was explicitly denied",
DENY_NO_MATCH: "Access denied due to no match to any of the assertions defined in domain policy file",
DENY_ROLETOKEN_EXPIRED: "Access denied due to expired RoleToken",
DENY_ROLETOKEN_INVALID: "Access denied due to invalid RoleToken",
DENY_DOMAIN_MISMATCH: "Access denied due to domain mismatch between Resource and RoleToken",
DENY_DOMAIN_NOT_FOUND: "Access denied due to domain not found in library cache",
DENY_DOMAIN_EXPIRED: "Access denied due to expired domain policy file",
DENY_DOMAIN_EMPTY: "Access denied due to no policies in the domain file",
DENY_INVALID_PARAMETERS: "Access denied due to invalid/empty action/resource values",
ALLOW: 'Access Check was explicitly allowed',
DENY: 'Access Check was explicitly denied',
DENY_NO_MATCH:
'Access denied due to no match to any of the assertions defined in domain policy file',
DENY_ROLETOKEN_EXPIRED: 'Access denied due to expired RoleToken',
DENY_ROLETOKEN_INVALID: 'Access denied due to invalid RoleToken',
DENY_DOMAIN_MISMATCH:
'Access denied due to domain mismatch between Resource and RoleToken',
DENY_DOMAIN_NOT_FOUND:
'Access denied due to domain not found in library cache',
DENY_DOMAIN_EXPIRED: 'Access denied due to expired domain policy file',
DENY_DOMAIN_EMPTY: 'Access denied due to no policies in the domain file',
DENY_INVALID_PARAMETERS:
'Access denied due to invalid/empty action/resource values',
};

0 comments on commit e9db841

Please sign in to comment.