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

bili-sapp-cli

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bili-sapp-cli - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

.eslintrc.js

18

index.js
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const program = require('commander');
const download = require('download');
const ora = require('ora');
const express = require('express');
const copyDir = require('copy-dir');
const info = require('./package.json');
const fs = require('fs');
const path = require('path');
const projectTpl = 'https://mall.bilibili.com/small-app-template/template.zip';
const express = require('express');
const copyDir = require('copy-dir');

@@ -25,5 +25,5 @@ const APP_TEMPLATE = path.join(__dirname, 'app-template');

.description('使用模板创建新项目')
.action(function (projectName) {
.action(projectName => {
const spinner = ora('Downloading template ...').start();
download(projectTpl, projectName, {extract: true}).then(function () {
download(projectTpl, projectName, { extract: true }).then(() => {
copyApp('sapprc.json', path.join('.', projectName, '.sapprc'));

@@ -36,3 +36,3 @@ copyApp('babelrc.json', path.join('.', projectName, '.babelrc'));

console.log(' cd %s\n npm install\n npm run dev\n', projectName);
}).catch(function (error) {
}).catch(error => {
spinner.stop();

@@ -53,3 +53,3 @@ console.error(error);

const appConfig = JSON.parse(fs.readFileSync(appJson, 'utf8'));
appConfig.pages.push('/pages/' + pageName);
appConfig.pages.push({path: '/pages/' + pageName});
fs.writeFileSync(appJson, JSON.stringify(appConfig, null, ' '), 'utf8');

@@ -69,3 +69,3 @@ console.log(pageName + ' 创建成功');

.description('开启真机调试服务')
.action(directory => {
.action(() => {
const projectRoot = path.resolve('.');

@@ -72,0 +72,0 @@ if (fs.existsSync(path.join(projectRoot, '.sapprc'))) {

{
"name": "bili-sapp-cli",
"version": "0.0.12",
"version": "0.0.13",
"description": "Bilibili Small App Cli",

@@ -10,2 +10,3 @@ "main": "index.js",

"scripts": {
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"

@@ -28,3 +29,6 @@ },

"ora": "^2.1.0"
},
"devDependencies": {
"eslint": "^5.5.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