profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/jamesgeorge007/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
James George jamesgeorge007 @deepsourcelabs Kottayam, Kerala, India https://ghuser.io/jamesgeorge007 JavaScript Engineer | Open Sourcerer

gatsbyjs/gatsby 50982

Build blazing fast, modern apps and websites with React

agarrharr/awesome-cli-apps 7816

🖥 📊 🕹 🛠 A curated list of command line apps

geongeorge/i-hate-regex 2932

The code for iHateregex.io 😈 - The Regex Cheat Sheet

docsifyjs/docsify-cli 463

🖌 docsify cli tool - A magical documentation generator.

hoppscotch/hopp-doc-gen 75

📔 API documentation generator CLI for https://hoppscotch.io

jamesgeorge007/Amigo 6

Fully functional (ToDo) single page application (SPA) in React JS.

jamesgeorge007/Blogify 5

A Blogging platform backed up by Go lang (Iris web framework) and Mongo-DB.

jamesgeorge007/Admin-Page 3

Random web template showcasing an Admin dashboard beautified using Bootstrap.

jamesgeorge007/30-seconds-of-code 2

Curated collection of useful Javascript snippets that you can understand in 30 seconds or less.

PullRequestReviewEvent
PullRequestReviewEvent
PullRequestReviewEvent
PullRequestReviewEvent
PullRequestReviewEvent
PullRequestReviewEvent

PR opened webpack/webpack-cli

feat(init-generator): add svelte template

<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. -->

What kind of change does this PR introduce? feature

Did you add tests for your changes? Yes

If relevant, did you update the documentation? N/A

Summary This PR aims at adding a svelte template for init-generator #2832

Does this PR introduce a breaking change? No

Other information N/A

+466 -11

0 comment

18 changed files

pr created time in 8 days

create barnchwebpack/webpack-cli

branch : feat/init-generator

created branch time in 8 days

PullRequestReviewEvent
PullRequestReviewEvent

delete branch madlabsinc/teachcode

delete branch : test

delete time in 8 days

create barnchmadlabsinc/teachcode

branch : test

created branch time in 8 days

PullRequestReviewEvent
PullRequestReviewEvent
PullRequestReviewEvent

issue commentwebpack/webpack-cli

feature: add init templates for popular webpack use cases

Hi @rishabh3112, I'd love to join forces. Can I take up Svelte?

rishabh3112

comment created time in 11 days

push eventjamesgeorge007/webpack-cli

dependabot[bot]

commit sha 5351fd3aae8c0d2808dc299808c13551b0b6c125

chore(deps-dev): bump webpack from 5.45.1 to 5.46.0 (#2851) Bumps [webpack](https://github.com/webpack/webpack) from 5.45.1 to 5.46.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](https://github.com/webpack/webpack/compare/v5.45.1...v5.46.0) --- updated-dependencies: - dependency-name: webpack dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

Nitin Kumar

commit sha bf776ff63e9ba74c3e49cdd58115ca755dbca60c

test: add more cases for colors test (#2848)

view details

Anshuman Verma

commit sha 6bb6b7dd3b17f9376e287d1981b218c595db5281

chore: update dev server types to v4 compatible (#2849)

view details

Anshuman Verma

commit sha 53622dc74b8a8c4289b4f4e273414a401261ae67

docs: add dev server options for v4 (#2847)

view details

Nitin Kumar

commit sha d9d4c37add457caa7182512d655974ce9c130d66

refactor: update `webpack-dev-server` usage (#2853)

view details

Anshuman Verma

commit sha 9b326f6ec91b4b0e740a85fa7c5cc108445edc82

chore: use default node cache (#2852) * chore: use default node cache * fix: lint

view details

push time in 11 days

PullRequestReviewEvent

push eventjamesgeorge007/webpack-cli

Alexander Akait

commit sha de482784a4f8cbb9eacbbe1c6b6f3c62ef60567a

fix: respect dev server CLI options for multi compiler mode

view details

dependabot[bot]

commit sha 85a9f201b1c31a35e9f8d4ec2d3b6677230fe4d2

chore(deps-dev): bump ts-jest from 27.0.3 to 27.0.4 (#2845) Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.0.3 to 27.0.4. - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md) - [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.0.3...v27.0.4) --- updated-dependencies: - dependency-name: ts-jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

view details

James George

commit sha 104b9c4a9aa63c8962bf9decf9dd580180aec24c

refactor(generators): leverage helpers (#2842)

view details

push time in 13 days

Pull request review commentwebpack/webpack-cli

refactor(generators): leverage helpers

+const path = require("path");++const utilsDirectory = {+    cli: "../../../packages/webpack-cli/lib/utils",+    generators: "../../../packages/generators/src/utils",+};++jest.setMock(path.join(utilsDirectory.cli, "get-available-installers"), jest.fn());+jest.mock(path.join(utilsDirectory.generators, "scaffold-utils"), () => ({+    List: jest.fn(),+}));++const getAvailableInstallers = require(path.join(utilsDirectory.cli, "get-available-installers"));+const getPackageManager = require(path.join(utilsDirectory.cli, "get-package-manager"));+const logger = require(path.join(utilsDirectory.cli, "logger"));++const { getInstaller, getTemplate } = require(path.join(utilsDirectory.generators, "helpers"));+const { List } = require(path.join(utilsDirectory.generators, "scaffold-utils"));++const context = {+    prompt: () => {},+    supportedTemplates: ["default"],+    utils: {+        getAvailableInstallers,+        getPackageManager,+        logger,+    },+};++describe("helpers", () => {+    it("getInstaller() returns the available installer", async () => {+        // Multiple installers are not available+        getAvailableInstallers.mockReturnValue(["npm"]);++        // Invoke the helper function+        const installer = await getInstaller.call(context);+        expect(installer).toBe("npm");+    });++    it("getInstaller() invokes a List prompt if multiple installers are available", async () => {+        // Multiple installers are available+        getAvailableInstallers.mockReturnValue(["npm", "yarn", "pnpm"]);++        // User chose "pnpm"+        List.mockReturnValue({ packager: "pnpm" });++        // Invoke the helper function+        const installer = await getInstaller.call(context);+        expect(installer).toBe("pnpm");+    });++    it("getTemplate() returns with the valid template", async () => {+        context.template = "default";++        // Invoke the helper function+        const template = await getTemplate.call(context);+        expect(template).toBe("default");+    });++    it("getTemplate() invokes a List prompt on supplying an invalid template", async () => {+        context.template = "unknown";++        // User chose "default"+        List.mockReturnValue({ selectedTemplate: "default" });++        const loggerMock = jest.spyOn(logger, "warn").mockImplementation(() => {});++        // Invoke the helper function`+        const template = await getTemplate.call(context);+        expect(template).toBe("default");+        expect(loggerMock).toHaveBeenCalled();+    });+});

The only scenario for which we're missing out on an integration test in this context is for the case in which the prompt doesn't show up when multiple installers are not available. An attempt to write one won't go well, as both npm and yarn are available in the CI environment. I think unit tests better serve the purpose here.

jamesgeorge007

comment created time in 13 days

PullRequestReviewEvent

push eventjamesgeorge007/webpack-cli

jamesgeorge007

commit sha 57a4818673884ee416200b397552bb9091813506

test: test

view details

push time in 13 days

push eventjamesgeorge007/webpack-cli

jamesgeorge007

commit sha 6487a1b1db933e28a83befc2d2e0b25b756c5a8f

test: test

view details

push time in 13 days

push eventjamesgeorge007/webpack-cli

jamesgeorge007

commit sha f0e78413b7e97606ddbca2bf70f67e4cb14a7413

test: test

view details

push time in 13 days

push eventjamesgeorge007/webpack-cli

jamesgeorge007

commit sha 6a06c432ea124c4b024ba880dc6ab0af79142b39

test: test

view details

push time in 13 days

push eventjamesgeorge007/webpack-cli

jamesgeorge007

commit sha ee17d84b6be524aa9c7f1c05c3232ad6289e8942

test: test

view details

push time in 13 days

push eventjamesgeorge007/webpack-cli

jamesgeorge007

commit sha fce27966ef93107117ba8f542d194137c3df10e2

test: test

view details

push time in 13 days

push eventjamesgeorge007/webpack-cli

jamesgeorge007

commit sha 7eee869e0a33a5b3e1ef11475cb407e8971c0eb5

test: test

view details

push time in 13 days

push eventjamesgeorge007/webpack-cli

jamesgeorge007

commit sha 8c2a5c2787227f78ddd0c7b2dd76beda805f4645

test: test

view details

push time in 13 days

push eventjamesgeorge007/webpack-cli

jamesgeorge007

commit sha 269e76e030aebb139dc83fcb4e3d9b32b39ac4a3

test: test

view details

push time in 13 days