dumberjs / dumber-gist

A lightweight online IDE to write JS SPA prototypes in your own GitHub gists.
https://gist.dumber.app
MIT License
28 stars 2 forks source link

TODO: features of export and import #21

Open 3cp opened 4 years ago

3cp commented 4 years ago

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 commented 4 years ago

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.