This repository was archived by the owner on Feb 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +49
-1
lines changed
Expand file tree Collapse file tree 2 files changed +49
-1
lines changed Original file line number Diff line number Diff line change 1+ import * as path from 'path'
2+ import * as webpack from 'webpack'
3+ const tslintConfig = require ( '../../tslint.json' )
4+
5+ module . exports = {
6+
7+ entry : {
8+ 'back-loader' : [ path . resolve ( __dirname , '../../src/index.ts' ) ] ,
9+ } ,
10+
11+ output : {
12+ path : path . resolve ( __dirname , '../../release' ) ,
13+ filename : '[name].js' ,
14+ } ,
15+
16+ resolve : {
17+ extensions : [ '.ts' , '.js' ] ,
18+ } ,
19+
20+ module : {
21+ rules : [
22+ {
23+ test : / \. t s / ,
24+ enforce : 'pre' ,
25+ exclude : / n o d e _ m o d u l e s / ,
26+ loader : 'tslint-loader' ,
27+ options : {
28+ configuration : tslintConfig ,
29+ } ,
30+ } ,
31+ {
32+ test : / \. t s $ / ,
33+ loaders : [
34+ {
35+ loader : 'awesome-typescript-loader' ,
36+ options : { configFileName : path . resolve ( __dirname , '../../tsconfig.json' ) } ,
37+ } ,
38+ ] ,
39+ } ,
40+ ] ,
41+
42+ exprContextCritical : false ,
43+ } ,
44+
45+ plugins : [
46+ new webpack . NoEmitOnErrorsPlugin ( ) ,
47+ ] ,
48+ }
Original file line number Diff line number Diff line change 66 "scripts" : {
77 "ex" : " tsc ./build/webpack.dev.ts && env DEBUG=true webpack-dev-server --config build/webpack.dev.js --inline --progress --port 1338 && npm run tsc:clean" ,
88 "ex:build" : " tsc ./build/webpack.prod.ts && rm -rf dist && webpack --config build/webpack.prod.js && npm run tsc:clean" ,
9- "release" : " tsc ./build/release /webpack.prod.ts && rm -rf release && webpack --config build/release/webpack.prod.js && npm run tsc:clean" ,
9+ "release" : " tsc ./build/main /webpack.prod.ts && rm -rf release && webpack --config build/release/webpack.prod.js && npm run tsc:clean" ,
1010 "tsc:clean" : " find build -name '*.js' | xargs rm -f " ,
1111 "clearup" : " rm -rf dist & rm -rf release" ,
1212 "commit" : " node_modules/commitizen/bin/commitizen init cz-conventional-changelog --save --save-exact" ,
You can’t perform that action at this time.
0 commit comments