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"
|
"nuxt": "./bin/nuxt"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node -r esm ./build/build.js",
|
"build": "node -r esm ./packages/nuxt-pack/build.js",
|
||||||
"coverage": "codecov",
|
"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",
|
"postinstall": "opencollective || exit 0",
|
||||||
"test": "yarn test:fixtures && yarn test:unit",
|
"test": "yarn test:fixtures && yarn test:unit",
|
||||||
"test:fixtures": "jest test/fixtures",
|
"test:fixtures": "jest test/fixtures",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nuxt-legacy",
|
"name": "nuxt-legacy",
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"description": "Legacy build of Nuxt.js for Node.js < 8.0.0",
|
"description": "Legacy build of Nuxt.js for Node.js < 8.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://github.com/nuxt/nuxt.js#readme",
|
"homepage": "https://github.com/nuxt/nuxt.js#readme",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import babel from 'rollup-plugin-babel'
|
import babel from 'rollup-plugin-babel'
|
||||||
import config from '../../build/rollup.config'
|
import config from '../nuxt-pack/rollup.config'
|
||||||
|
|
||||||
export default config({
|
export default config({
|
||||||
rootDir: __dirname,
|
rootDir: __dirname,
|
||||||
|
@ -2,7 +2,7 @@ import path from 'path'
|
|||||||
import Package from './package'
|
import Package from './package'
|
||||||
|
|
||||||
// Commons
|
// Commons
|
||||||
const rootDir = path.resolve(__dirname, '..')
|
const rootDir = path.resolve(__dirname, '..', '..')
|
||||||
|
|
||||||
// Force NODE_ENV to production
|
// Force NODE_ENV to production
|
||||||
process.env.NODE_ENV = 'production'
|
process.env.NODE_ENV = 'production'
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nuxt-start",
|
"name": "nuxt-start",
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"description": "Starts Nuxt.js Application in production mode",
|
"description": "Starts Nuxt.js Application in production mode",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://github.com/nuxt/nuxt.js#readme",
|
"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({
|
export default config({
|
||||||
rootDir: __dirname
|
rootDir: __dirname
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import config from './build/rollup.config'
|
import config from './packages/nuxt-pack/rollup.config'
|
||||||
|
|
||||||
export default config({
|
export default config({
|
||||||
rootDir: __dirname,
|
rootDir: __dirname,
|
||||||
|
Loading…
Reference in New Issue
Block a user