Skip to content

Contributing instructions don't seem to work at all. #836

@Cyp

Description

@Cyp

When reporting this, it says: Also have a look at the Debugging guidelines: https://github.com/babel/minify/blob/master/CONTRIBUTING.md#debugging, but there is no debugging section on the page.

Describe the bug

The instructions at https://github.com/babel/minify/blob/master/CONTRIBUTING.md don't actually work.

To Reproduce

Try following the instructions. First git clone babel/babel, and build it, in case that helps with anything.

Then try git cloning babel/minify, and following the instructions.

$ make bootstrap
make: *** No rule to make target 'bootstrap'.  Stop.

Something actually happens if running npm run bootstrap && npm run build, though.

Then try using it.

'use strict';

require('@babel/core').transform('console.log("Hello world");', {presets: ['minify']});

Gives some error. Tried npm install. Then it instead gives:
Error: Cannot find module 'babel-preset-minify' from '~/git/babel/minify'

Then try

'use strict';

require('@babel/core').transform('console.log("Hello world");', {plugins: ['minify-mangle-names']});

which gives

Error: Cannot find module 'babel-plugin-minify-mangle-names' from '~/git/babel/minify'`
$ ls packages/babel-plugin-minify-mangle-names
lib  package.json  README.md  src  __tests__

Then try

'use strict';

require('@babel/core').transform('console.log("Hello world");', {plugins: ['./packages/babel-plugin-minify-mangle-names']});

which gives a different error Error: Cannot find module 'babel-helper-mark-eval-scopes'.

Then just give up, and report this as a bug.

Expected Output

'use strict';console.log("Hello world");

Possible solution

No apparent solution. It seems hopeless.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions