Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: yeoman/generator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.1.0
Choose a base ref
...
head repository: yeoman/generator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Jan 27, 2017

  1. Update Travis test matrix

    SBoudrias authored Jan 27, 2017
    Copy the full SHA
    51414c0 View commit details

Commits on Feb 11, 2017

  1. Copy the full SHA
    67b90f4 View commit details
  2. Improve option name validation message

    - Also bump eslint to allow es6
    SBoudrias committed Feb 11, 2017
    Copy the full SHA
    0b06786 View commit details
  3. Bump dev dependencies

    SBoudrias committed Feb 11, 2017
    Copy the full SHA
    ac542ba View commit details
  4. Bump dependencies

    SBoudrias committed Feb 11, 2017
    Copy the full SHA
    cf67f66 View commit details
  5. Copy the full SHA
    59d0120 View commit details
  6. Copy the full SHA
    17173a2 View commit details
  7. Use XO

    So we don't have to manually manage a huge .eslintrc file
    sindresorhus committed Feb 11, 2017
    Copy the full SHA
    6d267f0 View commit details

Commits on Mar 5, 2017

  1. Copy the full SHA
    74cb46f View commit details
  2. 1
    Copy the full SHA
    af3048f View commit details
  3. 1.1.1

    SBoudrias committed Mar 5, 2017
    Copy the full SHA
    80863b0 View commit details
  4. Initial ES2015ification

    sindresorhus authored and SBoudrias committed Mar 5, 2017
    Copy the full SHA
    d535bac View commit details
  5. More ES2015ification

    sindresorhus authored and SBoudrias committed Mar 5, 2017
    Copy the full SHA
    6553965 View commit details
  6. Get rid of some dependencies

    sindresorhus authored and SBoudrias committed Mar 5, 2017
    Copy the full SHA
    2cab46e View commit details
  7. Copy the full SHA
    00912ce View commit details
  8. Copy the full SHA
    1be88e6 View commit details
  9. Copy the full SHA
    cfd2a8e View commit details

Commits on Mar 9, 2017

  1. More ES2015ifing

    Convert Generator to a ES2015 class.
    sindresorhus committed Mar 9, 2017
    Copy the full SHA
    b010701 View commit details

Commits on Apr 1, 2017

  1. Bump dependencies

    sindresorhus committed Apr 1, 2017
    Copy the full SHA
    9da7391 View commit details
  2. Copy the full SHA
    e296e52 View commit details

Commits on Apr 16, 2017

  1. Copy the full SHA
    eaf1ade View commit details

Commits on May 12, 2017

  1. Copy the full SHA
    364606e View commit details

Commits on Jun 25, 2017

  1. Copy the full SHA
    edc2bf2 View commit details

Commits on Jul 24, 2017

  1. Don't die on diffing file deletions (again) (#1028)

    Makes `null` content (file deletion):
    
    1. not identify as binary (so default diff style is nicer)
    2. not break binary diff if it is
    
    Addresses regression(?) of #950
    dbushong authored and SBoudrias committed Jul 24, 2017
    Copy the full SHA
    f8e46b0 View commit details

Commits on Sep 11, 2017

  1. Add package-lock.json

    SBoudrias committed Sep 11, 2017
    Copy the full SHA
    68d59c1 View commit details
  2. Copy the full SHA
    183b3a8 View commit details

Commits on Sep 12, 2017

  1. Use raw nsp

    SBoudrias committed Sep 12, 2017
    Copy the full SHA
    6effbfe View commit details
  2. Replace gulp with raw Mocha

    SBoudrias committed Sep 12, 2017
    Copy the full SHA
    4b1b841 View commit details
  3. Bump package-lock.json

    SBoudrias committed Sep 12, 2017
    Copy the full SHA
    96da393 View commit details
  4. Bump dependencies

    SBoudrias committed Sep 12, 2017
    Copy the full SHA
    a29e5d9 View commit details
  5. 2.0.0

    SBoudrias committed Sep 12, 2017
    Copy the full SHA
    9e4ccf5 View commit details

