@misk/cli
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -13,3 +13,3 @@ "use strict"; | ||
commands_1.prebuild(); | ||
utils_1.runCmd("cross-env NODE_ENV=production webpack"); | ||
utils_1.runCmd("npm run-script build"); | ||
return [2 /*return*/]; | ||
@@ -16,0 +16,0 @@ }); |
@@ -22,3 +22,3 @@ "use strict"; | ||
fs.writeFile(utils_1.Files.gitignore, templates_1.gitignore); | ||
fs.writeJson(utils_1.Files.package, templates_1.createPackage(miskTab.slug, pkg), utils_1.JsonOptions); | ||
fs.writeJson(utils_1.Files.package, templates_1.createPackage(miskTab.slug, miskTab.zipOnBuild, pkg), utils_1.JsonOptions); | ||
fs.writeJson(utils_1.Files.tsconfig, templates_1.createTsconfig(miskTab.outDir ? miskTab.outDir : "lib/web/_tab/" + miskTab.slug), utils_1.JsonOptions); | ||
@@ -25,0 +25,0 @@ fs.writeJson(utils_1.Files.tslint, templates_1.tslint, utils_1.JsonOptions); |
@@ -13,2 +13,3 @@ export * from "./generate"; | ||
version: string; | ||
zipOnBuild: boolean; | ||
} | ||
@@ -15,0 +16,0 @@ export declare enum Files { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var templates_1 = require("../templates"); | ||
exports.gitignore = ".git\n.DS_Store\n**/@misk/web\ncachedUrls\nlogs\n*.log\nnpm-debug.log*\ncoverage\nnode_modules\n.npm\npackage-lock.json\nyarn.lock\nbuild\ndist\nlib\n.hash\n.old_build_files\n\n" + templates_1.generatedByCLI + "\n"; | ||
exports.gitignore = ".git\n.DS_Store\n**/@misk/web\ncachedUrls\nlogs\n*.log\nnpm-debug.log*\ncoverage\nnode_modules\n.npm\npackage-lock.json\nyarn.lock\nbuild\ndist\nlib\n.hash\n.old_build_files\nprettier.config.js\ntsconfig.json\ntslint.json\nwebpack.config.js\n" + templates_1.generatedByCLI + "\n"; | ||
//# sourceMappingURL=gitignore.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const createPackage: (slug: string, pkg: any) => { | ||
export declare const createPackage: (slug: string, zipOnBuild: boolean, pkg: any) => { | ||
generated: string; | ||
@@ -3,0 +3,0 @@ prettier: { |
@@ -10,3 +10,3 @@ "use strict"; | ||
}; | ||
var scripts = function (slug) { return ({ | ||
var scripts = function (slug, zipOnBuild) { return ({ | ||
engines: { | ||
@@ -16,3 +16,5 @@ yarn: "YARN NO LONGER USED - use npm instead." | ||
scripts: { | ||
build: "npm run-script ci-build && npm run-script zip", | ||
build: zipOnBuild | ||
? "npm run-script ci-build && npm run-script zip" | ||
: "npm run-script ci-build", | ||
"ci-build": "npm run-script clean && npm run-script lib", | ||
@@ -26,3 +28,3 @@ clean: "rm -rf demo lib", | ||
test: "echo no test", | ||
zip: "tar --exclude='.DS_Store' --exclude='.old_build_files' --exclude='demo' --exclude='lib' --exclude='node_modules' --exclude='package-lock.json' --exclude='" + slug + ".tgz' -czvf " + slug + ".tgz ./" | ||
zip: "tar --exclude='.DS_Store' --exclude='.old_build_files' --exclude='demo' --exclude='lib' --exclude='node_modules' --exclude='package-lock.json' --exclude='" + slug + ".tgz' -czvf " + slug + ".tgz ./lib/" | ||
} | ||
@@ -36,3 +38,6 @@ }); }; | ||
}); }; | ||
exports.createPackage = function (slug, pkg) { return (tslib_1.__assign({ name: "misk-web-tab-" + slug, version: pkg.version }, header, scripts(slug), dependencies(pkg), devDependencies(pkg), templates_1.prettier, { generated: templates_1.generatedByCLI })); }; | ||
exports.createPackage = function (slug, zipOnBuild, pkg) { | ||
if (zipOnBuild === void 0) { zipOnBuild = false; } | ||
return (tslib_1.__assign({ name: "misk-web-tab-" + slug, version: pkg.version }, header, scripts(slug, zipOnBuild), dependencies(pkg), devDependencies(pkg), templates_1.prettier, { generated: templates_1.generatedByCLI })); | ||
}; | ||
//# sourceMappingURL=package.js.map |
{ | ||
"name": "@misk/cli", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"license": "SEE LICENSE IN https://github.com/square/misk-web", | ||
@@ -5,0 +5,0 @@ "description": "Misk-Web CLI Build Tool", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
44456
718