New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sao

Package Overview
Dependencies
Maintainers
2
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sao - npm Package Compare versions

Comparing version 0.21.4 to 0.21.5

259

CHANGELOG.md

@@ -1,304 +0,317 @@

## [Version 0.21.4](https://github.com/egoist/sao/releases/tag/v0.21.4) (2017-8-20)
## [Version 0.21.5](https://github.com/egoist/sao/releases/tag/v0.21.5) (2017-8-20)
### New features
- inject answers into ctx: [`53dc6e9`](https://github.com/egoist/sao/commit/53dc6e9)
- respect sao property in package.json: [`cfb50ab`](https://github.com/egoist/sao/commit/cfb50ab)
### Bug fixes
- simplify targetPath in sao.mockPrompt: [`b5ff5c9`](https://github.com/egoist/sao/commit/b5ff5c9)
- Closes #44, sets logger levels to lowercase: [`2cb2a0c`](https://github.com/egoist/sao/commit/2cb2a0c) ([#45](https://github.com/egoist/sao/issues/45))
- Added "Type `cd ${folderName}` to get started": [`b0bf29b`](https://github.com/egoist/sao/commit/b0bf29b)
- support custom configFileName in sao.mockPrompt: [`9af5cd4`](https://github.com/egoist/sao/commit/9af5cd4)
[...full changes](https://github.com/egoist/sao/compare/v0.21.3...v0.21.4)
[...full changes](https://github.com/egoist/sao/compare/v0.21.4...v0.21.5)
## [Version 0.21.3](https://github.com/egoist/sao/releases/tag/v0.21.3) (2017-8-5)
## [Version 0.21.4](https://github.com/saojs/sao/releases/tag/v0.21.4) (2017-8-20)
### New features
- support explict npm package name, closed [#35](https://github.com/egoist/sao/issues/35): [`45b1815`](https://github.com/egoist/sao/commit/45b1815)
- inject answers into ctx: [`53dc6e9`](https://github.com/saojs/sao/commit/53dc6e9)
### Bug fixes
- use actual package version to store prompt answers: [`207f44e`](https://github.com/egoist/sao/commit/207f44e)
- simplify targetPath in sao.mockPrompt: [`b5ff5c9`](https://github.com/saojs/sao/commit/b5ff5c9)
- Closes #44, sets logger levels to lowercase: [`2cb2a0c`](https://github.com/saojs/sao/commit/2cb2a0c) ([#45](https://github.com/saojs/sao/issues/45))
[...full changes](https://github.com/egoist/sao/compare/v0.21.2...v0.21.3)
[...full changes](https://github.com/saojs/sao/compare/v0.21.3...v0.21.4)
## [Version 0.21.2](https://github.com/egoist/sao/releases/tag/v0.21.2) (2017-8-5)
## [Version 0.21.3](https://github.com/saojs/sao/releases/tag/v0.21.3) (2017-8-5)
### New features
- support explict npm package name, closed [#35](https://github.com/saojs/sao/issues/35): [`45b1815`](https://github.com/saojs/sao/commit/45b1815)
### Bug fixes
- fix checking isNewFolder: [`a52a80c`](https://github.com/egoist/sao/commit/a52a80c)
- use actual package version to store prompt answers: [`207f44e`](https://github.com/saojs/sao/commit/207f44e)
[...full changes](https://github.com/egoist/sao/compare/v0.21.1...v0.21.2)
[...full changes](https://github.com/saojs/sao/compare/v0.21.2...v0.21.3)
## [Version 0.21.1](https://github.com/egoist/sao/releases/tag/v0.21.1) (2017-8-4)
## [Version 0.21.2](https://github.com/saojs/sao/releases/tag/v0.21.2) (2017-8-5)
### Bug fixes
- fix checking isNewFolder: [`a52a80c`](https://github.com/saojs/sao/commit/a52a80c)
[...full changes](https://github.com/saojs/sao/compare/v0.21.1...v0.21.2)
## [Version 0.21.1](https://github.com/saojs/sao/releases/tag/v0.21.1) (2017-8-4)
### New features
- add option to disable template update notifier: [`8550513`](https://github.com/egoist/sao/commit/8550513)
- add option to disable template update notifier: [`8550513`](https://github.com/saojs/sao/commit/8550513)
### Bug fixes
- tweaks: [`5bf21ba`](https://github.com/egoist/sao/commit/5bf21ba)
- Do not install dependencies if repo does not have config file: [`7df56f1`](https://github.com/egoist/sao/commit/7df56f1)
- tweaks: [`5bf21ba`](https://github.com/saojs/sao/commit/5bf21ba)
- Do not install dependencies if repo does not have config file: [`7df56f1`](https://github.com/saojs/sao/commit/7df56f1)
[...full changes](https://github.com/egoist/sao/compare/v0.21.0...v0.21.1)
[...full changes](https://github.com/saojs/sao/compare/v0.21.0...v0.21.1)
## [Version 0.21.0](https://github.com/egoist/sao/releases/tag/v0.21.0) (2017-8-4)
## [Version 0.21.0](https://github.com/saojs/sao/releases/tag/v0.21.0) (2017-8-4)
### Breaking changes
- Refactor, support npm scoped package: [`63d8441`](https://github.com/egoist/sao/commit/63d8441)
- Refactor, support npm scoped package: [`63d8441`](https://github.com/saojs/sao/commit/63d8441)
### Bug fixes
- tweaks: [`ae1d2b9`](https://github.com/egoist/sao/commit/ae1d2b9)
- tweaks: [`ae1d2b9`](https://github.com/saojs/sao/commit/ae1d2b9)
[...full changes](https://github.com/egoist/sao/compare/v0.20.8...v0.21.0)
[...full changes](https://github.com/saojs/sao/compare/v0.20.8...v0.21.0)
## [Version 0.20.8](https://github.com/egoist/sao/releases/tag/v0.20.8) (2017-8-1)
## [Version 0.20.8](https://github.com/saojs/sao/releases/tag/v0.20.8) (2017-8-1)
### New features
- support private git repos: [`c4e91d4`](https://github.com/egoist/sao/commit/c4e91d4)
- support private git repos: [`c4e91d4`](https://github.com/saojs/sao/commit/c4e91d4)
[...full changes](https://github.com/egoist/sao/compare/v0.20.7...v0.20.8)
[...full changes](https://github.com/saojs/sao/compare/v0.20.7...v0.20.8)
## [Version 0.20.7](https://github.com/egoist/sao/releases/tag/v0.20.7) (2017-8-1)
## [Version 0.20.7](https://github.com/saojs/sao/releases/tag/v0.20.7) (2017-8-1)
### Bug fixes
- tweaks: [`8fb6c53`](https://github.com/egoist/sao/commit/8fb6c53)
- tweaks: [`229fcbf`](https://github.com/egoist/sao/commit/229fcbf)
- output detailed error message for http error: [`3ec1a60`](https://github.com/egoist/sao/commit/3ec1a60)
- tweaks: [`8fb6c53`](https://github.com/saojs/sao/commit/8fb6c53)
- tweaks: [`229fcbf`](https://github.com/saojs/sao/commit/229fcbf)
- output detailed error message for http error: [`3ec1a60`](https://github.com/saojs/sao/commit/3ec1a60)
[...full changes](https://github.com/egoist/sao/compare/v0.20.6...v0.20.7)
[...full changes](https://github.com/saojs/sao/compare/v0.20.6...v0.20.7)
## [Version 0.20.6](https://github.com/egoist/sao/releases/tag/v0.20.6) (2017-7-31)
## [Version 0.20.6](https://github.com/saojs/sao/releases/tag/v0.20.6) (2017-7-31)
### New features
- add pm in templateContext: [`a974697`](https://github.com/egoist/sao/commit/a974697)
- change log level for installing missing template: [`86f0e5b`](https://github.com/egoist/sao/commit/86f0e5b)
- add pm in templateContext: [`a974697`](https://github.com/saojs/sao/commit/a974697)
- change log level for installing missing template: [`86f0e5b`](https://github.com/saojs/sao/commit/86f0e5b)
[...full changes](https://github.com/egoist/sao/compare/v0.20.5...v0.20.6)
[...full changes](https://github.com/saojs/sao/compare/v0.20.5...v0.20.6)
## [Version 0.20.5](https://github.com/egoist/sao/releases/tag/v0.20.5) (2017-7-28)
## [Version 0.20.5](https://github.com/saojs/sao/releases/tag/v0.20.5) (2017-7-28)
### New features
- add --force-npm option: [`dd6e256`](https://github.com/egoist/sao/commit/dd6e256)
- add --force-npm option: [`dd6e256`](https://github.com/saojs/sao/commit/dd6e256)
[...full changes](https://github.com/egoist/sao/compare/v0.20.4...v0.20.5)
[...full changes](https://github.com/saojs/sao/compare/v0.20.4...v0.20.5)
## [Version 0.20.4](https://github.com/egoist/sao/releases/tag/v0.20.4) (2017-7-26)
## [Version 0.20.4](https://github.com/saojs/sao/releases/tag/v0.20.4) (2017-7-26)
### New features
- use cac 4: [`43a9236`](https://github.com/egoist/sao/commit/43a9236)
- use cac 4: [`43a9236`](https://github.com/saojs/sao/commit/43a9236)
[...full changes](https://github.com/egoist/sao/compare/v0.20.3...v0.20.4)
[...full changes](https://github.com/saojs/sao/compare/v0.20.3...v0.20.4)
## [Version 0.20.3](https://github.com/egoist/sao/releases/tag/v0.20.3) (2017-7-23)
## [Version 0.20.3](https://github.com/saojs/sao/releases/tag/v0.20.3) (2017-7-23)
### Bug fixes
- tweaks: [`9544c48`](https://github.com/egoist/sao/commit/9544c48)
- clean up: [`83d7b6a`](https://github.com/egoist/sao/commit/83d7b6a)
- tweaks: [`9544c48`](https://github.com/saojs/sao/commit/9544c48)
- clean up: [`83d7b6a`](https://github.com/saojs/sao/commit/83d7b6a)
[...full changes](https://github.com/egoist/sao/compare/v0.20.2...v0.20.3)
[...full changes](https://github.com/saojs/sao/compare/v0.20.2...v0.20.3)
## [Version 0.20.2](https://github.com/egoist/sao/releases/tag/v0.20.2) (2017-7-23)
## [Version 0.20.2](https://github.com/saojs/sao/releases/tag/v0.20.2) (2017-7-23)
### New features
- allow to use npm 5: [`46a2c70`](https://github.com/egoist/sao/commit/46a2c70)
- allow to use npm 5: [`46a2c70`](https://github.com/saojs/sao/commit/46a2c70)
[...full changes](https://github.com/egoist/sao/compare/v0.20.1...v0.20.2)
[...full changes](https://github.com/saojs/sao/compare/v0.20.1...v0.20.2)
## [Version 0.20.1](https://github.com/egoist/sao/releases/tag/v0.20.1) (2017-7-9)
## [Version 0.20.1](https://github.com/saojs/sao/releases/tag/v0.20.1) (2017-7-9)
### Bug fixes
- ensure git name and email: [`f94760a`](https://github.com/egoist/sao/commit/f94760a) ([#32](https://github.com/egoist/sao/issues/32))
- ensure git name and email: [`f94760a`](https://github.com/saojs/sao/commit/f94760a) ([#32](https://github.com/saojs/sao/issues/32))
[...full changes](https://github.com/egoist/sao/compare/v0.20.0...v0.20.1)
[...full changes](https://github.com/saojs/sao/compare/v0.20.0...v0.20.1)
## [Version 0.19.9](https://github.com/egoist/sao/releases/tag/v0.19.9) (2017-7-6)
## [Version 0.19.9](https://github.com/saojs/sao/releases/tag/v0.19.9) (2017-7-6)
### Bug fixes
- log eval error: [`fdcad9e`](https://github.com/egoist/sao/commit/fdcad9e)
- log eval error: [`fdcad9e`](https://github.com/saojs/sao/commit/fdcad9e)
[...full changes](https://github.com/egoist/sao/compare/v0.19.8...v0.19.9)
[...full changes](https://github.com/saojs/sao/compare/v0.19.8...v0.19.9)
## [Version 0.19.8](https://github.com/egoist/sao/releases/tag/v0.19.8) (2017-5-21)
## [Version 0.19.8](https://github.com/saojs/sao/releases/tag/v0.19.8) (2017-5-21)
### Bug fixes
- accept string in mockPrompt: [`826bc4d`](https://github.com/egoist/sao/commit/826bc4d)
- accept string in mockPrompt: [`826bc4d`](https://github.com/saojs/sao/commit/826bc4d)
[...full changes](https://github.com/egoist/sao/compare/v0.19.7...v0.19.8)
[...full changes](https://github.com/saojs/sao/compare/v0.19.7...v0.19.8)
## [Version 0.19.6](https://github.com/egoist/sao/releases/tag/v0.19.6) (2017-5-21)
## [Version 0.19.6](https://github.com/saojs/sao/releases/tag/v0.19.6) (2017-5-21)
### Bug fixes
- add color to folderName: [`3cd2657`](https://github.com/egoist/sao/commit/3cd2657)
- add color to folderName: [`3cd2657`](https://github.com/saojs/sao/commit/3cd2657)
[...full changes](https://github.com/egoist/sao/compare/v0.19.5...v0.19.6)
[...full changes](https://github.com/saojs/sao/compare/v0.19.5...v0.19.6)
## [Version 0.19.4](https://github.com/egoist/sao/releases/tag/v0.19.4) (2017-5-18)
## [Version 0.19.4](https://github.com/saojs/sao/releases/tag/v0.19.4) (2017-5-18)
### Bug fixes
- tweaks: [`c0382f9`](https://github.com/egoist/sao/commit/c0382f9)
- tweaks: [`19f0c2f`](https://github.com/egoist/sao/commit/19f0c2f)
- tweaks: [`69a3139`](https://github.com/egoist/sao/commit/69a3139)
- ensure boolean arguments, fixed [#27](https://github.com/egoist/sao/issues/27): [`9368403`](https://github.com/egoist/sao/commit/9368403)
- tweaks: [`c0382f9`](https://github.com/saojs/sao/commit/c0382f9)
- tweaks: [`19f0c2f`](https://github.com/saojs/sao/commit/19f0c2f)
- tweaks: [`69a3139`](https://github.com/saojs/sao/commit/69a3139)
- ensure boolean arguments, fixed [#27](https://github.com/saojs/sao/issues/27): [`9368403`](https://github.com/saojs/sao/commit/9368403)
[...full changes](https://github.com/egoist/sao/compare/v0.19.3...v0.19.4)
[...full changes](https://github.com/saojs/sao/compare/v0.19.3...v0.19.4)
## [Version 0.19.3](https://github.com/egoist/sao/releases/tag/v0.19.3) (2017-5-3)
## [Version 0.19.3](https://github.com/saojs/sao/releases/tag/v0.19.3) (2017-5-3)
### Bug fixes
- fix keyword: [`2277cf0`](https://github.com/egoist/sao/commit/2277cf0)
- fix keyword: [`2277cf0`](https://github.com/saojs/sao/commit/2277cf0)
[...full changes](https://github.com/egoist/sao/compare/v0.19.2...v0.19.3)
[...full changes](https://github.com/saojs/sao/compare/v0.19.2...v0.19.3)
## [Version 0.19.0](https://github.com/egoist/sao/releases/tag/v0.19.0) (2017-5-2)
## [Version 0.19.0](https://github.com/saojs/sao/releases/tag/v0.19.0) (2017-5-2)
### Breaking changes
- update kopy: [`3fa9265`](https://github.com/egoist/sao/commit/3fa9265)
- update kopy: [`3fa9265`](https://github.com/saojs/sao/commit/3fa9265)
[...full changes](https://github.com/egoist/sao/compare/v0.18.0...v0.19.0)
[...full changes](https://github.com/saojs/sao/compare/v0.18.0...v0.19.0)
## [Version 0.18.0](https://github.com/egoist/sao/releases/tag/v0.18.0) (2017-5-2)
## [Version 0.18.0](https://github.com/saojs/sao/releases/tag/v0.18.0) (2017-5-2)
### Breaking changes
- use keyword to set default value in prompts: [`4fc2d3b`](https://github.com/egoist/sao/commit/4fc2d3b)
- use keyword to set default value in prompts: [`4fc2d3b`](https://github.com/saojs/sao/commit/4fc2d3b)
### Bug fixes
- output warning for scoped npm package: [`7f57986`](https://github.com/egoist/sao/commit/7f57986)
- only install production dependencies for git repo: [`455c234`](https://github.com/egoist/sao/commit/455c234)
- tweak logger: [`f9ae3b2`](https://github.com/egoist/sao/commit/f9ae3b2)
- disable trimming in logger: [`1365478`](https://github.com/egoist/sao/commit/1365478)
- output warning for scoped npm package: [`7f57986`](https://github.com/saojs/sao/commit/7f57986)
- only install production dependencies for git repo: [`455c234`](https://github.com/saojs/sao/commit/455c234)
- tweak logger: [`f9ae3b2`](https://github.com/saojs/sao/commit/f9ae3b2)
- disable trimming in logger: [`1365478`](https://github.com/saojs/sao/commit/1365478)
[...full changes](https://github.com/egoist/sao/compare/v0.17.0...v0.18.0)
[...full changes](https://github.com/saojs/sao/compare/v0.17.0...v0.18.0)
## [Version 0.17.0](https://github.com/egoist/sao/releases/tag/v0.17.0) (2017-4-25)
## [Version 0.17.0](https://github.com/saojs/sao/releases/tag/v0.17.0) (2017-4-25)
### New features
- add mockPrompt support: [`daf508e`](https://github.com/egoist/sao/commit/daf508e)
- upgrade kopy: [`4ad28b1`](https://github.com/egoist/sao/commit/4ad28b1)
- mock without writing any files: [`020f205`](https://github.com/egoist/sao/commit/020f205)
- support validation in mockPrompt: [`c492648`](https://github.com/egoist/sao/commit/c492648)
- add mockPrompt support: [`daf508e`](https://github.com/saojs/sao/commit/daf508e)
- upgrade kopy: [`4ad28b1`](https://github.com/saojs/sao/commit/4ad28b1)
- mock without writing any files: [`020f205`](https://github.com/saojs/sao/commit/020f205)
- support validation in mockPrompt: [`c492648`](https://github.com/saojs/sao/commit/c492648)
### Bug fixes
- set default value for mock data: [`029f6ee`](https://github.com/egoist/sao/commit/029f6ee)
- fake targetPath for mockPrompt: [`a04b370`](https://github.com/egoist/sao/commit/a04b370)
- set default value for mock data: [`029f6ee`](https://github.com/saojs/sao/commit/029f6ee)
- fake targetPath for mockPrompt: [`a04b370`](https://github.com/saojs/sao/commit/a04b370)
[...full changes](https://github.com/egoist/sao/compare/v0.16.12...v0.17.0)
[...full changes](https://github.com/saojs/sao/compare/v0.16.12...v0.17.0)
## [Version 0.16.12](https://github.com/egoist/sao/releases/tag/v0.16.12) (2017-4-24)
## [Version 0.16.12](https://github.com/saojs/sao/releases/tag/v0.16.12) (2017-4-24)
### Bug fixes
- upgrade deps: [`87d46f3`](https://github.com/egoist/sao/commit/87d46f3)
- upgrade deps: [`87d46f3`](https://github.com/saojs/sao/commit/87d46f3)
[...full changes](https://github.com/egoist/sao/compare/v0.16.11...v0.16.12)
[...full changes](https://github.com/saojs/sao/compare/v0.16.11...v0.16.12)
## [Version 0.16.11](https://github.com/egoist/sao/releases/tag/v0.16.11) (2017-4-24)
## [Version 0.16.11](https://github.com/saojs/sao/releases/tag/v0.16.11) (2017-4-24)
### New features
- ask user whether to install missing template: [`30df582`](https://github.com/egoist/sao/commit/30df582)
- ask user whether to install missing template: [`30df582`](https://github.com/saojs/sao/commit/30df582)
[...full changes](https://github.com/egoist/sao/compare/v0.16.10...v0.16.11)
[...full changes](https://github.com/saojs/sao/compare/v0.16.10...v0.16.11)
## [Version 0.16.10](https://github.com/egoist/sao/releases/tag/v0.16.10) (2017-2-17)
## [Version 0.16.10](https://github.com/saojs/sao/releases/tag/v0.16.10) (2017-2-17)
### Bug fixes
- delete cached repo before downloading, fixed [#22](https://github.com/egoist/sao/issues/22): [`e9eb195`](https://github.com/egoist/sao/commit/e9eb195)
- delete cached repo before downloading, fixed [#22](https://github.com/saojs/sao/issues/22): [`e9eb195`](https://github.com/saojs/sao/commit/e9eb195)
[...full changes](https://github.com/egoist/sao/compare/v0.16.9...v0.16.10)
[...full changes](https://github.com/saojs/sao/compare/v0.16.9...v0.16.10)
## [Version 0.16.9](https://github.com/egoist/sao/releases/tag/v0.16.9) (2017-2-13)
## [Version 0.16.9](https://github.com/saojs/sao/releases/tag/v0.16.9) (2017-2-13)
### Patches
- ensure config dir: [`a72abc2`](https://github.com/egoist/sao/commit/a72abc2)
- ensure config dir: [`a72abc2`](https://github.com/saojs/sao/commit/a72abc2)
[...full changes](https://github.com/egoist/sao/compare/v0.16.8...v0.16.9)
[...full changes](https://github.com/saojs/sao/compare/v0.16.8...v0.16.9)
## [Version 0.16.8](https://github.com/egoist/sao/releases/tag/v0.16.8) (2017-2-13)
## [Version 0.16.8](https://github.com/saojs/sao/releases/tag/v0.16.8) (2017-2-13)
### Minor Changes
- add option `templates` show templates list avaliable: [`10cb175`](https://github.com/egoist/sao/commit/10cb175) ([#21](https://github.com/egoist/sao/issues/21))
- add option `templates` show templates list avaliable: [`10cb175`](https://github.com/saojs/sao/commit/10cb175) ([#21](https://github.com/saojs/sao/issues/21))
[...full changes](https://github.com/egoist/sao/compare/v0.16.7...v0.16.8)
[...full changes](https://github.com/saojs/sao/compare/v0.16.7...v0.16.8)
## [Version 0.16.7](https://github.com/egoist/sao/releases/tag/v0.16.7) (2017-2-9)
## [Version 0.16.7](https://github.com/saojs/sao/releases/tag/v0.16.7) (2017-2-9)
### Minor Changes
- add `complete` as alias to `post`: [`32a1fbc`](https://github.com/egoist/sao/commit/32a1fbc)
- support expression in `when`: [`a77a0e4`](https://github.com/egoist/sao/commit/a77a0e4)
- add `complete` as alias to `post`: [`32a1fbc`](https://github.com/saojs/sao/commit/32a1fbc)
- support expression in `when`: [`a77a0e4`](https://github.com/saojs/sao/commit/a77a0e4)
[...full changes](https://github.com/egoist/sao/compare/v0.16.6...v0.16.7)
[...full changes](https://github.com/saojs/sao/compare/v0.16.6...v0.16.7)
## [Version 0.16.6](https://github.com/egoist/sao/releases/tag/v0.16.6) (2017-2-8)
## [Version 0.16.6](https://github.com/saojs/sao/releases/tag/v0.16.6) (2017-2-8)
### Patches
- add resource section: [`bd87b32`](https://github.com/egoist/sao/commit/bd87b32)
- fix move: [`fb62de0`](https://github.com/egoist/sao/commit/fb62de0)
- add resource section: [`bd87b32`](https://github.com/saojs/sao/commit/bd87b32)
- fix move: [`fb62de0`](https://github.com/saojs/sao/commit/fb62de0)
[...full changes](https://github.com/egoist/sao/compare/v0.16.5...v0.16.6)
[...full changes](https://github.com/saojs/sao/compare/v0.16.5...v0.16.6)
## [Version 0.16.5](https://github.com/egoist/sao/releases/tag/v0.16.5) (2017-1-8)
## [Version 0.16.5](https://github.com/saojs/sao/releases/tag/v0.16.5) (2017-1-8)
### Minor Changes
- set custom template path: [`bb7b713`](https://github.com/egoist/sao/commit/bb7b713)
- set custom template path: [`bb7b713`](https://github.com/saojs/sao/commit/bb7b713)
[...full changes](https://github.com/egoist/sao/compare/v0.16.4...v0.16.5)
[...full changes](https://github.com/saojs/sao/compare/v0.16.4...v0.16.5)
## [Version 0.16.4](https://github.com/egoist/sao/releases/tag/v0.16.4) (2017-1-6)
## [Version 0.16.4](https://github.com/saojs/sao/releases/tag/v0.16.4) (2017-1-6)
### Minor Changes
- disable interpolation for regular git repo: [`6724fe6`](https://github.com/egoist/sao/commit/6724fe6)
- support using url as config file: [`0d0f999`](https://github.com/egoist/sao/commit/0d0f999)
- disable interpolation for regular git repo: [`6724fe6`](https://github.com/saojs/sao/commit/6724fe6)
- support using url as config file: [`0d0f999`](https://github.com/saojs/sao/commit/0d0f999)
### Patches
- tweak: [`5fb0487`](https://github.com/egoist/sao/commit/5fb0487)
- tweak: [`5fb0487`](https://github.com/saojs/sao/commit/5fb0487)
[...full changes](https://github.com/egoist/sao/compare/v0.16.3...v0.16.4)
[...full changes](https://github.com/saojs/sao/compare/v0.16.3...v0.16.4)
## [Version 0.16.3](https://github.com/egoist/sao/releases/tag/v0.16.3) (2017-1-6)
## [Version 0.16.3](https://github.com/saojs/sao/releases/tag/v0.16.3) (2017-1-6)
### Minor Changes
- treat handlebars as built-in engine: [`92c0cfa`](https://github.com/egoist/sao/commit/92c0cfa)
- treat handlebars as built-in engine: [`92c0cfa`](https://github.com/saojs/sao/commit/92c0cfa)
[...full changes](https://github.com/egoist/sao/compare/v0.16.2...v0.16.3)
[...full changes](https://github.com/saojs/sao/compare/v0.16.2...v0.16.3)
## [Version 0.16.2](https://github.com/egoist/sao/releases/tag/v0.16.2) (2017-1-3)
## [Version 0.16.2](https://github.com/saojs/sao/releases/tag/v0.16.2) (2017-1-3)
### Patches
- tweak default post action: [`276fb3b`](https://github.com/egoist/sao/commit/276fb3b)
- fix default action: [`0374a0b`](https://github.com/egoist/sao/commit/0374a0b)
- tweak default post action: [`276fb3b`](https://github.com/saojs/sao/commit/276fb3b)
- fix default action: [`0374a0b`](https://github.com/saojs/sao/commit/0374a0b)
[...full changes](https://github.com/egoist/sao/compare/v0.16.1...v0.16.2)
[...full changes](https://github.com/saojs/sao/compare/v0.16.1...v0.16.2)

@@ -206,3 +206,3 @@ 'use strict'

if (isNewFolder) {
log.info(`cd ${chalk.yellow(folderName)} to get started!`)
log.info(`Type \`cd ${chalk.yellow(folderName)}\` to get started!`)
}

@@ -234,2 +234,5 @@ }

// so we add a default post action for such case
if (!projectConfig) {
log.warn('Config file was not found, treat as regular folder!')
}
log.success(`Successfully generated into ${chalk.yellow(folderName)}`)

@@ -236,0 +239,0 @@ if (isNewFolder) {

@@ -21,3 +21,3 @@ 'use strict'

targetPath = './',
config: configFileName = 'sao.js',
config: configFileName,
install,

@@ -34,9 +34,13 @@ removeStore,

let dest
let templateVersion = parsed.version || ''
let templatePkg
if (parsed.type === 'local') {
dest = parsed.path
templatePkg = utils.readPkg(dest)
configFileName = configUtils.getConfigFileName(configFileName, templatePkg)
} else if (parsed.type === 'repo') {
const folderName = `${parsed.user}::${parsed.name.replace('/', '-')}`
dest = path.join(configUtils.reposDir, folderName)
templatePkg = utils.readPkg(dest)
configFileName = configUtils.getConfigFileName(configFileName, templatePkg)

@@ -67,2 +71,4 @@ const exists = yield pathExists(dest)

dest = utils.getGlobalPackage(packageName)
templatePkg = utils.readPkg(dest)
configFileName = configUtils.getConfigFileName(configFileName, templatePkg)

@@ -95,12 +101,13 @@ const exists = yield pathExists(dest)

}
}
const templatePkg = require(path.join(dest, 'package.json'))
templateVersion = templatePkg.version
if (updateNotify) {
// Run update notifier for package template
utils.updateNotify(templatePkg)
}
if (parsed.type === 'npm' && updateNotify) {
// Run update notifier for package template
utils.updateNotify(templatePkg)
}
const templateVersion = templatePkg
? templatePkg.version
: parsed.version ? parsed.version : ''
return yield generate({

@@ -107,0 +114,0 @@ fromPath: dest,

const generate = require('./generate')
const { readPkg } = require('./utils')
const { getConfigFileName } = require('./utils/config')

@@ -7,11 +9,19 @@ module.exports = function(template, mockPromptData = {}) {

}
const templatePkg = readPkg(template.fromPath)
const configFileName = getConfigFileName(null, templatePkg)
return generate(
Object.assign({}, template, {
// It won't write files to disk
targetPath: '/fake-path/output',
mockPromptData,
write: false,
log: false
})
Object.assign(
{
configFileName
},
template,
{
// It won't write files to disk
targetPath: '/fake-path/output',
mockPromptData,
write: false,
log: false
}
)
)
}

@@ -26,2 +26,6 @@ 'use strict'

function getConfigFileName(configFileName, pkg) {
return configFileName || (pkg && pkg.sao) || 'sao.js'
}
exports.configDir = configDir

@@ -32,1 +36,2 @@ exports.packagesDir = packagesDir

exports.getConfig = getConfig
exports.getConfigFileName = getConfigFileName

@@ -64,1 +64,12 @@ 'use strict'

}
exports.readPkg = function(dir) {
try {
return require(path.join(dir, 'package.json'))
} catch (err) {
if (err.code === 'MODULE_NOT_FOUND') {
return null
}
throw err
}
}
{
"name": "sao",
"version": "0.21.4",
"version": "0.21.5",
"description": "Futuristic project generator.",
"license": "MIT",
"repository": "egoist/sao",
"repository": "saojs/sao",
"author": {

@@ -8,0 +8,0 @@ "name": "EGOIST",

@@ -7,3 +7,3 @@ <p align="center">

<br>
<a href="https://npmjs.com/package/sao"><img src="https://img.shields.io/npm/v/sao.svg?style=flat" alt="NPM version"></a> <a href="https://npmjs.com/package/sao"><img src="https://img.shields.io/npm/dm/sao.svg?style=flat" alt="NPM downloads"></a> <a href="https://circleci.com/gh/egoist/sao"><img src="https://img.shields.io/circleci/project/egoist/sao/master.svg?style=flat" alt="Build Status"></a> <a href="https://github.com/egoist/donate"><img src="https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&amp;style=flat" alt="donate"></a> <a href="https://chat.egoist.moe"><img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg?style=flat" alt="chat"></a>
<a href="https://npmjs.com/package/sao"><img src="https://img.shields.io/npm/v/sao.svg?style=flat" alt="NPM version"></a> <a href="https://npmjs.com/package/sao"><img src="https://img.shields.io/npm/dm/sao.svg?style=flat" alt="NPM downloads"></a> <a href="https://circleci.com/gh/saojs/sao"><img src="https://img.shields.io/circleci/project/saojs/sao/master.svg?style=flat" alt="Build Status"></a> <a href="https://github.com/egoist/donate"><img src="https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&amp;style=flat" alt="donate"></a> <a href="https://chat.egoist.moe"><img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg?style=flat" alt="chat"></a>
</p>

@@ -54,4 +54,4 @@

**sao** © [EGOIST](https://github.com/egoist), Released under the [MIT](https://egoist.mit-license.org/) License.<br>
Authored and maintained by EGOIST with help from contributors ([list](https://github.com/egoist/sao/contributors)).
Authored and maintained by EGOIST with help from contributors ([list](https://github.com/saojs/sao/contributors)).
> [egoist.moe](https://egoist.moe) · GitHub [@egoist](https://github.com/egoist) · Twitter [@_egoistlily](https://twitter.com/_egoistlily)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc