package.json 3.7 KB
Newer Older
fxy060608's avatar
fxy060608 已提交
1
{
2 3 4 5 6
    "name": "uniapp-js-framework",
    "version": "0.0.1",
    "scripts": {
        "lint": "eslint --fix --config package.json --ext .js --ext .vue --ignore-path .eslintignore build src",
        "dev:h5": "npm run lint && cross-env NODE_ENV=production UNI_WATCH=true UNI_PLATFORM=h5 node build/build.js",
7
        "build:h5": "npm run lint && cross-env NODE_ENV=production UNI_WATCH=false UNI_PLATFORM=h5 node build/build.js",
8
        "build:app-plus": "npm run lint && cross-env UNI_PLATFORM=app-plus rollup -c build/rollup.config.js",
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
        "build:mp-weixin": "npm run lint && cross-env UNI_PLATFORM=mp-weixin rollup -c build/rollup.config.js",
        "build:mp-baidu": "npm run lint && cross-env UNI_PLATFORM=mp-baidu rollup -c build/rollup.config.js",
        "build:mp-alipay": "npm run lint && cross-env UNI_PLATFORM=mp-alipay rollup -c build/rollup.config.js",
        "build:mp-toutiao": "npm run lint && cross-env UNI_PLATFORM=mp-toutiao rollup -c build/rollup.config.js",
        "test:unit": "cross-env NODE_ENV=test UNI_PLATFORM=h5 mocha-webpack --require tests/unit/setup.js --webpack-config build/webpack.config.test.js tests/unit/**/*.spec.js"
    },
    "dependencies": {},
    "private": true,
    "devDependencies": {
        "@vue/cli-plugin-babel": "^3.4.1",
        "@vue/cli-plugin-eslint": "^3.4.1",
        "@vue/cli-plugin-unit-mocha": "^3.4.1",
        "@vue/cli-service": "^3.4.1",
        "@vue/test-utils": "^1.0.0-beta.25",
        "babel-eslint": "^10.0.1",
        "babylon": "^6.18.0",
        "browserslist": "^4.4.2",
        "caniuse-lite": "^1.0.30000940",
        "chai": "^4.1.2",
        "cross-env": "^5.2.0",
        "eslint": "^5.5.0",
        "eslint-config-standard": "^12.0.0",
        "eslint-loader": "^2.1.0",
        "eslint-plugin-import": "^2.14.0",
        "eslint-plugin-node": "^7.0.1",
        "eslint-plugin-promise": "^4.0.0",
        "eslint-plugin-standard": "^4.0.0",
        "eslint-plugin-vue": "^4.7.1",
        "jsdom": "^13.0.0",
        "jsdom-global": "^3.0.2",
        "rollup": "^0.67.4",
        "rollup-plugin-alias": "^1.4.0",
        "rollup-plugin-replace": "^2.1.0",
        "strip-json-comments": "^2.0.1",
        "vue": "^2.6.8",
        "vue-router": "^3.0.1",
        "vue-template-compiler": "^2.6.8",
        "webpack": "^4.18.0",
        "webpack-bundle-analyzer": "^3.0.3",
        "webpack-virtual-modules": "^0.1.10"
    },
    "eslintConfig": {
        "root": true,
        "env": {
            "node": true
        },
        "extends": [
            "plugin:vue/recommended",
            "standard"
        ],
        "globals": {
            "App": true,
            "Page": true,
M
mehaotian 已提交
62 63
            "Component": true,
            "Behavior": true,
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
            "getApp": true,
            "getCurrentPages": true,
            "plus": true,
            "uni": true,
            "Vue": true,
            "wx": true,
            "my": true,
            "swan": true,
            "__uniConfig": true,
            "__uniRoutes": true,
            "UniViewJSBridge": true,
            "UniServiceJSBridge": true,
            "__PLATFORM__": true,
            "__VERSION__": true,
            "__GLOBAL__": true,
M
mehaotian 已提交
79 80
            "__PLATFORM_TITLE__": true,
            "__PLATFORM_PREFIX__": true
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
        },
        "rules": {
            "no-tabs": 0,
            "standard/no-callback-literal": 0
        },
        "parserOptions": {
            "parser": "babel-eslint"
        }
    },
    "browserslist": [
        "last 3 versions",
        "Android >= 4.1",
        "ios >= 8"
    ],
    "license": "Apache-2.0",
    "main": "index.js",
    "description": "",
    "author": ""
99
}