Commits on Sep 30, 2017

  1. Copy the full SHA
    2955a84 View commit details
  2. 2.0.1

    SBoudrias committed Sep 30, 2017
    Copy the full SHA
    28cbab2 View commit details

Commits on Oct 23, 2017

  1. Fix typo in comment (#1044)

    helfi92 authored and mischah committed Oct 23, 2017
    Copy the full SHA
    825305e View commit details

Commits on Dec 21, 2017

  1. Copy the full SHA
    f7b8167 View commit details

Commits on Dec 26, 2017

  1. Bump dependencies

    SBoudrias committed Dec 26, 2017
    Copy the full SHA
    d291b78 View commit details
  2. 2.0.2

    SBoudrias committed Dec 26, 2017
    Copy the full SHA
    967cb0f View commit details

Commits on Dec 27, 2017

  1. Copy the full SHA
    150053c View commit details

Commits on Feb 9, 2018

  1. Copy the full SHA
    971c1a8 View commit details

Commits on Feb 19, 2018

  1. 2.0.3

    SBoudrias committed Feb 19, 2018
    Copy the full SHA
    d8253fc View commit details

Commits on Feb 26, 2018

  1. Spelling (#1060)

    * spelling: committed
    
    * spelling: correctly
    
    * spelling: multiple
    
    * spelling: parameters
    
    * spelling: store
    
    * spelling: without
    jsoref authored and SBoudrias committed Feb 26, 2018
    Copy the full SHA
    e582a00 View commit details

Commits on Mar 26, 2018

  1. Change options and args order (#1063)

    * change args and options order
    
    * update help tests
    mrDinckleman authored and SBoudrias committed Mar 26, 2018
    Copy the full SHA
    efc52c9 View commit details

Commits on Apr 13, 2018

  1. 2.0.4

    mischah committed Apr 13, 2018
    Copy the full SHA
    2ddb7d5 View commit details

Commits on Apr 28, 2018

  1. Copy the full SHA
    36a0368 View commit details

Commits on Apr 30, 2018

  1. Bump dependencies

    SBoudrias committed Apr 30, 2018
    Copy the full SHA
    f23aac1 View commit details
  2. 2.0.5

    SBoudrias committed Apr 30, 2018
    Copy the full SHA
    dae9aa7 View commit details
  3. Copy the full SHA
    0d97e24 View commit details

Commits on May 21, 2018

  1. Make tests robust (#1072)

    * Do not warn about nested callbacks in tests
    
    The tests are always deeper nested than regular files. So accept
    deeper nesting in these files.
    
    * Make the tests robust
    
    Currently the tests often fail because of timeouts. This increases
    the maximum timeout for these tests to prevent that from happening.
    BridgeAR authored and SBoudrias committed May 21, 2018
    Copy the full SHA
    b4f1bfc View commit details

Commits on Jun 30, 2018

  1. npm audit fix

    SBoudrias committed Jun 30, 2018
    Copy the full SHA
    314a52c View commit details
  2. Copy the full SHA
    91b297c View commit details
Showing with 18,711 additions and 4,520 deletions.
  1. +0 −118 .eslintrc
  2. +1 −0 .gitattributes
  3. +3 −0 .github/FUNDING.yml
  4. +7 −0 .github/ISSUE_TEMPLATE/bug_report.md
  5. +1 −0 .github/ISSUE_TEMPLATE/config.yml
  6. +7 −0 .github/ISSUE_TEMPLATE/feature_request.md
  7. +18 −0 .github/dependabot.yml
  8. +32 −0 .github/workflows/ci.yml
  9. +74 −0 .github/workflows/gh_pages.yml
  10. +69 −0 .github/workflows/integration.yml
  11. +34 −0 .github/workflows/lock-maintenance.yml
  12. +23 −0 .github/workflows/stale.yml
  13. +4 −0 .gitignore
  14. +3 −0 .mocharc.cjs
  15. +4 −0 .prettierignore
  16. +5 −0 .prettierignore-doc
  17. +16 −0 .prettierrc
  18. +15 −14 .travis.yml
  19. +23 −0 .vscode/launch.json
  20. +11 −0 .vscode/settings.json
  21. +35 −0 .xo-config.json
  22. +0 −9 benchmark/module.js
  23. +2 −2 deploy.sh
  24. +14 −0 eslint.config.js
  25. +0 −60 gulpfile.js
  26. +8 −7 jsdoc.json
  27. +0 −138 lib/actions/help.js
  28. +0 −192 lib/actions/install.js
  29. +0 −33 lib/actions/spawn_command.js
  30. +0 −65 lib/actions/user.js
  31. +0 −739 lib/index.js
  32. +0 −45 lib/util/binary-diff.js
  33. +0 −201 lib/util/conflicter.js
  34. +0 −44 lib/util/deprecate.js
  35. +0 −195 lib/util/prompt-suggestion.js
  36. +0 −126 lib/util/storage.js
  37. +9,828 −0 package-lock.json
  38. +85 −61 package.json
  39. +3 −1 readme.md
  40. +365 −0 src/actions/fs.ts
  41. +123 −0 src/actions/help.ts
  42. +733 −0 src/actions/lifecycle.ts
  43. +75 −0 src/actions/package-json.ts
  44. +152 −0 src/actions/spawn-command.ts
  45. +56 −0 src/actions/user.ts
  46. +3 −0 src/constants.ts
  47. +843 −0 src/generator.ts
  48. +52 −0 src/index.ts
  49. +36 −0 src/questions.d.ts
  50. +35 −0 src/types-utils.d.ts
  51. +182 −0 src/types.d.ts
  52. +43 −0 src/util/deprecate.js
  53. +210 −0 src/util/prompt-suggestion.ts
  54. +334 −0 src/util/storage.ts
  55. +0 −1,158 test/base.js
  56. +2,005 −0 test/base.test.ts
  57. +0 −187 test/conflicter.js
  58. +0 −58 test/deprecate.js
  59. +230 −0 test/deprecate.test.ts
  60. +220 −0 test/environment.test.ts
  61. +1 −1 test/fixtures/config.json
  62. +1 −0 test/fixtures/file-contains-utf8.yml
  63. +24 −0 test/fixtures/generator-defaults/app/index.js
  64. +1 −0 test/fixtures/generator-defaults/app/options.js
  65. +9 −0 test/fixtures/generator-defaults/app/prompts.js
  66. +2 −0 test/fixtures/generator-defaults/app/templates/foo-template.js
  67. +16 −0 test/fixtures/generator-defaults/package-lock.json
  68. +13 −0 test/fixtures/generator-defaults/package.json
  69. +11 −12 test/fixtures/generator-mocha/main.js
  70. +2 −1 test/fixtures/generator-mocha/package.json
  71. +10 −11 test/fixtures/options-generator/main.js
  72. +2 −1 test/fixtures/options-generator/package.json
  73. +580 −0 test/fs.test.ts
  74. +354 −0 test/generators-compose-workflow.test.ts
  75. +0 −26 test/generators.js
  76. +147 −0 test/generators.test.ts
  77. +0 −215 test/install.js
  78. +23 −0 test/integration.test.ts
  79. +94 −0 test/package-json.test.ts
  80. +0 −391 test/prompt-suggestion.js
  81. +508 −0 test/prompt-suggestion.test.ts
  82. +152 −0 test/spawn-command.test.ts
  83. +0 −58 test/spawn_command.js
  84. +0 −236 test/storage.js
  85. +606 −0 test/storage.test.ts
  86. +0 −115 test/user.js
  87. +58 −0 test/user.test.ts
  88. +24 −0 test/utils.ts
  89. +35 −0 tsconfig.json
  90. +8 −0 tsconfig.spec.json
  91. +8 −0 vitest.config.ts
118 changes: 0 additions & 118 deletions .eslintrc

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto
*.js text eol=lf
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

open_collective: yeoman
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: needs triage
assignees: ''
---
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: needs triage, enhancement
assignees: ''
---
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: daily
open-pull-requests-limit: 5
ignore:
- dependency-name: '@types/node'
versions: ['>=17']
- dependency-name: '*'
update-types: ['version-update:semver-minor', 'version-update:semver-patch']

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
open-pull-requests-limit: 5
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: NPM Test

on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:
branches:
- '*'

permissions:
contents: read

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18, 20, 22]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g npm@^8
if: matrix.node-version == '14.x'
- run: npm ci
- run: npm test
74 changes: 74 additions & 0 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Update api docs
on:
push:
branches:
- docs
release:
types: [published]
workflow_dispatch:
inputs:
path:
description: 'Destination path to generate'
required: false

permissions:
contents: read

jobs:
build:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
name: Update api docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: source
- uses: actions/checkout@v4
with:
ref: gh-pages
path: yeoman-generator-doc
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm ci
working-directory: source
- name: Cleanup
working-directory: yeoman-generator-doc
run: rm *.html
- name: Generate doc
run: npm run doc
working-directory: source
env:
DOC_FOLDER: ${{ github.event.inputs.path }}
- name: Detect version
run: echo "::set-output name=version::$(node -e "console.log(require('./package.json').version);")"
working-directory: source
id: version
- name: Create commit
working-directory: yeoman-generator-doc
if: always()
run: |
git add .
git config --local user.email ""
git config --local user.name "Github Actions"
git diff --cached
git commit -a -m "Update api for ${{steps.version.outputs.version}}" || true
- name: Create Pull Request
if: always()
id: cpr
uses: peter-evans/create-pull-request@v7.0.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Update api for ${{steps.version.outputs.version}}'
title: 'Update api for ${{steps.version.outputs.version}}'
body: |
Update api docs
labels: automated pr
branch: gh-pages-master
path: yeoman-generator-doc
- name: Check outputs
run: |
echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
echo "Pull Request Number - ${{ steps.cpr.outputs.pr_number }}"
69 changes: 69 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Integration Build

on:
push:
branches-ignore:
- '*'
- 'dependabot/**'
pull_request:
branches:
- '*'

permissions:
contents: read

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [18]

steps:
- name: Checkout yeoman-test
uses: actions/checkout@v4
with:
repository: yeoman/yeoman-test
path: yeoman-test

- name: Checkout yeoman-generator
uses: actions/checkout@v4
with:
path: yeoman-generator

- name: Checkout yeoman-environment
uses: actions/checkout@v4
with:
path: yeoman-environment

- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Run yeoman-test test
run: |
cd $GITHUB_WORKSPACE/yeoman-test
mv package.json package.json.original
jq 'del(.peerDependencies)' package.json.original > package.json
cat package.json
npm install
npm install ${{ github.repository }}#$GITHUB_SHA yeoman/environment#main
npm test
- name: Run yeoman-generator test
if: always()
run: |
cd $GITHUB_WORKSPACE/yeoman-generator
npm ci
npm install yeoman/yeoman-test#main yeoman/environment#main
npm test
- name: Run yeoman-environment test
if: always()
run: |
cd $GITHUB_WORKSPACE/yeoman-environment
npm ci
npm install yeoman-generator-7@${{ github.repository }}#$GITHUB_SHA yeoman/yeoman-test#main
npm test
34 changes: 34 additions & 0 deletions .github/workflows/lock-maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Package lock maintenance
on:
workflow_dispatch:

permissions:
contents: read

jobs:
build:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
name: Bump transitional dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'npm'
- name: Create commit
run: |
rm package-lock.json
npm install
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7.0.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Bump transitional dependencies'
committer: 'Github Actions <41898282+github-actions[bot]@users.noreply.github.com>'
author: 'Github Actions <41898282+github-actions[bot]@users.noreply.github.com>'
title: 'Bump transitional dependencies'
body: Transitional dependencies bump.
labels: 'dependencies'
23 changes: 23 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Close stale issues'
on:
schedule:
- cron: '0 0 * * *'

permissions:
contents: read

jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open with no activity. Remove stale label or comment or this will be closed'
days-before-stale: 30
days-before-close: 5
stale-issue-label: 'stale'
exempt-issue-labels: 'not stale'
Loading