Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-ts-np

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-ts-np - npm Package Compare versions

Comparing version 0.0.23 to 0.0.24

generators/app/templates/static/gulpfile.js

84

generators/app/templates/render/package.json
{
"name": "<%= packageName %>",
"version": "0.0.1",
"description": "<%= packageDescription %>",
"main": "dist/index.js",
"scripts": {
"prepublishOnly": "echo 'Executing pre-publish stuffs..' && npm run lint && npm run build",
"build": "./node_modules/.bin/tsc",
"build-watch": "./node_modules/.bin/tsc -w",
"lint": "./node_modules/.bin/prettier --use-tabs --tab-width 4 --write src/**/* && ./node_modules/.bin/tslint -c ./tslint.json -p ./tsconfig.json -t stylish --fix ./src/**/*",
"lint-noFix": "./node_modules/.bin/prettier --use-tabs --tab-width 4 src/**/* && ./node_modules/.bin/tslint -c ./tslint.json -p ./tsconfig.json -t stylish ./src/**/*",
"test": "./node_modules/.bin/cross-env NODE_ENV=test ./node_modules/.bin/mocha tests/ --compilers ts:ts-node/register,tsx:ts-node/register --recursive --reporter spec",
"test-watch": "./node_modules/.bin/cross-env NODE_ENV=test ./node_modules/.bin/mocha tests/ --compilers ts:ts-node/register,tsx:ts-node/register --recursive --reporter spec --watch",
"preCommit-msg": "echo 'Precommit checks ...' && exit 0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/<%= githubUsername %>/<%= githubRepository %>.git"
},
"author": "Name <<%= email %>> (https://twitter.com/<%= twitterUsername %>)",
"license": "MIT",
"bugs": {
"url": "https://github.com/<%= githubUsername %>/<%= githubRepository %>/issues"
},
"homepage": "https://github.com/<%= githubUsername %>/<%= githubRepository %>#readme",
"dependencies": {},
"devDependencies": {
"@types/chai": "^4.0.1",
"@types/mocha": "^2.2.41",
"@types/node": "^8.0.5",
"chai": "^4.1.0",
"concurrently": "^3.5.0",
"cross-env": "^5.0.1",
"mocha": "^3.4.2",
"pre-commit": "^1.2.2",
"prettier": "^1.5.3",
"ts-node": "^3.3.0",
"tslint": "^5.5.0",
"typescript": "^2.4.2"
},
"pre-commit": ["preCommit-msg", "lint-noFix"]
"name": "<%= packageName %>",
"version": "0.0.1",
"description": "<%= packageDescription %>",
"main": "dist/index.js",
"scripts": {
"prepublishOnly": "echo 'Executing pre-publish stuffs..' && npm run lint && npm run build",
"build": "npm run clean-build && npm run lint && ./node_modules/.bin/tsc && npm run copy-json",
"lint": "./node_modules/.bin/prettier --use-tabs --tab-width 4 --write src/**/* && ./node_modules/.bin/tslint -c ./tslint.json -p ./tsconfig.json -t stylish --fix ./src/**/*",
"lint-noFix": "./node_modules/.bin/prettier --use-tabs --tab-width 4 src/**/* && ./node_modules/.bin/tslint -c ./tslint.json -p ./tsconfig.json -t stylish ./src/**/*",
"test": "./node_modules/.bin/cross-env NODE_ENV=test ./node_modules/.bin/mocha tests/ --compilers ts:ts-node/register,tsx:ts-node/register --recursive --reporter spec",
"test-watch": "./node_modules/.bin/cross-env NODE_ENV=test ./node_modules/.bin/mocha tests/ --compilers ts:ts-node/register,tsx:ts-node/register --recursive --reporter spec --watch",
"preCommit-msg": "echo 'Precommit checks ...' && exit 0",
"copy-json": "./node_modules/.bin/gulp copy-json",
"clean-build": "./node_modules/.bin/gulp clean-build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/<%= githubUsername %>/<%= githubRepository %>.git"
},
"author": "Name <<%= email %>> (https://twitter.com/<%= twitterUsername %>)",
"license": "MIT",
"bugs": {
"url": "https://github.com/<%= githubUsername %>/<%= githubRepository %>/issues"
},
"homepage": "https://github.com/<%= githubUsername %>/<%= githubRepository %>#readme",
"dependencies": {},
"devDependencies": {
"@types/chai": "^4.0.1",
"@types/mocha": "^2.2.41",
"@types/node": "^8.0.5",
"chai": "^4.1.0",
"concurrently": "^3.5.0",
"cross-env": "^5.0.1",
"mocha": "^3.4.2",
"pre-commit": "^1.2.2",
"prettier": "^1.5.3",
"ts-node": "^3.3.0",
"tslint": "^5.5.0",
"typescript": "^2.4.2",
"gulp": "^3.9.1",
"gulp-cli": "^1.4.0",
"del": "^3.0.0"
},
"pre-commit": ["preCommit-msg", "lint-noFix"]
}
# <%= packageName %>
<%= packageDescription %>
[![npm](https://img.shields.io/npm/v/<%= packageName %>.svg)]()
[![Travis](https://img.shields.io/travis/<%= githubUsername %>/<%= githubRepository %>.svg)]()
[![npm](https://img.shields.io/npm/v/<%= packageName %>.svg)](https://www.npmjs.com/package/<%= packageName %>)
[![Travis](https://img.shields.io/travis/<%= githubUsername %>/<%= githubRepository %>.svg)](https://travis-ci.org/<%= githubUsername %>/<%= githubRepository %>)
[![styled with prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

@@ -7,0 +7,0 @@ [![npm](https://img.shields.io/npm/dt/<%= packageName %>.svg)]()

{
"name": "generator-ts-np",
"version": "0.0.23",
"description": "Yeoman Generator For Building Node Packages With Typescript",
"homepage": "https://github.com/vajahath/generator-ts-np#readme",
"author": "Vajahath Ahmed <vajuoff.1@gmail.com> (https://twitter.com/vajahath7)",
"files": ["generators"],
"main": "index.js",
"keywords": ["yeoman-generator", "typescript", "yeoman-generator"],
"devDependencies": {
"yeoman-test": "^1.6.0",
"yeoman-assert": "^3.0.0",
"coveralls": "^2.13.1",
"nsp": "^2.6.3",
"eslint": "^4.1.0",
"eslint-config-xo-space": "^0.16.0",
"jest": "^19.0.2",
"jest-cli": "^20.0.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1 && jest",
"prepublish": "nsp check",
"pretest": "eslint . --fix"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vajahath/generator-ts-np.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/vajahath/generator-ts-np/issues"
},
"dependencies": {
"yeoman-generator": "^1.0.0",
"chalk": "^1.1.3",
"yosay": "^2.0.0"
},
"jest": {
"testEnvironment": "node"
},
"eslintConfig": {
"extends": "xo-space",
"env": {
"jest": true,
"node": true
}
}
"name": "generator-ts-np",
"version": "0.0.24",
"description": "Yeoman Generator For Building Node Packages With Typescript",
"homepage": "https://github.com/vajahath/generator-ts-np#readme",
"author": "Vajahath Ahmed <vajuoff.1@gmail.com> (https://twitter.com/vajahath7)",
"files": ["generators"],
"main": "index.js",
"keywords": ["yeoman-generator", "typescript", "yeoman-generator"],
"devDependencies": {
"yeoman-test": "^1.6.0",
"yeoman-assert": "^3.0.0",
"coveralls": "^2.13.1",
"nsp": "^2.6.3",
"eslint": "^4.1.0",
"eslint-config-xo-space": "^0.16.0",
"jest": "^19.0.2",
"jest-cli": "^20.0.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1 && jest",
"prepublish": "nsp check",
"pretest": "eslint . --fix"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vajahath/generator-ts-np.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/vajahath/generator-ts-np/issues"
},
"dependencies": {
"yeoman-generator": "^1.0.0",
"chalk": "^1.1.3",
"yosay": "^2.0.0"
},
"jest": {
"testEnvironment": "node"
},
"eslintConfig": {
"extends": "xo-space",
"env": {
"jest": true,
"node": true
}
}
}

@@ -81,4 +81,3 @@ # generator-ts-np

To know really what happens under the hood, refer `scripts` section in `package.json` at your package root.
- `npm run build`: compiles content of `src/` into `dist/` folder
- `npm run build-watch`: invokes `npm run build` under `watch` mode => means, it looks for file changes and if any, re-builds.
- `npm run build`: compiles content of `src/` into `dist/` folder with some additional tasks like copying non-ts files cleaning dir etc.
- `npm run lint`: lints and styles your code with [prettier](https://www.npmjs.com/package/prettier) and [tslint](https://github.com/palantir/tslint) and fixes fixable issues.

@@ -88,2 +87,3 @@ - `npm run lint-noFix`: invokes `npm lint` without fix option => means if any issues found, it just notifies with out fixing it.

- `npm run test-watch`: invokes `npm test` but in `watch` mode => means, if any file changes, it automatically re-run tests.
- `npm run clean-build`: clear contents of `dist/` folder.

@@ -93,2 +93,3 @@ ### Additional stuffs

- But don't worry, you can still force a commit by telling git to skip the pre-commit hooks by simply committing using `--no-verify`.
- Your package has a pre-publish hook on `npm run lint` and `npm run build` means you wont miss to `build` before publishing to npm.

@@ -95,0 +96,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc