Skip to content

Commit

Permalink
fix: delete all files from existing example
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 28, 2018
1 parent de2b9fc commit 0081edd
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .circleci/release_example
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit 0081edd

Please sign in to comment.