1.4.3 • Published 5 years ago

h-ice-cli v1.4.3

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

h-ice-cli

NPM version NPM downloads

Thank ice-script / alibaba.

With hunzsig's contribution and ice-script.

please run:

cnpm install h-ice-cli@latest --save-dev

cmd

ice dev -p 9235[port]
ice build
ice app

buildConfig in package.json

hot : auto refresh browser default true
dropConsole : drop console default true
theme : support only @icedesign/skin default null
primaryTheme : webpackage->options->modifyVars
import : demand loading default null
appHtml : html template default {"dev": "dev.html", "prod": "index.html","app": "app.html"}
publicUrl : support react-router4 BrowserRouter default {"dev": "/", "prod": "/","app": "./"}
entry : entry like webpackage default {"dev": "src/index.js", "prod": "src/dev.js","app": "src/app.js"}
"buildConfig": {
  "hot": false,
  "dropConsole": true,
  "theme": "@icedesign/skin",
  "primaryTheme": {
     "primary-color": "#6699ff",
     "brand-primary": "green",
     "color-text-base":  "#333"
  },
  "appHtml": {
    "dev": "dev.html",
    "prod": "index.html",
    "app": "app.html"
  },
  "publicUrl": {
    "dev": "/",
    "prod": "/",
    "app": "./"
  },
  "entry": {
    "dev": "src/index.js",
    "prod": "src/index.js",
    "app": "src/app.js"
  },
  "import": [
    {
      "libraryName": "@icedesign/base",
      "style": true
    },
    {
      "libraryName": "antd",
      "style": true
    }
  ]
}

proxyConfig in package.json

"proxyConfig": {
  "/api": {
    "enable": true,
    "target": "http://your address"
  },
  "/api2": {
    "enable": true,
    "target": "http://your address2"
  }
}

copyConfig in package.json

copyConfig will copy files which hope into the dir-dist when run 'npm run build'
the public dir is auto copy to dist dir
"copyConfig": {
  "include": [],
  "except": []
}
1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.9

5 years ago

1.3.8

5 years ago

1.3.7

5 years ago

1.3.6

5 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.9

6 years ago

1.2.8

6 years ago

1.2.7

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago