Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

twreporter-react-footer-components

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twreporter-react-footer-components - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

test.json

3

CHANGELOG.md

@@ -0,1 +1,4 @@

### 1.0.6
- Enable to subscribe news letter
### 1.0.5

@@ -2,0 +5,0 @@ - Style tuning after designer review. Update the sns-icon.svg.

@@ -27,2 +27,26 @@ const gulp = require('gulp')

// This function will copy the transpiled files to
// the customer folder. You can specify the customer folder path
// by running gulp command like
// `CUSTOMER_FOLDER=/home/nick/codes/twreporter-react gulp run dev`,
// and those transpiled files will be copyed into
// `/home/nick/codes/twreporter-react/node_modules/twreporter-react-footer-components/lib`
function copyToCustomerFolder() {
let customerFolder = process.env.CUSTOMER_FOLDER
if (typeof customerFolder !== 'string') {
customerFolder = path.resolve(`${__dirname}/../../twreporter-react`)
}
const destFolder = `${customerFolder}/node_modules/twreporter-react-footer-components/lib`
clean(destFolder, (error) => {
if (error) {
console.error(error)
return
}
gulp
.src('./lib/**/*')
.pipe(gulp.dest(destFolder))
})
}
gulp.task(

@@ -64,3 +88,3 @@ 'clean-build',

gulp.task('dev', () => {
const watcher = gulp.watch(['../shared/**', 'src/**', 'static/**'], gulp.series('clean-build', 'build'))
const watcher = gulp.watch(['../shared/**', 'src/**', 'static/**'], gulp.series('clean-build', 'build', copyToCustomerFolder))
watcher.on('change', (filePath) => {

@@ -67,0 +91,0 @@ console.log(`File ${filePath} was changed, running tasks...`)

@@ -70,2 +70,10 @@ 'use strict';

}]
}, {
name: 'newsletter',
items: [{
slug: 'subcribe',
text: '訂閱電子報',
link: _configs.externalLinks.newsLetter,
target: '_blank'
}]
}];

3

lib/shared/configs.js

@@ -101,3 +101,4 @@ 'use strict';

instagram: 'https://www.instagram.com/twreporter/',
ccLicense: 'https://creativecommons.org/licenses/by-nc-nd/3.0/tw/'
ccLicense: 'https://creativecommons.org/licenses/by-nc-nd/3.0/tw/',
newsLetter: 'https://twreporter.us14.list-manage.com/subscribe/post?u=4da5a7d3b98dbc9fdad009e7e&id=e0eb0c8c32'
};
{
"name": "twreporter-react-footer-components",
"version": "1.0.5",
"version": "1.0.6",
"scripts": {

@@ -5,0 +5,0 @@ "build": "gulp build-package --color",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc