Git Product home page Git Product logo

generator-ts-np's People

Contributors

dependabot[bot] avatar greenkeeper[bot] avatar vajahath avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mshima

generator-ts-np's Issues

gulp upgrade issues

warning gulp > vinyl-fs > [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
warning gulp > vinyl-fs > glob-stream > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gulp > vinyl-fs > glob-stream > glob > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gulp > vinyl-fs > glob-watcher > gaze > globule > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gulp > vinyl-fs > glob-watcher > gaze > globule > glob > [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning gulp > vinyl-fs > glob-watcher > gaze > globule > glob > [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js

ts-np v3 release plan

Most of the works are complete by #34.

Current updates are tracked in npm-pack-test branch.

Remaining checklist

  • (base) adopt lint rules from google
  • (base) greenkeeper
  • (hk) greenkeeper
  • (gen) greenkeeper
  • (global) greenkeeper
  • (base) possibility if no-implicit-any tsconfig
  • (gen) generator exit msg
  • (gen) prompt msg word wrapping
  • (global) del revamp branch
  • (base) add files in package.json
  • (gen) add files in package.json
  • beta release
  • (global) npm pack test
  • test with writing actual packages
  • update readme on auto deployment
  • test readme links

style edits/ typos

  • (base/readme) remove greenkeeper badge from readme
  • (base/readme) version punch badge is broken

An in-range update of @typescript-eslint/parser is breaking the build 🚨

The devDependency @typescript-eslint/parser was updated from 2.17.0 to 2.18.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@typescript-eslint/parser is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ Gen (ubuntu-latest|node-13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (ubuntu-latest|node-12): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Gen (ubuntu-latest|node-10): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Gen (windows-latest|node-13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (windows-latest|node-12): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (windows-latest|node-10): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (macos-latest|node-13): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Gen (macos-latest|node-12): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Gen (macos-latest|node-10): There are 1 failures, 0 warnings, and 0 notices.
  • βœ… HK (ubuntu-latest|node-13): null
  • βœ… HK (windows-latest|node-13): null
  • βœ… Base (ubuntu-latest|node-13): null
  • βœ… Base (ubuntu-latest|node-12): null
  • βœ… Base (ubuntu-latest|node-10): null
  • βœ… Base (windows-latest|node-13): null
  • βœ… Base (windows-latest|node-12): null
  • βœ… Base (windows-latest|node-10): null

Release Notes for v2.18.0

2.18.0 (2020-01-27)

Bug Fixes

  • eslint-plugin: [explicit-module-boundary-types] false positive for returned fns (#1490) (5562ad5)
  • improve token types and add missing type guards (#1497) (ce41d7d)
  • eslint-plugin: [naming-convention] fix filter option (#1482) (718cd88)
  • eslint-plugin: fix property access on undefined error (#1507) (d89e8e8)
  • experimental-utils: widen type of settings property (#1527) (b515e47)
  • typescript-estree: error on unexpected jsdoc nodes (#1525) (c8dfac3)
  • typescript-estree: fix identifier tokens typed as Keyword (#1487) (77a1caa)

Features

  • eslint-plugin: add comma-spacing (#1495) (1fd86be)
  • eslint-plugin: add new rule prefer-as-const (#1431) (420db96)
  • eslint-plugin: create ban-ts-comment rule (#1361) (2a83d13)
  • eslint-plugin-internal: add prefer-ast-types-enum (#1508) (c3d0a3a)
  • experimental-utils: make RuleMetaData.docs optional (#1462) (cde97ac)
  • parser: improve scope-analysis types (#1481) (4a727fa)
Commits

The new version differs by 30 commits.

  • b835ec2 chore: publish v2.18.0
  • 367b18f docs(eslint-plugin): add script to generate the readme tables (#1524)
  • 03221d2 test: fix vscode launch configuration for windows (#1523)
  • f991764 chore(eslint-plugin): refactor explicit return type rules to share code (#1493)
  • c8dfac3 fix(typescript-estree): error on unexpected jsdoc nodes (#1525)
  • 6d1d2a2 test: fix coverage reports from codecov (#1528)
  • b515e47 fix(experimental-utils): widen type of settings property (#1527)
  • 67784d6 docs: extra 'a' in CONTRIBUTING.md (#1518)
  • afa7900 chore: enable prefer-ast-types-enum internal rule (#1514)
  • c3d0a3a feat(eslint-plugin-internal): add prefer-ast-types-enum (#1508)
  • 718cd88 fix(eslint-plugin): [naming-convention] fix filter option (#1482)
  • 802e347 chore(eslint-plugin): use getFixturesRootDir in tests (#1506)
  • 9ca65dc chore: update istanbul-reports to make tests quiet (#1509)
  • d89e8e8 fix(eslint-plugin): fix property access on undefined error (#1507)
  • 06731e7 test(eslint-plugin): cleanup no-use-before-define tests (#1505)

There are 30 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

chalk types

warning @types/[email protected]: This is a stub types definition for chalk (https://github.com/chalk/chalk). chalk provides its own type definitions, so you don't need @types/chalk installed!

jest upgrade

warning jest > jest-cli > prompts > [email protected]: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).

Generator fails when attempting to make call to GitHub API's.

Testing out your generator here, but it fails when the calling GitHub API's... the user I operate under does not get GitHub account and I am underuse why the generator needs to call out to Github; especially if I'm attempting to make a private package on non-public repository.

What is your npm scope?  (without @)
  (If you want to publish at global scope, leave this field
  empty(or empty string ''). It is always nice to
  publish packages under a scope. Learn more about
  scopes here: https://docs.npmjs.com/misc/scope)
{ RequestError: connect ETIMEDOUT 192.30.253.116:443
    at ClientRequest.req.once.err (/Users/netsuite/.nvm/versions/node/v10.17.0/lib/node_modules/generator-ts-np/node_modules/gh-got/node_modules/got/index.js:73:21)
    at Object.onceWrapper (events.js:286:20)
    at ClientRequest.emit (events.js:198:13)
    at TLSSocket.socketErrorListener (_http_client.js:392:9)
    at TLSSocket.emit (events.js:198:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  code: 'ETIMEDOUT',
  message: 'connect ETIMEDOUT 192.30.253.116:443',
  host: 'api.github.com',
  hostname: 'api.github.com',
  method: 'GET',
  path: '/search/users?q=XXXXXXXXXXXXXXXXXXXXXXXX%20in%3Aemail' }

update packages

PS D:\vaju\sqlify-ts> yarn outdated
yarn outdated v1.3.2
info Color legend :
 "<red>"    : Major Update backward-incompatible updates
 "<yellow>" : Minor Update backward-compatible features
 "<green>"  : Patch Update backward-compatible bug fixes
Package     Current Wanted Latest Package Type    URL
@types/node 8.5.9   8.5.9  9.4.0  devDependencies https://www.github.com/DefinitelyTyped/DefinitelyTyped.git
gulp-cli    1.4.0   1.4.0  2.0.1  devDependencies http://gulpjs.com
mocha       3.5.3   3.5.3  5.0.0  devDependencies https://mochajs.org
ts-node     3.3.0   3.3.0  4.1.0  devDependencies https://github.com/TypeStrong/ts-node
Done in 2.11s.

An in-range update of @types/node is breaking the build 🚨

The devDependency @types/node was updated from 13.1.6 to 13.1.7.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@types/node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ Base (ubuntu-latest|node-13): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Base (ubuntu-latest|node-12): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Base (ubuntu-latest|node-10): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Base (windows-latest|node-13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Base (windows-latest|node-12): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Base (windows-latest|node-10): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Base (macos-latest|node-13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Base (macos-latest|node-12): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Base (macos-latest|node-10): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (ubuntu-latest|node-13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (ubuntu-latest|node-12): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Gen (ubuntu-latest|node-10): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Gen (windows-latest|node-13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (windows-latest|node-12): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (windows-latest|node-10): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (macos-latest|node-13): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Gen (macos-latest|node-12): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (macos-latest|node-10): There are 2 failures, 0 warnings, and 0 notices.
  • βœ… HK (ubuntu-latest|node-13): null
  • βœ… HK (windows-latest|node-13): null
  • βœ… HK (macos-latest|node-13): null

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

test failing

[18:53:12] Starting 'compile-code'...
/home/devc270/test-1/node_modules/@types/inquirer/index.d.ts(177,57): error TS2694: Namespace '"readline"' has no exported member 'Interface'.
/home/devc270/test-1/node_modules/@types/inquirer/index.d.ts(202,26): error TS2694: Namespace '"readline"' has no exported member 'Interface'.
/home/devc270/test-1/node_modules/@types/yeoman-generator/index.d.ts(21,46): error TS2503: Cannot find namespace 'Rx'.

An in-range update of ts-node is breaking the build 🚨

The devDependency ts-node was updated from 8.6.1 to 8.6.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

ts-node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • βœ… Base (ubuntu-latest|node-13): null
  • βœ… Base (ubuntu-latest|node-12): null
  • βœ… Base (ubuntu-latest|node-10): null
  • βœ… Base (windows-latest|node-13): null
  • βœ… Base (windows-latest|node-12): null
  • βœ… Base (windows-latest|node-10): null
  • βœ… Base (macos-latest|node-13): null
  • βœ… Base (macos-latest|node-12): null
  • βœ… Base (macos-latest|node-10): null
  • βœ… HK (ubuntu-latest|node-13): null
  • βœ… HK (windows-latest|node-13): null
  • βœ… HK (macos-latest|node-13): null
  • ❌ Gen (ubuntu-latest|node-13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (ubuntu-latest|node-12): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Gen (ubuntu-latest|node-10): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Gen (windows-latest|node-13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (windows-latest|node-12): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (windows-latest|node-10): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (macos-latest|node-13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (macos-latest|node-12): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Gen (macos-latest|node-10): There are 2 failures, 0 warnings, and 0 notices.

Release Notes for FIx `yn` Dependency

Fixed

  • Downgrade yn due to node engine (#942)
Commits

The new version differs by 3 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

generator errors when yo.rc.json file is missing

Node 13/ Windows 10

The generator fails with the following error when .yo.rc.json is missing in the destination dir.

related #38

? What is your Twitter username? (for scaffolding README)
D:\Projects\generator-ts-np\generator\node_modules\mkdirp\index.js:90
                    throw err0;
                    ^

Error: EINVAL: invalid argument, mkdir 'D:\Projects\testtest\C:\Users\hivaj'
    at Object.mkdirSync (fs.js:845:3)
    at Function.sync (D:\Projects\generator-ts-np\generator\node_modules\mkdirp\index.js:71:13)
    at write (D:\Projects\generator-ts-np\generator\node_modules\mem-fs-editor\lib\actions\commit.js:12:12)
    at DestroyableTransform._transform (D:\Projects\generator-ts-np\generator\node_modules\mem-fs-editor\lib\actions\commit.js:44:7)
    at DestroyableTransform.Transform._read (D:\Projects\generator-ts-np\generator\node_modules\readable-stream\lib\_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (D:\Projects\generator-ts-np\generator\node_modules\readable-stream\lib\_stream_transform.js:172:83)
    at doWrite (D:\Projects\generator-ts-np\generator\node_modules\readable-stream\lib\_stream_writable.js:428:64)
    at writeOrBuffer (D:\Projects\generator-ts-np\generator\node_modules\readable-stream\lib\_stream_writable.js:417:5)
    at DestroyableTransform.Writable.write (D:\Projects\generator-ts-np\generator\node_modules\readable-stream\lib\_stream_writable.js:334:11)
    at DestroyableTransform.ondata (D:\Projects\generator-ts-np\generator\node_modules\readable-stream\lib\_stream_readable.js:619:20) {
  errno: -4071,
  syscall: 'mkdir',
  code: 'EINVAL',
  path: 'D:\\Projects\\testtest\\C:\\Users\\hivaj'
}

gulp-util

warning gulp > [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5

Cmd and PowerShell does not support emojis. Add different visual effect for such env

In short the following command prompt effect of not showing emojis is unpleasant. Add a workaround.

C:\Users\hivaj>yo ts-np

 [?][?] TS-NP-GENERATOR [?][?]
 =====================
 For generating Node.js packages with TypeScript.

 Asking a few questions for generating the base structure.
 If you have any doubts,
 see https://tinyurl.com/szponxx

? What is your npm package name? (without @scope) (hivaj)

use prettier single quote

While linting tell prettier to use single quote.
it will improve speed.
Why?
Now
[single OR double quote] ------prettier---> double quote -----tslint-------> single quote

Proposed
[single OR double quote] ------prettier---> single quote -----tslint-------> single quote

NodeError: write after end

Causing critical issue in v3.1.0.
Hence it is deprecated and changed the tag.

Issue details. This happens in the writing phase.

events.js:298
      throw er; // Unhandled 'error' event
      ^

NodeError: write after end
    at writeAfterEnd (/home/qbuser/.nvm/versions/node/v13.6.0/lib/node_modules/generator-ts-np/node_modules/readable-stream/lib/_stream_writable.js:261:12)
    at Duplexify.Writable.write (/home/qbuser/.nvm/versions/node/v13.6.0/lib/node_modules/generator-ts-np/node_modules/readable-stream/lib/_stream_writable.js:305:21)
    at DestroyableTransform.ondata (/home/qbuser/.nvm/versions/node/v13.6.0/lib/node_modules/generator-ts-np/node_modules/readable-stream/lib/_stream_readable.js:681:20)

better docs on media

since media dir is ignored if the package needs some images, one should either

  • de-ignore or
  • make another dir to store imgs. [recommended]

add this to docs.

Maximum call stack size exceeded (Node 8: )

Not every time, but sometimes this appears. (Widows 10/Node 8).

This is happening first time when using this generator in an empty dir. Also found if the dir contains .yo.rc.json, no errors.

path.js:33
function normalizeStringWin32(path, allowAboveRoot) {
                             ^

RangeError: Maximum call stack size exceeded
    at normalizeStringWin32 (path.js:33:30)
    at Object.resolve (path.js:328:20)
    at sync (D:\Projects\generator-ts-np\generator\node_modules\mkdirp\index.js:68:14)
    at sync (D:\Projects\generator-ts-np\generator\node_modules\mkdirp\index.js:77:24)
    at sync (D:\Projects\generator-ts-np\generator\node_modules\mkdirp\index.js:78:17)
    at sync (D:\Projects\generator-ts-np\generator\node_modules\mkdirp\index.js:78:17)
    at sync (D:\Projects\generator-ts-np\generator\node_modules\mkdirp\index.js:78:17)
    at sync (D:\Projects\generator-ts-np\generator\node_modules\mkdirp\index.js:78:17)
    at sync (D:\Projects\generator-ts-np\generator\node_modules\mkdirp\index.js:78:17)
    at sync (D:\Projects\generator-ts-np\generator\node_modules\mkdirp\index.js:78:17)

An in-range update of @types/node is breaking the build 🚨

The devDependency @types/node was updated from 13.5.1 to 13.5.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@types/node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ Gen (ubuntu-latest|node-13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (ubuntu-latest|node-12): There are 1 failures, 0 warnings, and 0 notices.
  • ❌ Gen (ubuntu-latest|node-10): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (windows-latest|node-13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (windows-latest|node-12): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (windows-latest|node-10): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (macos-latest|node-13): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (macos-latest|node-12): There are 2 failures, 0 warnings, and 0 notices.
  • ❌ Gen (macos-latest|node-10): There are 2 failures, 0 warnings, and 0 notices.
  • βœ… HK (ubuntu-latest|node-13): null
  • βœ… HK (windows-latest|node-13): null
  • βœ… Base (ubuntu-latest|node-13): null
  • βœ… Base (ubuntu-latest|node-12): null
  • βœ… Base (ubuntu-latest|node-10): null
  • βœ… Base (windows-latest|node-13): null
  • βœ… Base (windows-latest|node-12): null
  • βœ… Base (windows-latest|node-10): null

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.