gatsby-plugin-rudderstack 2.0.0 → 3.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.eslintcache +1 -0
  2. package/.eslintignore +8 -0
  3. package/.eslintrc.json +41 -0
  4. package/.github/ISSUE_TEMPLATE/bug_report.md +39 -0
  5. package/.github/ISSUE_TEMPLATE/feature-request.md +20 -0
  6. package/.github/pull_request_template.md +13 -0
  7. package/.github/workflows/build-and-quality-checks.yml +36 -0
  8. package/.github/workflows/check_pr_title.yml +17 -0
  9. package/.github/workflows/codeql-analysis.yml +70 -0
  10. package/.github/workflows/create-hotfix-branch.yml +21 -0
  11. package/.github/workflows/deploy-npm.yml +82 -0
  12. package/.github/workflows/draft-new-release.yml +86 -0
  13. package/.github/workflows/housekeeping.yaml +40 -0
  14. package/.github/workflows/notion-pr-sync.yml +55 -0
  15. package/.github/workflows/publish-new-release.yml +111 -0
  16. package/.github/workflows/test.yml +44 -0
  17. package/.husky/commit-msg +4 -0
  18. package/.husky/pre-commit +4 -0
  19. package/.idea/gatsby-plugin-rudderstack.iml +10 -0
  20. package/.idea/misc.xml +6 -0
  21. package/.idea/modules.xml +8 -0
  22. package/.idea/vcs.xml +6 -0
  23. package/.nvmrc +1 -0
  24. package/.prettierignore +6 -0
  25. package/.prettierrc +7 -0
  26. package/CODEOWNERS +2 -0
  27. package/CODE_OF_CONDUCT.md +80 -0
  28. package/CONTRIBUTING.md +47 -0
  29. package/commitlint.config.js +3 -0
  30. package/dist/LICENSE.md +21 -0
  31. package/dist/README.md +331 -0
  32. package/dist/gatsby-node.js +1 -0
  33. package/{gatsby-ssr.js → dist/gatsby-ssr.js} +13 -9
  34. package/dist/package.json +98 -0
  35. package/package.json +1 -1
  36. package/sonar-project.properties +35 -0
  37. package/CHANGELOG.md +0 -14
  38. /package/{gatsby-browser.js → dist/gatsby-browser.js} +0 -0
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "gatsby-plugin-rudderstack",
3
+ "version": "3.0.0-beta.0",
4
+ "description": "Event tracking with RudderStack in your Gatsby frontend.",
5
+ "main": "gatsby-ssr.js",
6
+ "scripts": {
7
+ "build": "babel src --out-dir ./dist --ignore __tests__ && npm run copy:files",
8
+ "watch": "babel -w src --out-dir ./dist --ignore __tests__",
9
+ "clean": "rm -rf dist",
10
+ "check:lint": "eslint \"src/**/*.js\"",
11
+ "check:lint:ci": "eslint \"src/**/*.js\" -f json -o reports/eslint.json || exit 0",
12
+ "check:circular": "madge --circular --extensions js ./src || exit 0",
13
+ "check:duplicates": "jscpd src --threshold 5",
14
+ "check:security": "npm audit --recursive --audit-level=high",
15
+ "format": "prettier --write .",
16
+ "lint:fix": "eslint . --fix",
17
+ "prepare": "husky install",
18
+ "pre-commit": "npm run test && npx lint-staged",
19
+ "commit-msg": "commitlint --edit",
20
+ "commit": "git-cz",
21
+ "test": "exit 0",
22
+ "test:ci": "exit 0",
23
+ "copy:files": "cp CHANGELOG.md dist/ && cp LICENSE.md dist/ && cp package.json dist/ && cp gatsby-node.js dist/ && cp README.md dist/"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/rudderlabs/gatsby-plugin-rudderstack.git"
28
+ },
29
+ "keywords": [
30
+ "rudderstack",
31
+ "rudderstack analytics",
32
+ "event tracking",
33
+ "gatsby",
34
+ "gatsby-plugin"
35
+ ],
36
+ "author": "RudderStack",
37
+ "license": "MIT",
38
+ "bugs": {
39
+ "url": "https://github.com/rudderlabs/gatsby-plugin-rudderstack/issues"
40
+ },
41
+ "homepage": "https://github.com/rudderlabs/gatsby-plugin-rudderstack#readme",
42
+ "devDependencies": {
43
+ "@babel/cli": "^7.19.3",
44
+ "@babel/core": "^7.20.2",
45
+ "@babel/eslint-parser": "7.19.1",
46
+ "@babel/plugin-proposal-object-rest-spread": "^7.20.2",
47
+ "@babel/preset-env": "^7.20.2",
48
+ "@babel/preset-react": "^7.18.6",
49
+ "commitizen": "4.2.5",
50
+ "commitlint": "17.3.0",
51
+ "conventional-changelog-cli": "2.2.2",
52
+ "conventional-github-releaser": "3.1.5",
53
+ "@commitlint/config-conventional": "17.3.0",
54
+ "@digitalroute/cz-conventional-changelog-for-jira": "7.4.2",
55
+ "eslint": "8.28.0",
56
+ "eslint-config-airbnb": "19.0.4",
57
+ "eslint-config-airbnb-base": "15.0.0",
58
+ "eslint-config-prettier": "8.5.0",
59
+ "eslint-plugin-compat": "4.0.2",
60
+ "eslint-plugin-import": "2.26.0",
61
+ "eslint-plugin-sonarjs": "0.16.0",
62
+ "eslint-plugin-unicorn": "45.0.0",
63
+ "husky": "8.0.2",
64
+ "jscpd": "3.5.1",
65
+ "lint-staged": "13.0.4",
66
+ "madge": "5.0.1",
67
+ "prettier": "2.8.0",
68
+ "standard-version": "9.5.0"
69
+ },
70
+ "eslintConfig": {
71
+ "rules": {
72
+ "strict": "off"
73
+ }
74
+ },
75
+ "lint-staged": {
76
+ "*.js": "eslint --cache --fix",
77
+ "*.{json,js,md,ts}": "prettier --write"
78
+ },
79
+ "config": {
80
+ "commitizen": {
81
+ "path": "./node_modules/@digitalroute/cz-conventional-changelog-for-jira",
82
+ "jiraMode": false,
83
+ "jiraOptional": true,
84
+ "skipScope": true,
85
+ "defaultType": "feat"
86
+ }
87
+ },
88
+ "overrides": {
89
+ "dot-prop": "5.3.0",
90
+ "semver-regex": "3.1.4",
91
+ "trim-newlines": "3.0.1"
92
+ },
93
+ "resolutions": {
94
+ "dot-prop": "5.3.0",
95
+ "semver-regex": "3.1.4",
96
+ "trim-newlines": "3.0.1"
97
+ }
98
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-plugin-rudderstack",
3
- "version": "2.0.0",
3
+ "version": "3.0.0-beta.0",
4
4
  "description": "Event tracking with RudderStack in your Gatsby frontend.",
