Skip to content

Commit

Permalink
fix: Changes paths of index.js and styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo committed Aug 13, 2021
1 parent 291c892 commit 1bcb000
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 7 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ Used parameters are:

### 4. Initialize & options

#### For Framework7 Core version

```javascript
Framework7.use(F7WelcomescreenPlugin);

Expand All @@ -104,6 +106,34 @@ var app = new Framework7({
});
```

#### For Framework7 React version

app.js

```javascript
Framework7.use(F7WelcomescreenPlugin);
```

app.jsx

```javascript
var options = {
bgcolor: '#0da6ec',
fontcolor: '#fff',
};

const f7params = {
name: 'welcomescreen-demo',
theme: 'auto',
store: store,
routes: routes,
welcomescreen: {
slides: welcomescreen_slides,
options: options,
},
};
```

Available options (if not set, default will be used)

- **bgcolor** Set background color
Expand Down
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@babel/preset-env": "^7.15.0",
"babel-loader": "^8.2.2",
"css-loader": "^6.2.0",
"f7-welcomescreen": "^3.0.5",
"f7-welcomescreen": "^3.0.6",
"framework7": "^6.2.0",
"http-server": "^13.0.0",
"mini-css-extract-plugin": "^2.2.0",
Expand Down
6 changes: 3 additions & 3 deletions demo/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1947,9 +1947,9 @@ extglob@^2.0.4:
snapdragon "^0.8.1"
to-regex "^3.0.1"

f7-welcomescreen@^3.0.5:
version "3.0.5"
resolved "https://registry.yarnpkg.com/f7-welcomescreen/-/f7-welcomescreen-3.0.5.tgz#3dae869a1ff1872b273133b70ec6986d9e8577c0"
f7-welcomescreen@^3.0.6:
version "3.0.6"
resolved "https://registry.yarnpkg.com/f7-welcomescreen/-/f7-welcomescreen-3.0.6.tgz#3dae869a1ff1872b273133b70ec6986d9e8577c0"
integrity sha512-LjmEC537YhulDAlZEHuycZlRMSlPa5Ly/QHIBRuXENrY9njlFomTMMVL1Mp/iICbiclIClTViC5PARb9HfZh9Q==
dependencies:
css-minify "^2.0.0"
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "f7-welcomescreen",
"version": "3.0.5",
"version": "3.0.6",
"description": "This Framework7 plugin will guide the user through a tour of your app.",
"main": "src/index.js",
"main": "index.js",
"scripts": {
"clean": "rm -Rf dist",
"build": "yarn clean && mkdir dist && babel src --out-file dist/f7-welcomescreen.min.js && css-minify -f src/main.css -o dist && mv dist/main.min.css dist/f7-welcomescreen.min.css"
"build": "yarn clean && mkdir dist && babel index.js --out-file dist/f7-welcomescreen.min.js && css-minify -f styles.css -o dist && mv dist/styles.min.css dist/f7-welcomescreen.min.css"
},
"repository": {
"type": "git",
Expand Down
File renamed without changes.

0 comments on commit 1bcb000

Please sign in to comment.