Просмотр исходного кода

fix(js-cli) npmignore wrong on windows

Lucas Fernandes Gonçalves Nogueira 5 лет назад
Родитель
Сommit
0b30d8d618
4 измененных файлов с 3 добавлено и 39 удалено
  1. 0 5
      cli/tauri.js/.npmignore
  2. 1 1
      cli/tauri.js/package.json
  3. 0 33
      cli/tauri.js/tauri.conf.js
  4. 2 0
      cli/tauri.js/template.js

+ 0 - 5
cli/tauri.js/.npmignore

@@ -1,11 +1,6 @@
 test
-docs
-docs-generator
 node_modules
 .git
 .github
 .idea
 SECURITY.md
-
-src-tauri
-/tauri.conf.js

+ 1 - 1
cli/tauri.js/package.json

@@ -1,6 +1,6 @@
 {
   "name": "tauri",
-  "version": "0.1.7",
+  "version": "0.1.8",
   "description": "Multi-binding collection of libraries and templates for building Tauri apps",
   "bin": {
     "tauri": "./bin/tauri.js"

+ 0 - 33
cli/tauri.js/tauri.conf.js

@@ -1,33 +0,0 @@
-const path = require('path')
-const distDir = path.resolve(__dirname, './dist')
-
-module.exports = function () {
-  return {
-    automaticStart: {
-      active: true
-    },
-    build: {
-      distDir: distDir,
-      devPath: 'http://localhost:4000' // devServer URL or path to html file
-    },
-    ctx: {},
-    tauri: {
-      embeddedServer: {
-        active: true
-      },
-      bundle: {
-        active: true
-      },
-      whitelist: {
-        all: false
-      },
-      window: {
-        title: 'Tauri App'
-      },
-      security: {
-        csp: 'default-src data: filesystem: ws: http: https: \'unsafe-eval\' \'unsafe-inline\''
-      }
-    },
-    edge: true
-  }
-}

+ 2 - 0
cli/tauri.js/template.js

@@ -47,6 +47,8 @@ Run \`tauri init --force template\` to overwrite.`)
   } catch (e) {
     if (logging) console.log(e)
     return false
+  } finally {
+    if (logging) log('Successfully wrote src-tauri')
   }
 }