GithubHelp home page GithubHelp logo

barraponto / neutrino-preset-vue Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 2.0 101 KB

Vue components support in Neutrino

Home Page: https://www.npmjs.com/package/neutrino-preset-vue

JavaScript 100.00%
webpack neutrino neutrino-preset vuejs vue

neutrino-preset-vue's Introduction

Hello World 👋

Hi, I am Capi Etheriel. I have a thing for web scraping data for civic projects.
If that's your thing too, get in touch.

https://barraponto.dev.br


Oi mundo 👋

Oi, eu sou o Capi Etheriel. Meu negócio é raspagem de dados da Web para fins cívicos.
Se esse for o seu negócio também, entre em contato.

https://barraponto.dev.br

neutrino-preset-vue's People

Contributors

barraponto avatar constgen avatar greenkeeper[bot] avatar jackysee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

g-wilson

neutrino-preset-vue's Issues

Problem creating eslintrc using neutrino v6

I'm upgrading to use neutrino v6. My .neutrinorc.js:

module.exports = {
    use: [
        'neutrino-preset-web',
        './override-web.js',
        'neutrino-preset-vue' 
    ]
};

I'm using neutrino-middleware-eslint. This is my override-web.js :

    const eslint = require('neutrino-middleware-eslint');
    neutrino.use(eslint, {
        eslint: {
            envs: ['browser', 'es6', 'commonjs'],
            baseConfig: {
                extends: ['eslint:recommended', 'prettier']
            },
            rules: {
                indent: ['error', 4],
                'linebreak-style': ['off', 'windows'],
                quotes: ['error', 'single'],
                semi: ['error', 'always']
            }
        }
    });

The middleware recommended a way to generate eslintrc for ide linting. .eslintrc.js

const { Neutrino } = require('neutrino');
const api = Neutrino();
module.exports = api.call('eslintrc');

But it generates error:

C:\workspace\app>node .eslintrc.js
C:\workspace\app\node_modules\ramda\src\internal\_reduce.js:59
    throw new TypeError('reduce: list must be array or iterable');
    ^

TypeError: reduce: list must be array or iterable
    at _reduce (C:\workspace\app\node_modules\ramda\src\internal\_reduce.js:59:11)
    at C:\workspace\app\node_modules\ramda\src\internal\_curry3.js:26:46
    at f1 (C:\workspace\app\node_modules\ramda\src\internal\_curry1.js:17:17)
    at evolve (C:\workspace\app\node_modules\ramda\src\evolve.js:37:57)
    at C:\workspace\app\node_modules\ramda\src\internal\_curry2.js:20:46
    at f1 (C:\workspace\app\node_modules\ramda\src\internal\_curry1.js:17:17)
    at C:\workspace\app\node_modules\ramda\src\internal\_pipe.js:3:14
    at C:\workspace\app\node_modules\ramda\src\internal\_arity.js:5:45
    at Object.neutrino.register [as eslintrc] (C:\workspace\app\node_modules\neutrino-middleware-eslint\index.js:77:39)
    at Object.call (C:\workspace\app\node_modules\neutrino\src\api.js:167:39)
    at Object.<anonymous> (C:\workspace\app\.eslintrc.js:17:22)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3

I found that if I remove the neutrino-preset-vue the error would go away.
Further investigation leads me to have another override-vue.js used under neutrino-preset-vue with this content:

module.exports = neutrino => {
    neutrino.config.module.rule('lint').use('eslint').tap(options => {
        delete options.env;
        options.envs.push('node');
        return options;
    });
};

In this way, I can generate the correct eslintrc.

I'm not sure if it is the problem of the vue preset or the eslint middleware. I've also reported the case in the middleware issue:
neutrinojs/neutrino#265 (comment)

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Incorrectly published version 2.0.1 as 2.0.2 to NPM

If you currently will set the dependency in the package.json
"neutrino-preset-vue": "^2.0.2"
and check versions with
> npm outdated
you will see that versions doesn't match even after fresh install

PS C:\Projects\neutrino-project-playground> npm outdated
Package              Current  Wanted  Latest  Location
neutrino-preset-vue    2.0.1   2.0.2   2.0.2  neutrino-project-playground

This is because wrong version in the module package.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.