Skip to content

Commit

Permalink
add npm run clean
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed May 1, 2018
1 parent a3cf95d commit 57923c5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
8 changes: 5 additions & 3 deletions build-config/fragments/common.js
Expand Up @@ -18,12 +18,11 @@ var bannerPlugin = new webpack.BannerPlugin(
@copyright 2014-${time} ${pckg.author}
@license ${pckg.license}`
);

// inject version number
var replaceVersionPlugin = new webpack.DefinePlugin({
'__VERSION__': JSON.stringify(pckg.version)
});
var rootDir = path.resolve(__dirname, '..', '..');
let rootDir = path.resolve(__dirname, '..', '..');

module.exports = {
context: rootDir,
Expand Down Expand Up @@ -54,5 +53,8 @@ module.exports = {
}
]
},
plugins: [bannerPlugin, replaceVersionPlugin]
plugins: [
bannerPlugin,
replaceVersionPlugin
]
};
13 changes: 0 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Expand Up @@ -21,7 +21,8 @@
"url": "https://github.com/collab-project/videojs-record.git"
},
"scripts": {
"build": "npm run build:dev && npm run build:min && npm run build:language && npm run build:css",
"clean": "rimraf dist docs",
"build": "npm run clean && npm run build:dev && npm run build:min && npm run build:language && npm run build:css",
"build:main": "webpack --config ./build-config/webpack.dev.main.js",
"build:main:min": "webpack --config ./build-config/webpack.prod.main.js",
"build:plugins": "webpack --config ./build-config/webpack.dev.plugins.js",
Expand All @@ -40,7 +41,7 @@
"lint:js": "jscs --config .jscsrc src/js",
"lint:json": "jsonlint-cli src/lang/*.json font/*.json",
"lint:html": "htmlhint examples",
"start": "npm run build:main && npm run build:plugins && npm run build:css && webpack-dev-server --config ./build-config/webpack.dev.main.js",
"start": "npm run build && webpack-dev-server --config ./build-config/webpack.dev.main.js",
"test": "karma start karma.conf.js",
"prepublish": "not-in-install && npm run build || in-install"
},
Expand Down Expand Up @@ -109,6 +110,7 @@
"npm-run-all": "^4.1.2",
"opus-recorder": ">=4.0.0",
"recorderjs": "git+https://github.com/mattdiamond/Recorderjs.git",
"rimraf": "^2.6.2",
"sinon": "^5.0.2",
"uglifyjs-webpack-plugin": "^1.2.5",
"videojs-languages": "^1.0.0",
Expand Down

0 comments on commit 57923c5

Please sign in to comment.