Commit Graph

195 Commits

Author SHA1 Message Date
Guillaume Chau
f4aa40dbc1 fix(pwa): wrong config, closes #1890 2018-07-20 07:33:46 +02:00
Guillaume Chau
6e6533c56a v3.0.0-rc.5 2018-07-16 15:51:27 +02:00
Guillaume Chau
71276fdf5a chore: pre release sync 2018-07-16 15:51:21 +02:00
Guillaume Chau
fc6541fd59 v3.0.0-rc.4 2018-07-13 19:03:31 +02:00
Guillaume Chau
be918080ca chore: pre release sync 2018-07-13 19:03:27 +02:00
Evan You
30dbad8ff1 fix: fix npmignore, prevent version cache from being published 2018-07-13 10:52:55 -04:00
Stephen Lam
e393be733d feat(generator): allow plugins to modify how configs are extracted (#1130)
* feat(generator): allow plugins to modify how configs are extracted

* refactor(cli): change addConfigTransform parameters

Allow plugin author to set config 'descriptions' instead of implementing their own transform functions.

* fix(cli): fix missed issues from changing types from array to set

* fix: use reserved config transforms to check in API

* fix: lines dedupe
2018-07-11 19:52:57 +02:00
Guillaume Chau
96778b2caf chore: update main deps (#1772)
* chore: update main deps

* chore: update ts types

* chore: update generator deps versions

* fix: ts-jest

* chore: upgrade ts-jest again

* fix: re-generated yarn.lock

* chore: more upgrades

* fix: jest test matching on Windows
2018-07-08 13:56:10 +02:00
Guillaume Chau
7d635008ac refactor(ui): use reverse domain notation for ids 2018-06-21 16:41:38 +02:00
Evan You
5cf1958a69 v3.0.0-rc.3 2018-06-18 10:36:49 -04:00
Evan You
17a0411689 chore: pre release sync 2018-06-18 10:36:43 -04:00
Evan You
2698f66670 v3.0.0-rc.2 2018-06-14 09:44:25 -04:00
Evan You
d98b7ee745 chore: pre release sync 2018-06-14 09:44:16 -04:00
Evan You
6f948d2f3f v3.0.0-rc.1 2018-06-13 16:11:09 -04:00
Evan You
d4a595d891 chore: pre release sync 2018-06-13 16:10:59 -04:00
Guillaume Chau
a26669c25f feat(ui): open eslintrc suggestion 2018-06-11 21:14:14 +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
Evan You
2a8391d3c2 v3.0.0-beta.16 2018-06-08 00:51:12 -04:00
Evan You
85306c82ef chore: pre release sync 2018-06-08 00:51: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
Caleb Kester
165f82319d Changing tabs to tab (#1441) 2018-06-03 13:08:56 +02:00
Evan You
9a2898c1bc v3.0.0-beta.15 2018-05-30 13:42:19 -04:00
Evan You
9aeaf9b7ce chore: pre release sync 2018-05-30 13:41:57 -04:00
Evan You
7ce91c89f2 workflow: enable eslint node/no-extraneous-require 2018-05-30 10:25:33 -04:00
Evan You
5f1f986d4d v3.0.0-beta.14 2018-05-29 13:27:16 -04:00
Evan You
7d0f173285 chore: pre release sync 2018-05-29 13:27:11 -04:00
Evan You
0689ff2eae v3.0.0-beta.13 2018-05-29 13:24:03 -04:00
Evan You
e5738f412d chore: pre release sync 2018-05-29 13:24:03 -04:00
Guillaume Chau
a3b2be8c15 fix(ui): fix beta.12 feedback (#1386)
* fix(ui): npm/yarn installing only dependencies

* fix(ui): add all dependencies to package.json

* fix(Service): give priority to devDependencies plugins

* feat(ui): connection status banner

* fix(ui): don't display disconnected banner for initial app load

* fix(ui): default value for prompt type=checkbox

* feat: builtin prompts default values

* fix(ui): circular dep
2018-05-29 09:37:28 -04:00
Evan You
9846cd520c fix: fix caching dependency (close #1384) 2018-05-29 09:29:18 -04:00
Evan You
e8bee864b0 v3.0.0-beta.12 2018-05-29 01:29:14 -04:00
Evan You
50df8cb010 chore: pre release sync 2018-05-29 01:29:03 -04:00
Evan You
0bc2aeba6d chore: merge dev 2018-05-28 22:10:41 -04:00
Evan You
ff8acd1b55 refactor: caching identifier generation 2018-05-28 14:47:01 -04:00
Guillaume Chau
0f30639bd0 fix(ui): eslint lint on save default 2018-05-24 18:15: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
Moritz Kneilmann
322b7f2dd2 docs: fix eslint webpack-chain documentation (#1358) 2018-05-23 12:37:25 -04:00
Guillaume Chau
4f2c71896e chore: merge dev 2018-05-21 23:07:52 +02:00
Evan You
f698cd3f60 v3.0.0-beta.11 2018-05-21 15:43:16 -04:00
Evan You
fab83f3006 chore: pre release sync 2018-05-21 15:43:04 -04:00
Guillaume Chau
8dddff6e5a chore: merge dev 2018-05-20 13:14:34 +02:00
Evan You
ff0f97b50b feat(eslint): enable caching 2018-05-18 23:46:10 -04:00
Guillaume Chau
9b4970cc82 chore: merge dev 2018-05-19 04:18:39 +02:00
Evan You
83f5f4fced fix(eslint): ensure all config values are contained in config file
close #1006, close #1313
2018-05-18 18:11:30 -04:00
Derek Henscheid
9ac2642aa1 feat(eslint): pass cli arguments to linter (#1258)
close #1255
2018-05-18 18:09:06 -04:00
JK
ab877a23cd feat(eslint): add --max-warnings and --max-errors for cli-plugin-eslint (#1289)
close #1268
2018-05-18 18:05:55 -04:00
Guillaume Chau
e6e6e90dfa chore: merge dev 2018-05-18 23:52:25 +02:00
Evan You
1dfe73bb5e docs: update late install instructions 2018-05-17 14:56:00 -04:00
Guillaume Chau
69a817e2c3 fix(ui): more strings now localized 2018-05-11 22:19:15 +02:00