twreporter-react-footer-components
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -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' | ||
}] | ||
}]; |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142065
16
846
3