mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Rename compiled_app to target and add target in eslintignore
This commit is contained in:
parent
7874fa813a
commit
6a87ab4597
5 changed files with 9 additions and 8 deletions
|
|
@ -7,4 +7,5 @@ app/node_modules
|
||||||
assets
|
assets
|
||||||
website
|
website
|
||||||
bin
|
bin
|
||||||
dist
|
dist
|
||||||
|
target
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
# build output
|
# build output
|
||||||
dist
|
dist
|
||||||
app/renderer
|
app/renderer
|
||||||
compiled_app
|
target
|
||||||
bin/cli.*
|
bin/cli.*
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
"repository": "zeit/hyper",
|
"repository": "zeit/hyper",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "echo 'please run `yarn run dev` in one tab and then `yarn run app` in another one'",
|
"start": "echo 'please run `yarn run dev` in one tab and then `yarn run app` in another one'",
|
||||||
"app": "electron compiled_app",
|
"app": "electron target",
|
||||||
"dev": "webpack -w",
|
"dev": "webpack -w",
|
||||||
"build": "cross-env NODE_ENV=production webpack",
|
"build": "cross-env NODE_ENV=production webpack",
|
||||||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
"postinstall": "electron-builder install-app-deps && yarn run rebuild-node-pty",
|
"postinstall": "electron-builder install-app-deps && yarn run rebuild-node-pty",
|
||||||
"rebuild-node-pty": "electron-rebuild -f -w app/node_modules/node-pty -m app",
|
"rebuild-node-pty": "electron-rebuild -f -w app/node_modules/node-pty -m app",
|
||||||
"dist":
|
"dist":
|
||||||
"yarn run build && cross-env BABEL_ENV=production babel --out-file compiled_app/renderer/bundle.js --no-comments --minified compiled_app/renderer/bundle.js && build",
|
"yarn run build && cross-env BABEL_ENV=production babel --out-file target/renderer/bundle.js --no-comments --minified target/renderer/bundle.js && build",
|
||||||
"clean": "node ./bin/rimraf-standalone.js node_modules && node ./bin/rimraf-standalone.js ./app/node_modules && node ./bin/rimraf-standalone.js ./app/renderer"
|
"clean": "node ./bin/rimraf-standalone.js node_modules && node ./bin/rimraf-standalone.js ./app/node_modules && node ./bin/rimraf-standalone.js ./app/renderer"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
"lib": ["dom", "es2017"],
|
"lib": ["dom", "es2017"],
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"outDir": "./compiled_app/",
|
"outDir": "./target/",
|
||||||
"preserveConstEnums": true,
|
"preserveConstEnums": true,
|
||||||
"removeComments": false,
|
"removeComments": false,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ module.exports = [
|
||||||
},
|
},
|
||||||
entry: './app/index.js',
|
entry: './app/index.js',
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'compiled_app'),
|
path: path.join(__dirname, 'target'),
|
||||||
filename: 'ignore_this.js'
|
filename: 'ignore_this.js'
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
|
|
@ -58,7 +58,7 @@ module.exports = [
|
||||||
{
|
{
|
||||||
apply: compiler => {
|
apply: compiler => {
|
||||||
compiler.hooks.afterEmit.tap('AfterEmitPlugin', () => {
|
compiler.hooks.afterEmit.tap('AfterEmitPlugin', () => {
|
||||||
exec('cp -r ./app/node_modules ./compiled_app && tsc', (err, stdout, stderr) => {
|
exec('cp -r ./app/node_modules ./target && tsc', (err, stdout, stderr) => {
|
||||||
if (stdout) process.stdout.write(stdout);
|
if (stdout) process.stdout.write(stdout);
|
||||||
if (stderr) process.stderr.write(stderr);
|
if (stderr) process.stderr.write(stderr);
|
||||||
process.stdout.write('\nCompiled\n\n');
|
process.stdout.write('\nCompiled\n\n');
|
||||||
|
|
@ -80,7 +80,7 @@ module.exports = [
|
||||||
devtool: isProd ? 'hidden-source-map' : 'cheap-module-source-map',
|
devtool: isProd ? 'hidden-source-map' : 'cheap-module-source-map',
|
||||||
entry: './lib/index.js',
|
entry: './lib/index.js',
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'compiled_app', 'renderer'),
|
path: path.join(__dirname, 'target', 'renderer'),
|
||||||
filename: 'bundle.js'
|
filename: 'bundle.js'
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue