jokio / jok-cli Goto Github PK
View Code? Open in Web Editor NEWπ CLI tool for code generation to speed up development process
π CLI tool for code generation to speed up development process
reproduction steps:
null
s will be generated for Mutation/Subscription interfaces and code wont build.
master
branch failed. π¨I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. Iβm sure you can resolve this πͺ.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here is some links that can help you:
If those donβt help, or if this issue is reporting something you think isnβt right, you can always ask the humans behind semantic-release.
An npm token must be created and set in the NPM_TOKEN
environment variable on your CI environment.
Please make sure to create an npm token and to set it in the NPM_TOKEN
environment variable on your CI environment. The token must allow to publish to the registry https://registry.npmjs.org/
.
Good luck with your project β¨
Your semantic-release bot π¦π
scripts/tsconfig-register.js
const tsConfig = require('../tsconfig.json');
const tsConfigPaths = require('tsconfig-paths');
const baseUrl = tsConfig.compilerOptions.outDir;
tsConfigPaths.register({
baseUrl,
paths: tsConfig.compilerOptions.paths || [],
});
package.json
"scripts": {
"start": "node -r ./scripts/tsconfig-register.js -r dotenv/config dist"
},
"jest": {
"moduleNameMapper": {
"@modules/(.*)": "<rootDir>/src/@modules/$1",
"@/(.*)": "<rootDir>/src/$1"
},
}
yarn add tsconfig-paths
for now it generates same names as we have in queries, it's better to have different ones for watchQueries
node ./node_modules/jokio/dist/_test.js
test can be run using jest
and jest --coverage
command, there is no need of having jokio test script
its possible to get fragment name from fragment and it will help to avoid providing fragmentName every time, it will be optional prop and necessary to pass only when there will be multiple fragments
add scripts to package.json in templates
"cleanup": "rm -fr dist/",
"prepublishOnly": "yarn build",
"postpack": "yarn cleanup"
space problem between firstName and lastName
PS C:\test\jok-test> npx jok init testapp --graphql
npm ERR! code ENOLOCAL
npm ERR! Could not install from "LastName\AppData\Roaming\npm-cache\_npx\7976" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\FirstName LastName\AppData\Roaming\npm-cache\_logs\2018-11-19T17_38_28_617Z-debug.log
Install for jok@latest failed with code 1
PS C:\test\jok-test> npx jok init testapp --graphql
Error: EPERM: operation not permitted, mkdir 'C:\Users\FirstName'
TypeError: Cannot read property 'get' of undefined
at errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:205:18)
at C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js:78:20
at cb (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:228:22)
at C:\Program Files\nodejs\node_modules\npm\lib\npm.js:266:24
at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:83:7
at Array.forEach (<anonymous>)
at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:82:13
at f (C:\Program Files\nodejs\node_modules\npm\node_modules\once\once.js:25:25)
at afterExtras (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:173:20)
at C:\Program Files\nodejs\node_modules\npm\node_modules\mkdirp\index.js:47:53
C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:205
if (npm.config.get('json')) {
^
TypeError: Cannot read property 'get' of undefined
at process.errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:205:18)
at emitOne (events.js:116:13)
at process.emit (events.js:211:7)
at process._fatalException (bootstrap_node.js:391:26)
Install for jok@latest failed with code 7
Its necessary to return nullable types as the result of query / mutation / subscription, when it will be necessary based on remote schema
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.