Commit Graph

70 Commits (chore-js-refactor-footer-scripts-modules)

Author SHA1 Message Date
Jason Stirnaman 717ec5cd1d chore(js): Extract Hugo params imports to single-purpose modules, fix environment-specific Hugo configs, use Hugo environments instead of specifying the config file, configure source maps and ESM for development and testing 2025-06-09 16:46:26 -05:00
Jason Stirnaman 4973026adf Merge pull request #6079 from influxdata/chore-js-refactor-footer-scripts-modules
Chore: JavaScript: refactor footer scripts modules
2025-06-09 14:40:37 -05:00
Jason Stirnaman f819f48de9
Revert "Chore: JavaScript: refactor footer scripts modules" 2025-06-05 09:46:37 -05:00
Jason Stirnaman aac841a749 fix(ci): Disable unnecessary SCSS processing when building JS assets.
- Build resources if not cached
- Ensure node_modules dependencies are available for asset processing
- Be more precise in the template when building assets in production mode and avoid conflicts with SCSS and CSS processing.
- Ignore node_modules when loading source maps
- Add .vscode/launch.json with debugging configuration for localhost:1313. In VSCode, go to Run and select the site to launch Chrome, connect to Developer Tools, and start debugging.
- Add support for debugging in VS Code without using source maps. Adds a debug helpers module for developers to use in IDE debugging and interact with the browser console. This is a workaround for lack of good source map support with js.Build and the Hugo asset pipeline.

