mirror of
https://github.com/nickzuber/meteorite.git
synced 2024-08-16 23:10:38 +03:00
Move script to build commit
This commit is contained in:
parent
3c1295eb01
commit
59750111db
@ -19,7 +19,10 @@ const paths = require('./paths');
|
||||
const getClientEnvironment = require('./env');
|
||||
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
|
||||
|
||||
const gitHash = readFileSync('./git-hash.txt').toString().trim();
|
||||
let gitHash = '';
|
||||
try {
|
||||
gitHash = readFileSync('./git-hash.txt').toString().trim();
|
||||
} catch (e) {}
|
||||
|
||||
// Webpack uses `publicPath` to determine where the app is being served from.
|
||||
// It requires a trailing slash, or the file assets will get an incorrect path.
|
||||
|
@ -76,10 +76,10 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node scripts/start.js",
|
||||
"build": "node scripts/build.js && cp build/index.html build/200.html",
|
||||
"build": "npm run before-build && node scripts/build.js && cp build/index.html build/200.html",
|
||||
"now-build": "npm run build",
|
||||
"test": "node scripts/test.js",
|
||||
"postcommit": "git rev-parse --short HEAD > git-hash.txt",
|
||||
"before-build": "git rev-parse --short HEAD > git-hash.txt",
|
||||
"deploy": "now --prod"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
Loading…
Reference in New Issue
Block a user