Skip to content

Commit

Permalink
fix: build process
Browse files Browse the repository at this point in the history
  • Loading branch information
deot committed Dec 27, 2019
1 parent f47b918 commit dabc3c0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dev": "npm run prompt && npm run all",
"serve": "node --max_old_space_size=8192 ./node_modules/webpack-dev-server/bin/webpack-dev-server --config ./config/webpack.config.dev.js --color --progress --hot",
"demo": "npm run remove:dist && cross-env UGLIFY_JS=true node --max_old_space_size=8192 ./node_modules/webpack/bin/webpack --config ./config/webpack.config.dist.js --color --progress",
"build": "npm run test && rm -rf ./lib && cross-env NODE_ENV=production babel src --out-dir lib --copy-files --ignore '**.test.js','**.md','examples/**'",
"build": "npm run test && rm -rf ./lib && cross-env NODE_ENV=production node sfc.js",
"pub": "bash config/publish.sh",
"remove:dist": "rm -rf ./dist",
"lint": "esw config ./src --ext .vue,.js --color",
Expand Down
4 changes: 4 additions & 0 deletions sfc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
console.log(`NODE_ENV : ${process.env.NODE_ENV}`);

const babel = require('@babel/core');
const { resolve, relative } = require('path');
const fs = require('fs-extra');
Expand Down Expand Up @@ -91,6 +93,8 @@ process.on('beforeExit', () => {
.map(i => `@import './${i}/index.css'`)
.join(';\n')
);

console.log('Build Success!!!');
});

files.forEach((filepath) => {
Expand Down
2 changes: 1 addition & 1 deletion src/notice/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './manager';
export { default } from './notice-manager';
2 changes: 1 addition & 1 deletion src/notice/index.m.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './notic-manager';
export { default } from './index';

0 comments on commit dabc3c0

Please sign in to comment.