Skip to content

Commit

Permalink
Merge pull request #7 from ModernLogic/aspitz/clean-up-for-npm-packag…
Browse files Browse the repository at this point in the history
…e-prep

Aspitz/clean up for npm package prep
  • Loading branch information
paddlefish authored Feb 11, 2025
2 parents 9ce5d2a + db01c24 commit b4b7b5c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
package.tgz
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,13 @@ Create `.snaprc.json` file in the root directory changing the `bundleIdentifier`
{
"ios": {

"bundleIdentifier": "com.soundstrue.soundstrueone",
"bundleIdentifier": "com.example.example",
"simulator": "iPhone 13",
"appName": "Wunder.app"
"appName": "Example.app"
}
}
```

Copy the file `snap_0.0.4.tgz` into `vendor/@modernlogic` directory.

Add `"@modernlogic/snap": "./vendor/@modernlogic/snap_0.0.4.tgz"` in `package.json` file

Run

```sh
npm i
```

Add in the `.gitignore` file

```javascript
Expand Down Expand Up @@ -171,7 +161,7 @@ _An alternate_
You can also just do
```
npm run dev:try ../../understood
npm run dev:try ../../<project_dir_name>
```
To do the same sequence of steps.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"license": "UNLICENSED",
"main": "./dist/index.js",
"name": "@modernlogic/snap",
"name": "@modern-logic/snap",
"packageManager": "npm@10.7.0",
"peerDependencies": {
"@react-navigation/native": "*",
Expand Down Expand Up @@ -77,7 +77,13 @@
}
}
},
"repository": "https://github.com/ModernLogic/snap",
"repository": {
"type": "git",
"url": "https://github.com/ModernLogic/snap"
},
"bugs": {
"url": "https://github.com/ModernLogic/snap/issues"
},
"scripts": {
"build": "tsc && chmod +x ./dist/cli/index.js",
"lint": "eslint lib --ext .ts,.tsx",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"jsx": "react",
"module": "NodeNext",
/* Emit */
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
"outDir": "./dist/"
},
"include": ["lib"],
"exclude": ["node_modules", "dist"],
"exclude": ["node_modules", "dist"]
}

0 comments on commit b4b7b5c

Please sign in to comment.