Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: "12"
- name: Install svn
run: sudo apt-get install subversion
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
npm i
npm run prepare
npm run build
env:
CI: false
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: "12"
- name: Install svn
run: sudo apt-get install subversion
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
npm i
npm run prepare
npm run build
env:
CI: false
CI: false
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ node_modules
.env.production.local
.idea
package-json.lock
package-lock.json
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
yarn.lock

# Remote docs
src/content/Props
react-native-elements
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@
git clone https://github.com/react-native-elements/playground.git
cd playground
```

2. Install NPM packages
```sh
npm i
```
3. Run the development server
3. Prepare (File path is UNIX based, might not work with Windows. PR Appreciated)
```sh
npm run prepare
```
4. Run the development server
```sh
npm start
```
Expand Down
25 changes: 25 additions & 0 deletions injectLatestProps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const { exec } = require("child_process");
exec(
"git clone https://github.com/react-native-elements/react-native-elements --depth=1",
(err, stdout, stderr) => {
if (err) {
// node couldn't execute the command
return;
}

// the *entire* stdout and stderr (buffered)
console.log(`stdout: ${stdout}`);
console.log(`stderr: ${stderr}`);
}
);
exec("cp -r ./react-native-elements/website/docs/props ./src/content/Props"),
(err, stdout, stderr) => {
if (err) {
// node couldn't execute the command
return;
}

// the *entire* stdout and stderr (buffered)
console.log(`stdout: ${stdout}`);
console.log(`stderr: ${stderr}`);
};
Loading