fix: delete all files from existing example
MODIFY
.circleci/release_example
.circleci/release_example
@@ -29,27 +29,12 @@ examples.forEach(example => {
sh.mkdir('-p', path.dirname(d))
sh.exec(`git clone git@github.com:dxcli/${example} ${d}`)
sh.cd(d)
+ const pjson = fs.readJSONSync('package.json')
- sh.rm('-rf', [
- '.circleci',
- '.editorconfig',
- '.eslintignore',
- '.eslintrc',
- '.gitattributes',
- '.gitignore',
- 'README.md',
- 'appveyor.yml',
- 'bin',
- 'lib',
- 'package-scripts.js',
- 'src',
- 'test',
- 'tsconfig.json',
- 'tslint.json',
- 'yarn.lock',
- ])
+ let files = sh.ls('-A', '.')
+ files = files.filter(f => !['.git', 'CHANGELOG.md'].includes(f))
+ sh.rm('-rf', files)
- const pjson = fs.readJSONSync('package.json')
fs.outputJSONSync('package.json', {
name: `@dxcli/${example}`,
repository: `dxcli/${example}`,

fix: delete all files from existing example