vajahath / generator-ts-np Goto Github PK
View Code? Open in Web Editor NEWYeoman Generator For Building Node Packages With Typescript.
Home Page: https://www.npmjs.com/package/generator-ts-np
License: MIT License
Yeoman Generator For Building Node Packages With Typescript.
Home Page: https://www.npmjs.com/package/generator-ts-np
License: MIT License
Some links on badges are broken
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
Most of the works are complete by #34.
Current updates are tracked in npm-pack-test
branch.
Remaining checklist
revamp
branchfiles
in package.jsonfiles
in package.jsonnpm pack
testAdd documentation for definition file
As per this comment on npm repo, we don't have to specify ./node_modules/.bin/XX
stuff.
npm puts it for us.
The current config makes Windows builds to fail.
We may have to use gulp for this
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.
settings
property (#1527) (b515e47)Keyword
(#1487) (77a1caa)ban-ts-comment
rule (#1361) (2a83d13)prefer-ast-types-enum
(#1508) (c3d0a3a)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
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
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!
any way to run yarn upgrade-interactive
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).
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' }
use declaration: true
to generate .d.ts
files automatically.
more
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.
yeoman-test > sinon > @sinonjs/formatio > [email protected]: This package has been deprecated in favour of @sinonjs/samsam
Cant build
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.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Should dist/
be ignored from git?
The directory is actually buildable with npm run build
copy all other assets to dist
Don't need to push sourcemaps to npm.
add it to .npmignore
add .prettierignore
and .prettierrc
confs
[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'.
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.
The new version differs by 3 commits.
8ac4be5
8.6.2
8db216c
Downgrade yn
due to node engine (#942)
b90754e
Merge process.env
in tests for CI
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
the author
field in package.json
found to be skipped in a scaffold-ed structure. Verify it and fix it.
lts/*
from their docs.
The generated code should be already linted and err free..
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'
}
warning gulp > [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
Before npm publish
ing do lint, test, and build processes.
clean the dir before building
dirty-chai expected to help the linting issues with .spec.ts
files..
also extent the linting to ./tests/
too
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)
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
Let developer see what task is happening with each script.
use some colors to beautify it..
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)
since media dir is ignored if the package needs some images, one should either
add this to docs.
add an .editorconfig
file.
It doesn't have an auto-fixer. so consider turning it off.
[Windows] Testing in the D:\
drive caused the generator to fail caused by the location change on yo-rc-global-json file. May be this is interfering with the gulp-rename
and registerTransformStream
method.
when installing with tarballs/ nom link
, yo
not detecting this generator.
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)
Also check for internal links
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.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
warning "jest > jest-cli > jest-config > [email protected]" has unmet peer dependency "jest-haste-map@^24.0.0".
warning "jest > jest-cli > @jest/core > [email protected]" has unmet peer dependency "jest-resolve@^24.1.0".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.