Jelajahi Sumber

Add Prettier, change license

Yaroslav Kasperovich 5 tahun lalu
induk
melakukan
799634a7eb
5 mengubah file dengan 30 tambahan dan 13 penghapusan
  1. 2 0
      .gitignore
  2. 7 0
      .prettierrc
  3. 7 7
      index.js
  4. 6 6
      package.json
  5. 8 0
      yarn.lock

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+node_modules/
+.idea/

+ 7 - 0
.prettierrc

@@ -0,0 +1,7 @@
+{
+  "trailingComma": "all",
+  "printWidth": 100,
+  "semi": true,
+  "useTabs": false,
+  "tabWidth": 2
+}

+ 7 - 7
index.js

@@ -1,17 +1,17 @@
-module.exports = function(API) {
-  return API.configureWebpack(function() {
+module.exports = function (API) {
+  return API.configureWebpack(function () {
     return {
       resolve: {
-        extensions: ['.coffee']
+        extensions: [".coffee"],
       },
       module: {
         rules: [
           {
             test: /\.coffee$/,
-            loader: 'coffee-loader'
-          }
-        ]
-      }
+            loader: "coffee-loader",
+          },
+        ],
+      },
     };
   });
 };

+ 6 - 6
package.json

@@ -1,11 +1,8 @@
 {
   "name": "vue-cli-plugin-coffee",
-  "version": "0.1.0",
+  "version": "0.1.1",
   "description": "CoffeeScript2 support for your @vue/cli project",
   "main": "index.js",
-  "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1"
-  },
   "repository": {
     "type": "git",
     "url": "git+https://github.com/cxsper/vue-cli-plugin-coffee.git"
@@ -19,9 +16,12 @@
     "coffee"
   ],
   "author": "ilovewindows96@gmail.com",
-  "license": "ISC",
+  "license": "MIT",
   "bugs": {
     "url": "https://github.com/cxsper/vue-cli-plugin-coffee/issues"
   },
-  "homepage": "https://github.com/cxsper/vue-cli-plugin-coffee#readme"
+  "homepage": "https://github.com/cxsper/vue-cli-plugin-coffee#readme",
+  "devDependencies": {
+    "prettier": "^2.0.5"
+  }
 }

+ 8 - 0
yarn.lock

@@ -0,0 +1,8 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+
+prettier@^2.0.5:
+  version "2.0.5"
+  resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4"
+  integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==