1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

add oh-my-cdn & vendor script

This commit is contained in:
Rokt33r
2016-05-03 15:37:50 +09:00
parent 45c627b0a5
commit ea8e31561e
4 changed files with 17 additions and 34 deletions

View File

@@ -61,30 +61,6 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-electron-installer-debian')
}
grunt.registerTask('copy', function () {
var done = this.async()
var targetPaths = [
'node_modules/react/dist/react.min.js',
'node_modules/react-dom/dist/react-dom.min.js',
'node_modules/react-redux/dist/react-redux.min.js',
'node_modules/redux/dist/redux.min.js'
]
var merged = merge()
targetPaths.forEach(function (targetPath) {
var read = fs
.createReadStream(path.resolve(__dirname, targetPath))
var write = fs.createWriteStream(path.resolve(__dirname, 'compiled', path.basename(targetPath)))
read.pipe(write)
merged.add(read)
})
merged
.on('end', function () {
done()
})
})
grunt.registerTask('compile', function () {
var done = this.async()
var execPath = path.join('node_modules', '.bin', 'webpack') + ' --config webpack-production.config.js'