Skip to content

Commit 03b06d7

Browse files
committed
Minor formatting
1 parent 645f470 commit 03b06d7

File tree

2 files changed

+68
-64
lines changed

2 files changed

+68
-64
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frontify-authenticator
2+
23
Authenticate to your Frontify instance from within any secure web app
34

45
# Install
@@ -9,7 +10,9 @@ Installing the latest published package on a 3rd party app is as simple as runni
910
// CommonJs require
1011
const FrontifyAuthenticator = require('@frontify/frontify-authenticator');
1112
```
13+
1214
OR
15+
1316
```
1417
// ESM import
1518
import FrontifyAuthenticator from '@frontify/frontify-authenticator';
@@ -18,4 +21,5 @@ import FrontifyAuthenticator from '@frontify/frontify-authenticator';
1821
There is a require/import example prepared on `src/local.ts` for added convienience simulating an end user import. To try it out, you simply need to run the `npm run local` command on the package root location.
1922

2023
# Build
24+
2125
To perform a new build simply run `npm run build` in the application root folder. This will regenerate the `dist` folder contents with the production ready typescript compiled files.

package.json

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
11
{
2-
"name": "@frontify/frontify-authenticator",
3-
"version": "2.0.0",
4-
"description": "Authenticate to your Frontify instance from within any secure web app",
5-
"files": [
6-
"dist/**/*"
7-
],
8-
"types": "dist/index.d.ts",
9-
"main": "dist/index.js",
10-
"exports": {
11-
".": {
12-
"require": "./dist/commonjs/index.js",
13-
"default": "./dist/commonjs/index.js",
14-
"import": "./dist/esm/index.mjs"
15-
}
16-
},
17-
"module": "dist/esm/index.mjs",
18-
"scripts": {
19-
"test": "jest --config jestconfig.json",
20-
"build": "cross-env NODE_ENV=production npm run build:ts",
21-
"build:ts": "rollup -c",
22-
"local": "npm run build && tsc --outDir dist --esModuleInterop src/local.ts && node dist/local.js",
23-
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
24-
"lint": "tslint -p tsconfig.json",
25-
"prepare": "npm run build",
26-
"prepublishOnly": "npm test && npm run lint",
27-
"preversion": "npm run lint",
28-
"version": "npm run format && git add -A src",
29-
"postversion": "git push && git push --tags"
30-
},
31-
"repository": {
32-
"type": "git",
33-
"url": "git+https://github.com/Frontify/frontify-authenticator.git"
34-
},
35-
"keywords": [
36-
"frontify",
37-
"authenticator",
38-
"oauth",
39-
"brand"
40-
],
41-
"author": "Frontify",
42-
"license": "MIT",
43-
"bugs": {
44-
"url": "https://github.com/Frontify/frontify-authenticator/issues"
45-
},
46-
"homepage": "https://developer.frontify.com/",
47-
"devDependencies": {
48-
"@types/jest": "^26.0.24",
49-
"@types/node": "^16.7.13",
50-
"cross-env": "^7.0.3",
51-
"esbuild": "^0.12.17",
52-
"esm": "^3.2.25",
53-
"jest": "^27.0.6",
54-
"node-fetch": "^3.0.0",
55-
"prettier": "^2.3.2",
56-
"requirejs": "^2.3.6",
57-
"rollup": "^2.55.1",
58-
"rollup-plugin-dts": "^3.0.2",
59-
"rollup-plugin-esbuild": "^4.5.0",
60-
"ts-jest": "^27.0.4",
61-
"tslint": "^6.1.3",
62-
"tslint-config-prettier": "^1.18.0",
63-
"typescript": "^4.3.5"
64-
},
65-
"dependencies": {}
2+
"name": "@frontify/frontify-authenticator",
3+
"version": "2.0.0",
4+
"description": "Authenticate to your Frontify instance from within any secure web app.",
5+
"files": [
6+
"dist/**/*"
7+
],
8+
"types": "dist/index.d.ts",
9+
"main": "dist/index.js",
10+
"exports": {
11+
".": {
12+
"require": "./dist/commonjs/index.js",
13+
"default": "./dist/commonjs/index.js",
14+
"import": "./dist/esm/index.mjs"
15+
}
16+
},
17+
"module": "dist/esm/index.mjs",
18+
"scripts": {
19+
"test": "jest --config jestconfig.json",
20+
"build": "cross-env NODE_ENV=production npm run build:ts",
21+
"build:ts": "rollup -c",
22+
"local": "npm run build && tsc --outDir dist --esModuleInterop src/local.ts && node dist/local.js",
23+
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
24+
"lint": "tslint -p tsconfig.json",
25+
"prepare": "npm run build",
26+
"prepublishOnly": "npm test && npm run lint",
27+
"preversion": "npm run lint",
28+
"version": "npm run format && git add -A src",
29+
"postversion": "git push && git push --tags"
30+
},
31+
"repository": {
32+
"type": "git",
33+
"url": "git+https://github.com/Frontify/frontify-authenticator.git"
34+
},
35+
"keywords": [
36+
"frontify",
37+
"authenticator",
38+
"oauth",
39+
"brand"
40+
],
41+
"author": "Frontify",
42+
"license": "MIT",
43+
"bugs": {
44+
"url": "https://github.com/Frontify/frontify-authenticator/issues"
45+
},
46+
"homepage": "https://developer.frontify.com/",
47+
"devDependencies": {
48+
"@types/jest": "^26.0.24",
49+
"@types/node": "^16.7.13",
50+
"cross-env": "^7.0.3",
51+
"esbuild": "^0.12.17",
52+
"esm": "^3.2.25",
53+
"jest": "^27.0.6",
54+
"node-fetch": "^3.0.0",
55+
"prettier": "^2.3.2",
56+
"requirejs": "^2.3.6",
57+
"rollup": "^2.55.1",
58+
"rollup-plugin-dts": "^3.0.2",
59+
"rollup-plugin-esbuild": "^4.5.0",
60+
"ts-jest": "^27.0.4",
61+
"tslint": "^6.1.3",
62+
"tslint-config-prettier": "^1.18.0",
63+
"typescript": "^4.3.5"
64+
},
65+
"dependencies": {}
6666
}

0 commit comments

Comments
 (0)