diff --git a/nuxt.config.js b/nuxt.config.js deleted file mode 100644 index 5e978d8..0000000 --- a/nuxt.config.js +++ /dev/null @@ -1,6 +0,0 @@ -import config from '@rancher/shell/nuxt.config'; - -export default config(__dirname, { - excludes: [], - autoImport: [] -}); diff --git a/package.json b/package.json index 063f5ca..8928bbd 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,8 @@ "js-yaml": "4.1.0" }, "scripts": { - "dev": "./node_modules/.bin/nuxt dev", - "nuxt": "./node_modules/.bin/nuxt", - "build": "./node_modules/.bin/nuxt build", + "dev": "NODE_ENV=dev ./node_modules/.bin/vue-cli-service serve", + "build": "./node_modules/.bin/vue-cli-service build", "build-pkg": "./node_modules/@rancher/shell/scripts/build-pkg.sh", "serve-pkgs": "./node_modules/@rancher/shell/scripts/serve-pkgs" } diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..5b55ecf --- /dev/null +++ b/vue.config.js @@ -0,0 +1,10 @@ +/** + * This file is here purely to support using the typescript version of the vue config vue.config.ts. + */ +require('ts-node').register({ + project: './tsconfig.json', + compilerOptions: { module: 'commonjs' }, + logError: true +}); + +module.exports = require('./vue.config.ts').default; diff --git a/vue.config.ts b/vue.config.ts new file mode 100644 index 0000000..52938bd --- /dev/null +++ b/vue.config.ts @@ -0,0 +1,7 @@ +import config from '@rancher/shell/vue.config'; + +export default config(__dirname, { + excludes: [], + // excludes: ['fleet', 'example'] + // autoLoad: ['fleet', 'example'] +});