Background:
Hugo and js.Build don't have good support for external source maps.
Internal source mapping is also unreliable; the base64 in the source map reference for some files is too long for the browser console to keep on 1 line--remaining characters are printed on the next line, resulting in a syntax error.
2025-06-04 14:21:26 -05:00
Jason Stirnaman 5c419c18bb fix(ci): Clear Hugo cache before build:
- When building in CircleCI, the previous Hugo config changes prevents Hugo finding previously processed CSS in the file cache. Clean up the cache before building.
2025-06-04 13:24:51 -05:00
Jason Stirnaman 13129c5687 chore(js): Unbundle assets in Hugo development and testing environments:
- Keep assets unbundled for easier debugging in development and testing.
- Copies other config from development to testing.
2025-06-04 13:24:51 -05:00
Jason Stirnaman 1dce052e56 fix(JS): Rename CommonJS scripts to .cjs extension, keep type: module as the project default. Update and fix ESLint configuration.
- Renames JavaScript files in flux-build-scripts and api-docs/openapi/plugins to .cjs file extension to declare them as CommonJS module syntax.
2025-05-19 11:34:42 -05:00
Andreas Deininger 35ba19d3cb
Docu: fix broken link (#5410)
Fix broken link

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2024-04-08 16:07:49 -06:00
Andreas Deininger 0488345ab7
Fix errors when running latest hugo version v0.123.8 (#5356)
Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2024-03-11 17:31:33 -06:00
Andreas Deininger 476a73e95e
Fixing typos (#5315)
* Fix typos

* Bump hugo to latest version v0.122.0

---------

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2024-02-05 09:51:51 -07:00
Andreas Deininger 57e4929746
Bump hugo to latest version v0.121.2 (#5293)
* Bump hugo to latest version v0.121.2

* Fix deprecation warnings emitted from hugo

---------

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>
Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2024-01-17 09:15:00 -07:00
Andreas Deininger 7634b9ba1a
Upgrade hugo to latest version 0.120.4 (#5241) 2023-11-27 13:39:23 -07:00
Scott Anderson 08b40beab4 updated circleci config 2023-01-31 13:40:57 -07:00
Scott Anderson 176ea2e420 updated circleci config 2023-01-31 13:31:46 -07:00
Scott Anderson 0082012e9a updated circleci image 2023-01-31 13:18:08 -07:00
Scott Anderson 5ce0d1ec47
Show what versions of InfluxDB Flux functions are supported in (#4219)
* automatically build flux version data file

* rendered modals on each stdlib page

* polish on flux-influxdb version support

* reverted modified frontmatter

* added new page that shows what flux versions are packaged with each InfluxDB version

* added comment to js file

* updated to address PR feedback

* moved flux build scripts into their own directory

* updated inject-flux-frontmatter script to work in subdirectory

* updated flux-versions script to work in nested directory

* fixed bug in flux-versions script
2022-07-19 15:14:10 -06:00
Scott Anderson 909980c765
Auto-generated Flux docs (#4158)
* WIP testing autogen

* WIP autogen docs, added contributors parital

* updated stdlib

* WIP autogen

* Inject Flux stdlib frontmatter script (#4157)

* added frontmatter injection script and frontmatter data file

* regenerated stdlib

* finalize frontmatter injection script

* add frontmatter injection to CI build

* remove debug line from frontmatter script

* fresh docs generate

* fresh generate
2022-06-23 16:21:58 -06:00
pierwill 4effc16f4a
Use hardcoded checksum for `s3deploy` (#2800)
Also remove unused install script
2021-06-30 15:48:17 -05:00
Jason Stirnaman f13e34de6d
Install dependencies as project dependencies from NPM repo (#2476)
* Added hugo-extended, postcss, postcss-cli, and autoprefixer as devDependencies. Run npm install or yarn install. (#2474)

* Replaced global hugo and yarn installs with project-level yarn install.

* Replaced npm package.lock with yarn.lock (#2474).

* enhancement: update README with instructions for installing NODE.JS dependencies. (#2474)

* updated api doc generator script to use npx

* Update README.md

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Update README.md

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Update README.md

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Update README.md

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>

* Update README.md

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* Update package.json

Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>

* fix: indentation. (#2476)

* update: Added separate dependencies list for api-docs.
- Moved redoc-cli to a separate package.json in api-docs. Excluded
api-docs/node_modules from generate-api-docs.sh.
- Updated redoc-cli argument sequence to agree with their docs.
- Updated READMEs.
- Fixed typos.

* update: add api-docs > yarn install to .circleci

* Added language and consistency to code block. Specify where to run the command.

Co-authored-by: Scott Anderson <scott@influxdata.com>
Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
2021-05-24 12:11:01 -05:00
Scott Anderson 9b312413c1 hotfix: trying to fix api docs 2021-03-31 11:12:05 -06:00
Scott Anderson d48e149544 hotfix: trying to fix api docs 2021-03-31 11:10:10 -06:00
Scott Anderson c0157b9622
Redoc fix (#2376)
* update redoc-cli version

* reverted redoc-cli version

* removed redoc version
2021-03-31 10:09:34 -06:00
Scott Anderson 05d9119720
update redoc-cli version (#2374) 2021-03-31 09:39:24 -06:00
Scott Anderson fb515407bb
Redoc fix (#2228)
* bumped redoc version
2021-03-01 14:34:05 -07:00
Scott Anderson 2c5d92fd4a
Redoc fix (#2227)
* specified version for redoc-cli

* revert redoc-cli version change

* troubleshooting cli docs build

* fixed bad merge conflict resolution
2021-03-01 14:18:18 -07:00
Scott Anderson 0e8689ab31
specified version for redoc-cli (#2225) 2021-03-01 14:04:29 -07:00
Scott Anderson 46d0f16dc0
upgraded hugo to 0.81.0, fixed isset build error, fixed formatting in grafana doc (#2218) 2021-02-26 21:54:41 -07:00
Scott Anderson 1657a0a9f1 use specific postcss-cli version 2020-12-14 13:33:24 -07:00
Scott Anderson 9f911ed81b hotfix: added specific autoprefixer version to fix CI build 2020-09-16 10:04:12 -06:00
Scott Anderson 66dba909c1 updated circle ci script 2020-09-02 17:55:33 -06:00
Scott Anderson 689b6b571f
updated deploy files (#1387) 2020-09-02 14:18:46 -06:00
Scott Anderson aa82e71618 switched from npm to yarn in ci build 2020-04-22 12:20:18 -06:00
Scott Anderson a5b4684d25 switched from npm to yarn in ci build 2020-04-22 12:18:44 -06:00
Scott Anderson 074d1b25e3 updated ci build script 2020-04-22 12:08:31 -06:00
Scott Anderson ae22623ca5 updated npm cache clear build command 2020-04-22 12:03:33 -06:00
Scott Anderson 332da50d56 updated npm cache clear build command 2020-04-22 11:58:38 -06:00
Scott Anderson 18ff330495 updated npm cache clear build command 2020-04-22 11:58:03 -06:00
Scott Anderson 7210c64729 updated npm cache clear build command 2020-04-22 11:57:29 -06:00
Scott Anderson 1f93ef576d updated npm cache clear build command 2020-04-22 11:56:31 -06:00
Scott Anderson 171e5bee3a removed tmp cache command from build script 2020-04-22 11:51:36 -06:00
Scott Anderson 14cc863ac0 added correct cache permission to ci build script 2020-04-22 11:47:55 -06:00
Scott Anderson 1e107f46bc added CI cache versions to other build commands 2020-04-22 11:46:26 -06:00
Scott Anderson 9c7032197c fixed yaml in circle ci build config 2020-04-22 11:45:47 -06:00
Scott Anderson b32c52a734 added tmp ci command to flush npm cache 2020-04-22 11:42:54 -06:00
Scott Anderson 0c62c0f470 added cache version to circle ci build config 2020-04-22 11:36:46 -06:00
Scott Anderson 31d8ee2ab6 updated circle ci image 2020-04-22 11:31:58 -06:00
Scott Anderson b5d0111eb8 hotfix: specified ci nodejs image 2019-12-02 16:28:16 -07:00
Scott Anderson fb755d48ae removed hardcoded redoc-cli version, updated telegraf plugin order 2019-12-02 12:54:30 -07:00
Scott Anderson 63e73ee159 hotfix: hardcode redoc-cli-version 2019-12-02 11:31:17 -07:00
Scott Anderson 308a97cbc8 update hugo version in the build environment 2019-11-20 15:38:02 -07:00