mirror of
https://github.com/nickzuber/meteorite.git
synced 2024-09-11 11:36:03 +03:00
Attempt to add postcommit
This commit is contained in:
parent
14144a5a44
commit
3c1295eb01
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const {execSync} = require('child_process');
|
const {readFileSync} = require('fs');
|
||||||
const PnpWebpackPlugin = require('pnp-webpack-plugin');
|
const PnpWebpackPlugin = require('pnp-webpack-plugin');
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
const InlineChunkHtmlPlugin = require('react-dev-utils/InlineChunkHtmlPlugin');
|
const InlineChunkHtmlPlugin = require('react-dev-utils/InlineChunkHtmlPlugin');
|
||||||
@ -19,7 +19,7 @@ const paths = require('./paths');
|
|||||||
const getClientEnvironment = require('./env');
|
const getClientEnvironment = require('./env');
|
||||||
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
|
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
|
||||||
|
|
||||||
const gitHash = execSync('git rev-parse --short HEAD').toString().trim();
|
const gitHash = readFileSync('./git-hash.txt').toString().trim();
|
||||||
|
|
||||||
// Webpack uses `publicPath` to determine where the app is being served from.
|
// 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.
|
// It requires a trailing slash, or the file assets will get an incorrect path.
|
||||||
|
@ -79,6 +79,7 @@
|
|||||||
"build": "node scripts/build.js && cp build/index.html build/200.html",
|
"build": "node scripts/build.js && cp build/index.html build/200.html",
|
||||||
"now-build": "npm run build",
|
"now-build": "npm run build",
|
||||||
"test": "node scripts/test.js",
|
"test": "node scripts/test.js",
|
||||||
|
"postcommit": "git rev-parse --short HEAD > git-hash.txt",
|
||||||
"deploy": "now --prod"
|
"deploy": "now --prod"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
|
Loading…
Reference in New Issue
Block a user