Commit Graph

124 Commits

Author SHA1 Message Date
Evan You
3994dac47c docs: remove unnecessary line in example [ci skip] 2018-06-14 09:51:42 -04:00
deangoku
186232ff45 docs: fix webpack-chain example (#1565) 2018-06-14 10:31:04 +02:00
Evan You
25c7e69ad3 docs: grammar tweaks [ci skip] 2018-06-13 16:43:35 -04:00
Evan You
fe936f3dfa docs: document new features 2018-06-13 14:48:06 -04:00
Guillaume Chau
0a2ea1fb02 feat(ui): devtools suggestion 2018-06-13 17:59:10 +02:00
Utwo
9d1bfc5c29 docs: update deployment.md (#1558) [ci skip] 2018-06-13 10:46:28 -04:00
Alex Rohleder
0b725f3fbf docs: fix typo (#1562) [ci skip] 2018-06-13 10:46:03 -04:00
kazuya kawaguchi
21ccd2fe1d docs: fix prompts API codes (#1557) 2018-06-13 11:24:42 +02:00
Alex Rohleder
6e690f355a docs: fix typo (#1556) 2018-06-13 11:07:40 +02:00
Guillaume Chau
cfd05557a9 docs(ui): suggestion screenshot 2018-06-11 16:54:59 +02:00
Meet Zaveri
57ff03b782 docs(ui): Typo ui-api.md (#1543)
Spelling mistake
2018-06-11 10:50:12 +02:00
Guillaume Chau
1f3dc547e8 docs(ui): suggestion + progress screen 2018-06-11 04:32:10 +02:00
Guillaume Chau
8ba6bcfe7b feat(ui): new hooks for plugins 2018-06-11 01:53:01 +02:00
Guillaume Chau
8fae98e7ce feat(ui): api.hasPlugin(id) 2018-06-11 00:42:53 +02:00
Pierre-Alexandre
9527dc86bd docs: provided the GitLab Pages platform guide (#1536) 2018-06-10 10:14:28 -04:00
Guillaume Chau
54ad175e08 docs(ui): refactor (#1535)
* docs(ui): refactor

* docs(ui): polish

* docs(ui): remove empty localization section
2018-06-10 15:46:49 +02:00
Guillaume Chau
e35ee2500d feat(ui): PluginApi: notify 2018-06-10 15:03:39 +02:00
Guillaume Chau
dbef5e9fed feat(ui): config improvements (#1487)
BREAKING CHANGES:

- The configuration API has changed.
- The `files` options now accept an object of different config files:

```js
api.describeConfig({
  /* ... */
  // All possible files for this config
  files: {
    // eslintrc.js
    eslint: {
      js: ['.eslintrc.js'],
      json: ['.eslintrc', '.eslintrc.json'],
      // Will read from `package.json`
      package: 'eslintConfig'
    },
    // vue.config.js
    vue: {
      js: ['vue.config.js']
    }
  },
})
```

- The `onWrite` api has changed: `setData` and `assignData` have now `fileId` as the first argument:

```js
api.describeConfig({
  onWrite: async ({ api, prompts }) => {
    const eslintData = {}
    const vueData = {}
    for (const prompt of prompts) {
      // eslintrc
      if (prompt.id.indexOf('vue/') === 0) {
        eslintData[`rules.${prompt.id}`] = await api.getAnswer(prompt.id, JSON.parse)
      } else {
        // vue.config.js
        vueData[prompt.id] = await api.getAnswer(prompt.id)
      }
    }
    api.setData('eslint', eslintData)
    api.setData('vue', vueData)
  }
})
```

Other changes

- Config tabs (optional):

```js
api.describeConfig({
  /* ... */
  onRead: ({ data, cwd }) => ({
    tabs: [
      {
        id: 'tab1',
        label: 'My tab',
        // Optional
        icon: 'application_settings',
        prompts: [
          // Prompt objects
        ]
      },
      {
        id: 'tab2',
        label: 'My other tab',
        prompts: [
          // Prompt objects
        ]
      }
    ]
  })
})
```
2018-06-10 14:01:45 +02:00
ULIVZ
eb709ea887 docs: fix broken link (#1530) 2018-06-09 11:03:49 -04:00
PiEgg
dd39866cad docs: fix word error (#1517) 2018-06-08 11:25:54 +02:00
Evan You
486ca1805b docs: basic deployment notes 2018-06-08 00:48:34 -04:00
Evan You
445d96e0df chore: remove temp file 2018-06-08 00:11:46 -04:00
Evan You
fb97646ee5 docs: more content 2018-06-08 00:10:35 -04:00
Evan You
726aebdda5 docs: wip 2018-06-07 23:20:51 -04:00
Evan You
999cbe4cde docs: wip 2018-06-07 15:39:34 -04:00
Evan You
97787947b9 docs: wip 2018-06-07 13:24:59 -04:00
Mix
f87d91811c docs: added example with loader GraphQL (#1501) 2018-06-07 09:45:14 -04:00
Kite
6e32164df5 fix: Remove duplicated "the" (#1493) 2018-06-07 10:33:33 +02:00
Evan You
1ffd81e216 docs: progress 2018-06-05 16:51:44 -04:00
Evan You
4e922055e4 docs: wip 2018-06-05 14:50:04 -04:00
Guillaume Chau
1c8f1953e7 refactor(ui): Config & task icons (#1450)
BREAKING CHANGE:

- `file-icon` for the configurations is removed
- Configuration objects `icon` option changed and is now working differently: you can either use a material icon code or a custom image (see Public static files in the UI Plugin docs).
- Task objects have a new `icon` option wich works exactly the same
- By default, if no icon is provided for either the config or the task, the corresponding vue-cli plugin logo will be used instead (if any).
2018-06-05 10:58:00 +02:00
Guillaume Chau
73545252e0 feat: ui tweaks & fixes (#1409)
* refactor(ui): use fetchPolic: 'cache-and-network' by default

* feat(ui): don't display loader if cached data

* fix(ui): eslint errors

* feat(ui): new top bar design

* fix(ui): remove work icon in top bar

* fix(ui): logger view item hover background

* feat(ui): Projects list show open project

* feat(ui): top bar: responsive + no favorites message

* fix(ui): Cannot set property consoleLogLast of #<a> which has only a getter

* fix(ui): loading prompts folder when installing plugin

* feat(ui): help translating button + docs

* docs(ui): fix local. docs

* fix(ui): Help translate button

* docs(ui): plugin ui dev docs improvements

* docs(ui): typo

* docs(ui): typo

* docs(ui): typo

* feat(ui): auto locale now tries full code + short code

* docs(ui): fix missing ref locale link
2018-05-31 14:10:05 -04:00
Evan You
a9e12865b5 feat: respect baseUrl during development
BREAKING CHANGE: `devBaseUrl` option has been removed. `baseUrl` now works for
both development and production. To use different paths for prod/dev, use
conditional values based on `process.env.NODE_ENV` in `vue.config.js`.
2018-05-30 11:01:16 -04:00
Craig Morris
9332f24456 Fix typo (#1392) 2018-05-29 16:41:40 +02:00
Evan You
071b58b240 docs: update config
close #1387
2018-05-29 09:05:39 -04:00
Craig Morris
5e95b3df73 feat: add --copy option for vue-cli-service serve (#1355) 2018-05-29 08:59:10 -04:00
Andrew LeTourneau
d81dc69fa8 docs: adding disableHostCheck default value (#1373) 2018-05-28 23:39:51 -04:00
Guillaume Chau
6d329bd3fe docs: update 2018-05-25 00:36:08 +02:00
Guillaume Chau
0a954df7f3 chore: merge dev 2018-05-24 09:32:28 +02:00
JK
1176ded649 docs: update docs for assetsDir, --max-errors and --max-warnings (#1356) 2018-05-23 12:37:41 -04:00
Guillaume Chau
b75efc3a67 chore: merge dev 2018-05-22 17:05:07 +02:00
Guillaume Hamoniez
f50b0dbf9a docs: fix typo in env doc (#1344) 2018-05-22 10:00:14 -04:00
Guillaume Chau
d203fa0a5e chore: merge dev 2018-05-21 17:21:22 +02:00
ziga
6ea17c9f04 feat(build): add 'watch' option (#1332) 2018-05-21 10:46:15 -04:00
Guillaume Chau
b6114d49c7 chore: merge dev 2018-05-12 04:33:14 +02:00
Evan You
853662c64f fix(css): css-loader importLoaders should account for vue-loader's injected
postStyleLoader.

close #1267
2018-05-11 16:44:14 -04:00
Guillaume Chau
16f3137e70 docs(ui): add tasks title 2018-05-11 21:47:37 +02:00
Guillaume Chau
215cc2013a feat(ui): api.addTask() 2018-05-11 21:46:19 +02:00
Guillaume Chau
78a6ac8fe2 docs(ui): notice about color prompt type 2018-05-11 20:50:30 +02:00
Guillaume Chau
8bebef2309 chore: merge dev 2018-05-11 02:35:42 +02:00