New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

create-tauri-app

Package Overview
Dependencies
Maintainers
2
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-tauri-app - npm Package Compare versions

Comparing version 1.0.0-beta.2 to 1.0.0-beta.3

5

CHANGELOG.md
# Changelog
## \[1.0.0-beta.3]
- Added Angular CLI recipe.
- [489fad55](https://www.github.com/tauri-apps/tauri/commit/489fad55242b3489c7c551fdfdd031ebad2d9b9c) Angular create tauri app \[[#1934](https://www.github.com/tauri-apps/tauri/pull/1934)] ([#2203](https://www.github.com/tauri-apps/tauri/pull/2203)) on 2021-07-14
## \[1.0.0-beta.2]

@@ -4,0 +9,0 @@

77

dist/index.js

@@ -327,2 +327,77 @@ 'use strict';

const addAdditionalPackage = (packageManager, cwd, appName, packageName) => __awaiter(void 0, void 0, void 0, function* () {
const ngCommand = ['ng', 'add', packageName, '--skip-confirmation'];
if (packageManager === 'yarn') {
yield shell('yarn', ngCommand, {
cwd: `${cwd}/${appName}`
});
}
else {
yield shell('npm', ['run', ...ngCommand], {
cwd: `${cwd}/${appName}`
});
}
});
const ngcli = {
descriptiveName: {
name: 'Angular CLI (https://angular.io/cli)',
value: 'ng-cli'
},
shortName: 'ngcli',
extraNpmDependencies: [],
extraNpmDevDependencies: [],
configUpdate: ({ cfg }) => (Object.assign(Object.assign({}, cfg), { distDir: `../dist/${cfg.appName}`, devPath: 'http://localhost:4200' })),
extraQuestions: ({ ci }) => {
return [
{
type: 'confirm',
name: 'material',
message: 'Add Angular Material (https://material.angular.io/)?',
validate: (input) => {
return input.toLowerCase() === 'yes';
},
loop: false,
when: !ci
},
{
type: 'confirm',
name: 'eslint',
message: 'Add Angular ESLint (https://github.com/angular-eslint/angular-eslint)?',
validate: (input) => {
return input.toLowerCase() === 'yes';
},
loop: false,
when: !ci
}
];
},
preInit: ({ cwd, cfg, answers, packageManager }) => __awaiter(void 0, void 0, void 0, function* () {
// Angular CLI creates the folder for you
yield shell('npx', [
'-p',
'@angular/cli',
'ng',
'new',
`${cfg.appName}`,
`--package-manager=${packageManager}`
], {
cwd
});
if (answers) {
if (answers.material) {
yield addAdditionalPackage(packageManager, cwd, cfg.appName, '@angular/material');
}
if (answers.eslint) {
yield addAdditionalPackage(packageManager, cwd, cfg.appName, '@angular-eslint/schematics');
}
}
}),
postInit: ({ cwd }) => __awaiter(void 0, void 0, void 0, function* () {
console.log(`
Your installation completed. Change directory to \`${cwd}\` and happy coding.
`);
return yield Promise.resolve();
})
};
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy

@@ -468,3 +543,3 @@ // SPDX-License-Identifier: Apache-2.0

});
const allRecipes = [vanillajs, cra, vite, vuecli];
const allRecipes = [vanillajs, cra, vite, vuecli, ngcli];
const recipeByShortName = (name) => allRecipes.find((r) => r.shortName === name);

@@ -471,0 +546,0 @@ const recipeByDescriptiveName = (name) => allRecipes.find((r) => r.descriptiveName.value === name);

6

package.json
{
"name": "create-tauri-app",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"description": "Jump right into a Tauri App!",

@@ -30,4 +30,4 @@ "bin": {

"lint:lockfile": "lockfile-lint --path yarn.lock --type yarn --validate-https --allowed-hosts npm yarn",
"format": "prettier --write --end-of-line=auto \"./**/*.{js,jsx,ts,tsx,html,css,json}\" --ignore-path .gitignore",
"format:check": "prettier --check --end-of-line=auto \"./**/*.{js,jsx,ts,tsx,html,css,json}\" --ignore-path .gitignore",
"format": "prettier --write --end-of-line=auto \"./**/*.{cjs,js,jsx,ts,tsx,html,css,json}\" --ignore-path .gitignore",
"format:check": "prettier --check --end-of-line=auto \"./**/*.{cjs,js,jsx,ts,tsx,html,css,json}\" --ignore-path .gitignore",
"test": "jest --runInBand"

@@ -34,0 +34,0 @@ },

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