@jinga/moto-cli

1.0.1 • Public • Published

What it is ?

My toolkit i use to save time on my gatsby projects. "moto" means "fire" in lingala :P.

Commands

Add alias in code

moto alias add ~myAlias src/path/to/folder

Add alias in .eslintrc, jsconfig.json and gatsby-config.js.

In order to make it works, you need to add gatsby-plugin-alias-imports

npm i --save-dev gatsby-plugin-alias-imports

and add this comment in the proper location :

// DO NOT REMOVE THIS COMMENT.

For example :

{
    resolve: `gatsby-plugin-alias-imports`,
    options: {
        alias: {
            '~style': `${__dirname}/src/style` // DO NOT REMOVE THIS COMMENT.
        },
        extensions: ['js', 'scss']
    }
},

Readme

Keywords

none

Package Sidebar

Install

npm i @jinga/moto-cli

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

9.72 kB

Total Files

14

Last publish

Collaborators

  • jinga