Skip to content

Commit

Permalink
add pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
shrpne committed Apr 3, 2019
1 parent 380d5ef commit 8e227fa
Show file tree
Hide file tree
Showing 4 changed files with 261 additions and 14 deletions.
14 changes: 1 addition & 13 deletions nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
// const nodeExternals = require('webpack-node-externals');
// const dotenv = require('dotenv');
import dotenv from 'dotenv';

const envConfig = dotenv.config();

import langRu from './lang/ru';
import {BASE_TITLE, BASE_DESCRIPTION, I18N_ROUTE_NAME_SEPARATOR, LANGUAGE_COOKIE_KEY} from "./assets/variables";

module.exports = {
export default {
/*
** Headers of the page
*/
Expand Down Expand Up @@ -108,16 +106,6 @@ module.exports = {
// // exclude: /(node_modules)/,
// // });
// // }
// /*
// ** process some node_modules through webpack in server build
// */
// if (isServer) {
// config.externals = [
// nodeExternals({
// whitelist: [/^date-fns\/esm/, /^minterjs-util\/src/],
// }),
// ];
// }
// },
babel: {
presets: ['@nuxt/babel-preset-app'],
Expand Down
233 changes: 233 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minter-console-web",
"version": "1.0.0",
"version": "0.1.0",
"description": "Minter Console Website",
"author": "shrpne <[email protected]>",
"private": true,
Expand All @@ -17,6 +17,9 @@
"test": "gulp once && NODE_ENV=test jest --runInBand",
"test:debug": "DEBUG=true npm run test",
"test:debug:skip-build": "DEBUG=true NUXT_SKIP_SELF_BUILD=true npm run test",
"pkg": "npm run prod && npm run pkg:pkg && npm run pkg:zip",
"pkg:pkg": "pkg . --out-path=tmp/pkg",
"pkg:zip": "mkdir -p tmp/pkg-zip && cd tmp/pkg && find . -type f -exec zip -D '../pkg-zip/{}.zip' '{}' \\; && cd ../..",
"precommit": "echo 'Pre-commit checks...' && npm run lint"
},
"pre-commit": [
Expand Down Expand Up @@ -79,11 +82,22 @@
"jest": "^24.5.0",
"jest-environment-node": "^24.5.0",
"mkdirp": "^0.5.1",
"pkg": "^4.3.7",
"postcss-normalize": "^7.0.1",
"pre-commit": "^1.2.2",
"puppeteer": "^1.14.0",
"rimraf": "^2.6.3"
},
"bin": "pkg.js",
"pkg": {
"assets": [
"static",
"dist/**/*",
".nuxt/**/*",
"node_modules/@nuxtjs/youch/src/resources/**/*"
],
"scripts": []
},
"browserslist": [
"> 0.5%",
"last 2 versions",
Expand Down
Loading

0 comments on commit 8e227fa

Please sign in to comment.