Permalink
Browse files

copyright year updated on production build

  • Loading branch information...
scriptPilot committed Jan 24, 2017
1 parent fbdb58d commit 1873485ca52abb0f2c82b6a39af319c18ce7d172
Showing with 12 additions and 3 deletions.
  1. +1 −1 LICENSE
  2. +8 −0 build/webpack.prod.conf.js
  3. +1 −1 demo-app/package.json
  4. +2 −1 package.json
View
@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2016 scriptPilot
Copyright (c) 2017 scriptPilot
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -14,6 +14,14 @@ var AppCachePlugin = require('appcache-webpack-plugin')
var FaviconsWebpackPlugin = require('favicons-webpack-plugin')
var env = config.build.env
// Update copyright year in license
var replace = require('replace-in-file')
replace.sync({
files: path.resolve(__dirname, '../LICENSE'),
replace: /Copyright \(c\) ([0-9]{4}) scriptPilot/,
with: 'Copyright (c) ' + (new Date()).getFullYear() + ' scriptPilot'
})
// Update app-framework version in demo app package.json
var isThere = require('is-there')
if (!isThere('../../package.json')) {
View
@@ -2,7 +2,7 @@
"name": "demo-app",
"version": "0.1.0",
"devDependencies": {
"app-framework": "^0.30.2"
"app-framework": "^0.30.3"
},
"scripts": {
"dev": "cd node_modules/app-framework && node build/dev-server.js",
View
@@ -2,7 +2,7 @@
"name": "app-framework",
"description": "Powerful framework to build beautiful iOS and Material like web applications with joy.",
"repository": "https://github.com/scriptPilot/app-framework.git",
"version": "0.30.2",
"version": "0.30.3",
"license": "MIT",
"scripts": {
"postinstall": "node postinstall.js",
@@ -44,6 +44,7 @@
"jsonfile": "^2.4.0",
"opn": "^4.0.2",
"ora": "^0.3.0",
"replace-in-file": "^2.1.0",
"semver": "^5.3.0",
"shelljs": "^0.7.4",
"standard": "^8.6.0",

0 comments on commit 1873485

Please sign in to comment.