Skip to content

Commit

Permalink
Merge pull request #47 from alvarotrigo/dev
Browse files Browse the repository at this point in the history
Merging dev branch
  • Loading branch information
alvarotrigo authored Oct 12, 2018
2 parents 6eae9e7 + e84b4bd commit ffad79e
Show file tree
Hide file tree
Showing 8 changed files with 8,805 additions and 33 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# react-fullpage

![preview](./assets/images/react-fullpage-logo.png)
![preview](https://raw.githubusercontent.com/alvarotrigo/react-fullpage/master/assets/images/react-fullpage-logo.png)

<p align="center">Official React wrapper for the <a target="_blank" href="https://github.com/alvarotrigo/fullPage.js/">fullpage.js library</a></p>

<p align="center">
<img src="https://img.shields.io/badge/react--fullpage-v0.1.0-brightgreen.svg" alt="react-fullpage version" />
<img src="https://img.shields.io/badge/react--fullpage-v0.1.2-brightgreen.svg" alt="react-fullpage version" />
</p>

- [Demo online](https://alvarotrigo.com/react-fullpage/) | [CodeSandbox](https://codesandbox.io/s/m34yq5q0qx)
Expand Down
8 changes: 0 additions & 8 deletions components/ReactFullpage/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
/*!
* react-fullpage 0.1.0
* https://github.com/alvarotrigo/react-fullpage
* @license https://github.com/alvarotrigo/react-fullpage#license
*
* Copyright (C) 2018 alvarotrigo.com - A project by Alvaro Trigo
*/

/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable react/prop-types */
import React from 'react';
Expand Down
13 changes: 13 additions & 0 deletions components/Utils/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const {
author,
name,
version
} = require('../../package.json')

exports.banner = `/*!
* ${name} ${version}
* https://github.com/alvarotrigo/react-fullpage
* @license https://github.com/alvarotrigo/react-fullpage#license
*
* Copyright (C) 2018 alvarotrigo.com - A project by Alvaro Trigo & Michael Walker
*/`
4,399 changes: 4,388 additions & 11 deletions dist/react-fullpage-commonjs.js

Large diffs are not rendered by default.

4,399 changes: 4,388 additions & 11 deletions dist/react-fullpage.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions example/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ module.exports = {
filename: 'main.js',
path: path.resolve(__dirname, 'dist'),
},

optimization: {
minimize: true,
},

module: {
rules: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fullpage/react-fullpage",
"version": "0.1.1",
"version": "0.1.2",
"description": "Official react wrapper for fullPage.js",
"author": "cmswalker",
"contributors": [
Expand Down
8 changes: 8 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const dirApp = path.join(__dirname, 'example', 'src');
const dirAssets = path.join(__dirname, 'assets');
const appHtmlTitle = name;

const { banner } = require('./components/Utils')

/**
* Webpack Configuration
*/
Expand All @@ -36,6 +38,12 @@ module.exports = {
template: path.join(__dirname, 'index.ejs'),
title: appHtmlTitle,
}),

new webpack.BannerPlugin({
banner: banner,
raw: true,
entryOnly: true
}),
],
module: {
rules: [
Expand Down

0 comments on commit ffad79e

Please sign in to comment.