5
5
  "main": "gatsby-ssr.js",
6
6
  "scripts": {
@@ -0,0 +1,35 @@
1
+ sonar.log.level=INFO
2
+ sonar.verbose=false
3
+ sonar.qualitygate.wait=false
4
+
5
+ # Project details
6
+ sonar.projectKey=rudderlabs_gatsby-plugin-rudderstack
7
+ sonar.organization=rudderlabs
8
+ sonar.projectName=gatsby-plugin-rudderstack
9
+ sonar.projectVersion=2.0.0
10
+
11
+ # Meta-data for the project
12
+ sonar.links.scm=https://github.com/rudderlabs/gatsby-plugin-rudderstack
13
+ sonar.links.issue=https://github.com/rudderlabs/gatsby-plugin-rudderstack/issues
14
+
15
+ # Path to reports
16
+ # sonar.javascript.lcov.reportPaths=reports/coverage/lcov.info
17
+ # sonar.testExecutionReportPaths=reports/sonar/results-report.xml
18
+ sonar.eslint.reportPaths=reports/eslint.json
19
+
20
+ # Path to sources
21
+ sonar.sources=src
22
+ sonar.inclusions=**/*.js
23
+ sonar.exclusions=**/*.json,**/*.html,**/*.png,**/*.jpg,**/*.gif,**/*.svg
24
+
25
+ # Path to tests
26
+ # sonar.tests=__tests__
27
+ # sonar.test.inclusions=**/*.test.js
28
+ # sonar.test.exclusions=**/*.json,**/*.html,**/*.png,**/*.jpg,**/*.gif,**/*.svg
29
+ # sonar.coverage.exclusions=test/**/*,__tests__/**/*,__mocks__/**/*,examples/**/*,**/*.json,**/*.html,**/*.png,**/*.jpg,**/*.gif,**/*.svg
30
+
31
+ # Source encoding
32
+ sonar.sourceEncoding=UTF-8
33
+
34
+ # Exclusions for copy-paste detection
35
+ sonar.cpd.exclusions=test/**/*,__tests__/**/*,__mocks__/**/*,examples/**/*
package/CHANGELOG.md DELETED
@@ -1,14 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ## 2.0.0 (2022-12-14)
6
-
7
-
8
- ### ⚠ BREAKING CHANGES
9
-
10
- * modify delayLoad functionality (#17)
11
-
12
- ### Features
13
-
14
- * modify delayLoad functionality ([#17](https://github.com/rudderlabs/gatsby-plugin-rudderstack/issues/17)) ([65f176d](https://github.com/rudderlabs/gatsby-plugin-rudderstack/commit/65f176dd8e7fff4749b7142ba16d63519651fe45))
File without changes