feat: move build to packages (#4031)

* feat: move build to packages

* fix: remove build in eslint

* refactor: rename nuxt-build to nuxt-pack
This commit is contained in:
Clark Du 2018-10-03 19:50:22 +01:00 committed by GitHub
parent 9c3d2df0b5
commit ea8c2a6505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 8 additions and 8 deletions

View File

@ -54,9 +54,9 @@
"nuxt": "./bin/nuxt"
},
"scripts": {
"build": "node -r esm ./build/build.js",
"build": "node -r esm ./packages/nuxt-pack/build.js",
"coverage": "codecov",
"lint": "eslint --ext .js,.mjs,.vue bin/** benchmarks build examples lib packages test",
"lint": "eslint --ext .js,.mjs,.vue bin/** benchmarks examples lib packages test",
"postinstall": "opencollective || exit 0",
"test": "yarn test:fixtures && yarn test:unit",
"test:fixtures": "jest test/fixtures",

View File

@ -1,6 +1,6 @@
{
"name": "nuxt-legacy",
"version": "2.0.0",
"version": "2.1.0",
"description": "Legacy build of Nuxt.js for Node.js < 8.0.0",
"license": "MIT",
"homepage": "https://github.com/nuxt/nuxt.js#readme",

View File

@ -1,5 +1,5 @@
import babel from 'rollup-plugin-babel'
import config from '../../build/rollup.config'
import config from '../nuxt-pack/rollup.config'
export default config({
rootDir: __dirname,

View File

@ -2,7 +2,7 @@ import path from 'path'
import Package from './package'
// Commons
const rootDir = path.resolve(__dirname, '..')
const rootDir = path.resolve(__dirname, '..', '..')
// Force NODE_ENV to production
process.env.NODE_ENV = 'production'

View File

@ -1,6 +1,6 @@
{
"name": "nuxt-start",
"version": "2.0.0",
"version": "2.1.0",
"description": "Starts Nuxt.js Application in production mode",
"license": "MIT",
"homepage": "https://github.com/nuxt/nuxt.js#readme",

View File

@ -1,4 +1,4 @@
import config from '../../build/rollup.config'
import config from '../nuxt-pack/rollup.config'
export default config({
rootDir: __dirname

View File

@ -1,4 +1,4 @@
import config from './build/rollup.config'
import config from './packages/nuxt-pack/rollup.config'
export default config({
rootDir: __dirname,