create-apollo-app
Advanced tools
Comparing version 0.0.10 to 0.0.11
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var creator_1 = require("@jsapp/creator"); | ||
var fs = require("fs"); | ||
var path = require("path"); | ||
require("source-map-support/register"); | ||
var templates_1 = require("./templates"); | ||
creator_1.default(templates_1.default, 'yarn create apollo-app', process.argv); | ||
var readFile = function (filePath) { | ||
return path.basename(filePath.relPath) === 'package.json' | ||
? creator_1.mergePkgJson(filePath, __dirname + '/../templates/presets/') | ||
: fs.readFileSync(path.join(filePath.rootPath, filePath.relPath), 'utf8'); | ||
}; | ||
creator_1.default(templates_1.default, readFile, 'yarn create apollo-app', process.argv); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var path = require("path"); | ||
var filesRoot = path.join(__dirname, '../templates'); | ||
var creator_1 = require("@jsapp/creator"); | ||
var templates = [ | ||
{ | ||
title: '@server: Apollo GraphQL Node Express server in TypeScript', | ||
files: ['server'], | ||
filesRoot: filesRoot | ||
files: creator_1.getRelFilePaths(__dirname + '/../templates/server') | ||
}, | ||
{ | ||
title: '@web: Apollo GraphQL React web frontend in TypeScript', | ||
filesRoot: filesRoot, | ||
files: ['web'] | ||
files: creator_1.getRelFilePaths(__dirname + '/../templates/web') | ||
} | ||
@@ -16,0 +13,0 @@ ]; |
{ | ||
"name": "create-apollo-app", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Apollo GraphQL apps creator", | ||
@@ -5,0 +5,0 @@ "author": "Victor Vlasenko <victor.vlasenko@sysgears.com>", |
{ | ||
"name": "<%name%>", | ||
"name": "{;name;}", | ||
"version": "0.1.0", | ||
"!presets": ["ts", "server", "graphql"], | ||
"private": true, | ||
@@ -16,4 +17,2 @@ "scripts": { | ||
"express": "^4.16.3", | ||
"graphql": "^0.13.2", | ||
"graphql-tools": "^3.0.2", | ||
"opn": "^5.3.0", | ||
@@ -25,20 +24,4 @@ "subscriptions-transport-ws": "^0.9.9" | ||
"@types/express": "^4.11.1", | ||
"@types/graphql": "^0.13.1", | ||
"@types/webpack-env": "^1.13.6", | ||
"@types/ws": "^5.1.1", | ||
"dotenv": "^5.0.0", | ||
"dotenv-expand": "^4.2.0", | ||
"graphql-tag": "^2.6.1", | ||
"prettier": "^1.12.1", | ||
"source-map-support": "^0.5.6", | ||
"spinjs": "^0.4.134", | ||
"ts-loader": "^2.3.7", | ||
"tslint": "^5.10.0", | ||
"tslint-config-prettier": "^1.5.0", | ||
"tslint-plugin-prettier": "^1.3.0", | ||
"typescript": "^2.8.3", | ||
"uglifyjs-webpack-plugin": "1.1.6", | ||
"webpack": "^3.12.0", | ||
"webpack-virtual-modules": "^0.1.10" | ||
"@types/ws": "^5.1.1" | ||
} | ||
} |
{ | ||
"name": "<%name%>", | ||
"name": "{;name;}", | ||
"version": "0.1.0", | ||
"private": true, | ||
"!presets": ["ts", "react", "graphql"], | ||
"scripts": { | ||
@@ -12,58 +13,4 @@ "start": "spin start", | ||
"dependencies": { | ||
"apollo-boost": "^0.1.6", | ||
"graphql": "^0.13.2", | ||
"raf": "^3.4.0", | ||
"react": "^16.4.0", | ||
"react-apollo": "^2.1.4", | ||
"react-dom": "^16.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/graphql": "^0.13.1", | ||
"@types/prop-types": "^15.5.3", | ||
"@types/react": "^16.3.14", | ||
"@types/react-dom": "^16.0.5", | ||
"@types/webpack-env": "^1.13.6", | ||
"autoprefixer": "^7.2.5", | ||
"css-loader": "^0.28.9", | ||
"dotenv": "^5.0.0", | ||
"dotenv-expand": "^4.2.0", | ||
"extract-text-webpack-plugin": "^3.0.2", | ||
"file-loader": "^1.1.6", | ||
"graphql-tag": "^2.6.1", | ||
"html-webpack-plugin": "^2.30.1", | ||
"less": "^3.0.2", | ||
"less-loader": "^4.1.0", | ||
"postcss-loader": "2.0.10", | ||
"prettier": "^1.12.1", | ||
"sass-loader": "7.0.1", | ||
"source-map-support": "^0.5.6", | ||
"spinjs": "^0.4.134", | ||
"style-loader": "0.19.1", | ||
"ts-loader": "^2.3.7", | ||
"tslint": "^5.10.0", | ||
"tslint-config-prettier": "^1.5.0", | ||
"tslint-plugin-prettier": "^1.3.0", | ||
"typescript": "^2.8.3", | ||
"uglifyjs-webpack-plugin": "1.1.6", | ||
"webpack": "^3.12.0", | ||
"webpack-dev-server": "^2.11.2", | ||
"webpack-manifest-plugin": "1.3.2", | ||
"webpack-virtual-modules": "^0.1.10" | ||
}, | ||
"resolutions": { | ||
"@types/react": "16.3.14" | ||
}, | ||
"browserslist": { | ||
"development": [ | ||
"last 2 chrome versions", | ||
"last 2 firefox versions", | ||
"last 2 edge versions" | ||
], | ||
"production": [ | ||
">1%", | ||
"last 4 versions", | ||
"Firefox ESR", | ||
"not ie < 11" | ||
] | ||
"apollo-boost": "^0.1.6" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
14172
32
313
1