Skip to content

Commit

Permalink
updated deployer code
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed Dec 23, 2018
1 parent b0da7e0 commit 6045b77
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ examples
logos
node_modules
src
test
webpack
build
output

#build tools
.travis.yml
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"test:dev": "karma start test/karma/karma.config.dev.js",
"test:prod": "karma start test/karma/karma.config.prod.js",
"build:dev": "npm run lint && npm run webpack:dev && npm run test:dev",
"build:prod": "npm run webpack:prod && node build_helper.js && npm run test:prod",
"build:prod": "npm run webpack:prod && node src/ie_build_helper.js && npm run test:prod",
"build:all": "npm run build:dev && npm run build:prod",
"test:sauce": "karma start test/karma/karma.config.saucelab.js",
"build:ci": "npm run build:all",
"postbuild:ci": "npm run test:sauce",
"webpack:dev": "webpack --config webpack/webpack.dev.config.js",
"webpack:prod": "webpack --config webpack/webpack.prod.config.js",
"move:deploy_file": "node src/deploy_helper.js",
"move:deploy_file": "node src/deployer.js",
"deploy": "npm run build:all && npm run move:deploy_file",
"postinstall": "opencollective postinstall"
},
Expand Down
8 changes: 4 additions & 4 deletions build_helper.js → src/ie_build_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ function uglify(srcPath, distPath) {

//concate files
concat({
src: ['src/output/jsstore.worker.min.js',
src: ['build/jsstore.worker.min.js',
'node_modules/promise-polyfill/dist/polyfill.min.js',
'src/codes/ie_polyfill/find_index.js',
'src/codes/ie_polyfill/find.js'
'src/ie_polyfill/find_index.js',
'src/ie_polyfill/find.js'
],
dest: 'src/output/jsstore.worker.ie.min.js'
dest: 'build/jsstore.worker.ie.min.js'
})

//uglify('src/output/jsstore.worker.ie.min.js', 'src/output/jsstore.worker.ie.min.js')

0 comments on commit 6045b77

Please sign in to comment.