Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TODO: features of export and import #21

Open
3cp opened this issue Mar 3, 2020 · 1 comment
Open

TODO: features of export and import #21

3cp opened this issue Mar 3, 2020 · 1 comment

Comments

@3cp
Copy link
Member

3cp commented Mar 3, 2020

Export to a zip or tar.gz file.
Import from zip or tar.gz file.

Ideally, provide option to export an app ready to run in local env. It means to add gulpfile for dumber, add devDeps and scripts in package.json.

The import should skip the gulpfile and various parts of package.json

@3cp
Copy link
Member Author

3cp commented May 20, 2020

Export can be showing user a command, something like this

npx makes dumberjs exported-folder-name -s aurelia,jasmine --gist 012345

To make it happen, few enhancements are needed for https://github.com/dumberjs/new

  1. add options to match dumber-gist offering: svelte, preact, inferno, backbone.
  2. enhance "after.js" to handle --gist 012345.

If user import an app (setup with dumber bundler) (for example, the exported app from dumber-gist, or any app generated by npx makes dumberjs).

  1. only import src/ and test/, ignore rest of the files like gulpfile.js.
  2. cherry-pick part of package.json.
  3. load _index.html as index.html.
  4. add run-tests.html, but only for jasmine, mocha, or tape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant