@contentpilot/sticky-navigation 1.7.3 → 1.7.4

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.
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Content Pilot Sticky Navigation
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@contentpilot/sticky-navigation.svg)](https://www.npmjs.com/package/@contentpilot/sticky-navigation)
4
+
3
5
  Scroll the page and note how the marker animates to highlight all of the sections that are currently on screen.
4
6
 
5
7
  ### Installation
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Add identifiers and activate the anchors that have these identifier
3
3
  * and are intercepted with the scroll. It needs the proper markup.
4
- * @version 1.7.3
4
+ * @version 1.7.4
5
5
  * @package
6
6
  * @author Content Pilot, Dallas, Texas
7
7
  * @copyright Copyright © 2018 Content Pilot
package/package.json CHANGED
@@ -1,14 +1,17 @@
1
1
  {
2
2
  "name": "@contentpilot/sticky-navigation",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "Add identifiers and activate the anchors that have these identifier and are intercepted with the scroll.",
5
5
  "main": "index.js",
6
+ "files": [
7
+ "index.js"
8
+ ],
6
9
  "publishConfig": {
7
10
  "access": "public"
8
11
  },
9
12
  "repository": {
10
13
  "type": "git",
11
- "url": "https://github.com/contentpilot/sticky-navigation"
14
+ "url": "git+https://github.com/content-pilot/sticky-navigation.git"
12
15
  },
13
16
  "keywords": [
14
17
  "WordPress",
@@ -1,33 +0,0 @@
1
- name: Publish NPM Package
2
- on:
3
- push:
4
- branches:
5
- - main
6
- jobs:
7
- npm-publish:
8
- name: Publish
9
- runs-on: ubuntu-latest
10
- steps:
11
- - name: Checkout repository
12
- uses: actions/checkout@main
13
- - name: Set up Node.js
14
- uses: actions/setup-node@v4
15
- with:
16
- node-version: '20.x'
17
- registry-url: 'https://registry.npmjs.org'
18
- - name: Check Commit Message
19
- id: check_commit
20
- run: |
21
- COMMIT_MSG=$(git log -1 --pretty=%B)
22
- PATTERN="^Release (\\S+)"
23
- if [[ "$COMMIT_MSG" =~ $PATTERN ]]; then
24
- echo "MATCHED=true" >> $GITHUB_ENV
25
- echo "TAG_NAME=${BASH_REMATCH[1]}" >> $GITHUB_ENV
26
- else
27
- echo "MATCHED=false" >> $GITHUB_ENV
28
- fi
29
- - name: Publish to NPM
30
- if: env.MATCHED == 'true'
31
- run: npm publish
32
- env:
33
- NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- 24
package/.prettierrc.js DELETED
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- useTabs: true,
3
- tabWidth: 4,
4
- printWidth: 80,
5
- singleQuote: true,
6
- trailingComma: 'es5',
7
- bracketSpacing: true,
8
- parenSpacing: true,
9
- jsxBracketSameLine: false,
10
- semi: true,
11
- arrowParens: 'always',
12
- }
package/eslint.config.js DELETED
@@ -1,23 +0,0 @@
1
- const globals = require('globals');
2
- const jsdoc = require('eslint-plugin-jsdoc');
3
-
4
- module.exports = [
5
- {
6
- ignores: ['node_modules/**'],
7
- },
8
- jsdoc.configs['flat/recommended'],
9
- {
10
- files: ['**/*.js'],
11
- languageOptions: {
12
- sourceType: 'commonjs',
13
- globals: {
14
- ...globals.browser,
15
- },
16
- },
17
- rules: {
18
- quotes: ['error', 'single'],
19
- semi: ['error', 'always'],
20
- camelcase: ['off', { ignoreGlobals: true }],
21
- },
22
- },
23
- ];