Skip to content

Commit c67b906

Browse files
committed
Improve deploy process
1 parent 7da31ca commit c67b906

11 files changed

+7
-640
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010

1111
# files
1212
node_modules/
13-
example/dist
13+
example/dist/
14+
dist/

.npmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ CHANGELOG.md
1212

1313
// setting files
1414
.babelrc
15-
circle.yml
15+
.travis.yml

Makefile

+1-10
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ genStand:
2424
@rm -rf $(STANDALONE) && mkdir $(STANDALONE)
2525
@$(NODE_BIN)/browserify -t babelify -t browserify-shim $(SRC)/index.js --standalone ReactTooltip -o $(STANDALONE)/react-tooltip.js
2626
@$(NODE_BIN)/browserify -t babelify -t browserify-shim $(SRC)/index.js --standalone ReactTooltip | $(NODE_BIN)/uglifyjs > $(STANDALONE)/react-tooltip.min.js
27-
@cp $(DIST)/style.js $(STANDALONE)/style.js
2827

2928
devJS:
3029
@$(NODE_BIN)/watchify -t babelify $(EXAMPLE_SRC)/index.js -o $(EXAMPLE_DIST)/index.js -dv
@@ -46,20 +45,12 @@ dev:
4645

4746
deployJS:
4847
@echo Generating deploy JS files...
49-
@$(NODE_BIN)/babel $(SRC)/index.js -o $(DIST)/react-tooltip.js
50-
@$(NODE_BIN)/babel $(SRC)/style.js -o $(DIST)/style.js
51-
@$(NODE_BIN)/babel $(SRC)/index.js | $(NODE_BIN)/uglifyjs > $(DIST)/react-tooltip.min.js
52-
53-
deployCSS:
54-
@echo Generating deploy CSS files...
55-
@cp $(SRC)/index.scss $(DIST)/react-tooltip.scss
56-
@$(NODE_BIN)/node-sass --output-style compressed $(SRC)/index.scss $(DIST)/react-tooltip.min.css
48+
@$(NODE_BIN)/babel $(SRC) --out-dir $(DIST)
5749

5850
deploy: lint
5951
@echo Deploy...
6052
@rm -rf dist && mkdir dist
6153
@make convertCSS
62-
@make deployCSS
6354
@make deployJS
6455
@make genStand
6556
@echo success!

0 commit comments

Comments
 (0)