Compare commits

..
2 Commits
Author SHA1 Message Date
Emin Khateeb a332cb68f4 Merge pull request #28 from emin93/new-cli-post-install
Prepared automatic execution of the post install script
2019-03-05 10:59:28 +01:00
Emin Khateeb ffc9af3595 Prepared automatic execution of the post install script 2019-02-21 13:31:38 +01:00
2 changed files with 6 additions and 1 deletions

No files matched your search

+2 -1
View File
@@ -4,7 +4,8 @@
"description": "Clean and minimalist React Native template for a quick start with TypeScript.",
"scripts": {
"test": "standard setup.js",
"prepublishOnly": "npm --no-git-tag-version version $TRAVIS_TAG"
"prepublishOnly": "npm --no-git-tag-version version $TRAVIS_TAG",
"install": "node setup.js"
},
"repository": {
"type": "git",
+4
View File
@@ -4,6 +4,10 @@ const path = require('path')
const packageJson = require('./package.json')
const jestConfig = require('./jest.json')
if (!packageJson.jest) {
process.exit()
}
const deleteFile = fileName => fs.unlinkSync(path.join(__dirname, fileName))
const writeFile = (fileName, data) => fs.writeFileSync(path.join(__dirname, fileName), data)