feat: Modernize from CoffeeScript/Gulp to ES6/Rollup/Jest#24
Open
feat: Modernize from CoffeeScript/Gulp to ES6/Rollup/Jest#24
Conversation
- Convert all CoffeeScript source to ES6 JavaScript - Replace Gulp build system with Rollup (UMD + ESM bundles) - Replace Karma/Jasmine tests with Jest (62 tests passing) - Add GitHub Actions workflows (tests, publish with OIDC, release) - Remove Travis CI, Bower, CoffeeScript tooling - Upgrade debug dependency to v4 - Update package.json with modern fields (module, exports) - Move angular to peerDependencies - Update README with modern usage examples and badges - Keep backward-compatible public API (nemLogging module, nemSimpleLogger, nemDebug) BREAKING: Requires npm install (no more bower). Bundle output paths changed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Complete modernization of angular-simple-logger while preserving backward compatibility.
Changes
Source Code
src/logger.js— Logger class with level filtering, spawn supportsrc/module.js— Angular module registration (nemLogging)src/index.js— Full version withdebugintegrationsrc/index.light.js— Light version withoutdebugdependencyBuild System
dist/removed from git (built on publish)Tests
CI/CD
tests.yml— Node 18/20/22 matrixpublish.yml— npm publish with OIDC provenance on releaserelease.yml— manual workflow dispatch for version bumpsPackage
debugupgraded to v4 (from v2)angularmoved topeerDependenciesexportsfield with subpath for light versionmodulefield for ESM bundlersRemoved
What is NOT changed
nemLoggingmodule name,nemSimpleLogger,nemDebugMigration
Import paths: