ts-creator
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "ts-creator", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A code generator to generate TypeScript code generator from TypeScript code", | ||
"main": "src/index.ts", | ||
"scripts": { | ||
"build": "webpack --config webpack.config.js", | ||
"test": "webpack --config webpack.config.test.js && node ./dist/main.js", | ||
"build": "tsc -p ./tsconfig.json", | ||
"test": "tsc -p ./tsconfig.test.json && node ./dist/tests/index.js", | ||
"lint": "prettier --config ./prettier.json --list-different ./src/**/* ./tests/**/*", | ||
@@ -18,7 +18,5 @@ "prettier": "prettier --config ./prettier.json --write ./src/**/* ./tests/**/*" | ||
"prettier": "^1.15.3", | ||
"ts-loader": "^5.3.3", | ||
"typescript": "^3.2.2", | ||
"webpack": "^4.28.4", | ||
"webpack-cli": "^3.2.1" | ||
} | ||
} |
@@ -14,7 +14,5 @@ # ts-creator | ||
```ts | ||
function foo(bar: number): number { | ||
return bar + 1 | ||
} | ||
``` | ||
@@ -67,12 +65,18 @@ | ||
```ts | ||
function foo(bar: number): number { | ||
return bar + 1; | ||
} | ||
``` | ||
## How to use it: | ||
```ts | ||
import creator from 'ts-creator' | ||
const generatedFactoryCode = creator(`const foo = "your code here"`) | ||
``` | ||
### TODO: | ||
## TODO: | ||
- [ ] JSDoc | ||
- [ ] Jsx |
import * as ts from 'typescript' | ||
import prettier from 'prettier' | ||
import * as prettier from 'prettier' | ||
import { | ||
@@ -10,3 +10,3 @@ createTsCall, | ||
} from './helper' | ||
import defaultPrettierOptions from '../prettier.json' | ||
import * as defaultPrettierOptions from '../prettier.json' | ||
@@ -13,0 +13,0 @@ interface QuestionOrExclamation { |
@@ -1,2 +0,2 @@ | ||
import fs from 'fs' | ||
import * as fs from 'fs' | ||
import creator from '../src' | ||
@@ -3,0 +3,0 @@ |
@@ -5,10 +5,14 @@ { | ||
"strict": true, | ||
"noImplicitReturns": true, | ||
"forceConsistentCasingInFileNames": false, | ||
"module": "esnext", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"target": "esnext", | ||
"allowSyntheticDefaultImports": true, | ||
"resolveJsonModule": true | ||
} | ||
"target": "es5", | ||
"resolveJsonModule": true, | ||
"declaration": true, | ||
"outDir": "./dist", | ||
"declarationDir": "./dist/types" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"tests" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5
81
0
106782
12
1273
- Removedts-loader@^5.3.3
- Removedwebpack@^4.28.4
- Removedts-loader@5.4.5(transitive)