├── .editorconfig ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── bin └── index.js ├── package.json ├── src ├── collection │ └── index.js ├── create │ ├── add-another.js │ ├── add-collection.js │ ├── index.js │ └── write-json.js ├── index.js └── process.js └── test ├── create ├── add-another.spec.js └── add-collection.spec.js ├── mocks └── prompt.mock.js └── process └── process.spec.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | *.json -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/README.md -------------------------------------------------------------------------------- /bin/index.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../src')(); 3 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/package.json -------------------------------------------------------------------------------- /src/collection/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/src/collection/index.js -------------------------------------------------------------------------------- /src/create/add-another.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/src/create/add-another.js -------------------------------------------------------------------------------- /src/create/add-collection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/src/create/add-collection.js -------------------------------------------------------------------------------- /src/create/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/src/create/index.js -------------------------------------------------------------------------------- /src/create/write-json.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/src/create/write-json.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/src/index.js -------------------------------------------------------------------------------- /src/process.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/src/process.js -------------------------------------------------------------------------------- /test/create/add-another.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/test/create/add-another.spec.js -------------------------------------------------------------------------------- /test/create/add-collection.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/test/create/add-collection.spec.js -------------------------------------------------------------------------------- /test/mocks/prompt.mock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/test/mocks/prompt.mock.js -------------------------------------------------------------------------------- /test/process/process.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfsq/json-server-init/HEAD/test/process/process.spec.js --------------------------------------------------------------------------------