mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
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:
parent
9c3d2df0b5
commit
ea8c2a6505
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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,
|
||||
|
@ -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'
|
@ -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",
|
||||
|
@ -1,4 +1,4 @@
|
||||
import config from '../../build/rollup.config'
|
||||
import config from '../nuxt-pack/rollup.config'
|
||||
|
||||
export default config({
|
||||
rootDir: __dirname
|
||||
|
@ -1,4 +1,4 @@
|
||||
import config from './build/rollup.config'
|
||||
import config from './packages/nuxt-pack/rollup.config'
|
||||
|
||||
export default config({
|
||||
rootDir: __dirname,
|
||||
|
Loading…
Reference in New Issue
Block a user