diff --git a/.npmignore b/.npmignore deleted file mode 100644 index bbd12ca..0000000 --- a/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -tests/** -sample/** diff --git a/bin/create-entry-file.js b/bin/create-entry-file.js index 6c58130..1a81d9d 100755 --- a/bin/create-entry-file.js +++ b/bin/create-entry-file.js @@ -7,11 +7,12 @@ 'use strict'; +const path = require( 'path' ); const { bundler } = require( '@ckeditor/ckeditor5-dev-utils' ); const buildConfig = require( '../build-config' ); console.log( 'Creating the entry file...' ); -bundler.createEntryFile( 'ckeditor.js', buildConfig ); +bundler.createEntryFile( path.join( 'src', 'ckeditor.js' ), buildConfig ); console.log( 'Done.' ); diff --git a/package.json b/package.json index e545b53..ead2a8c 100644 --- a/package.json +++ b/package.json @@ -10,21 +10,22 @@ "rich-text editor" ], "main": "./build/ckeditor.js", - "dependencies": { - "@ckeditor/ckeditor5-editor-classic": "^0.8.0", - "@ckeditor/ckeditor5-essentials": "^0.3.0", + "files": [ + "build" + ], + "devDependencies": { "@ckeditor/ckeditor5-autoformat": "^0.6.0", "@ckeditor/ckeditor5-basic-styles": "^0.9.0", "@ckeditor/ckeditor5-block-quote": "^0.2.0", + "@ckeditor/ckeditor5-dev-utils": "^4.0.0", + "@ckeditor/ckeditor5-dev-webpack-plugin": "^2.0.11", + "@ckeditor/ckeditor5-editor-classic": "^0.8.0", + "@ckeditor/ckeditor5-essentials": "^0.3.0", "@ckeditor/ckeditor5-heading": "^0.10.0", "@ckeditor/ckeditor5-image": "^0.7.0", "@ckeditor/ckeditor5-link": "^0.8.0", "@ckeditor/ckeditor5-list": "^0.7.0", - "@ckeditor/ckeditor5-paragraph": "^0.9.0" - }, - "devDependencies": { - "@ckeditor/ckeditor5-dev-utils": "^4.0.0", - "@ckeditor/ckeditor5-dev-webpack-plugin": "^2.0.11", + "@ckeditor/ckeditor5-paragraph": "^0.9.0", "babel-minify-webpack-plugin": "^0.2.0", "css-loader": "^0.28.5", "node-sass": "^4.5.3", @@ -50,6 +51,6 @@ "create-entry-file": "./bin/create-entry-file.js", "build-ckeditor": "./bin/build-ckeditor.sh", - "preversion": "npm run build; if [ -n \"$(git status ckeditor.js build/ --porcelain)\" ]; then git add -u ckeditor.js build/ && git commit -m 'Internal: Build.'; fi" + "preversion": "npm run build; if [ -n \"$(git status src/ckeditor.js build/ --porcelain)\" ]; then git add -u src/ckeditor.js build/ && git commit -m 'Internal: Build.'; fi" } } diff --git a/ckeditor.js b/src/ckeditor.js similarity index 100% rename from ckeditor.js rename to src/ckeditor.js diff --git a/webpack.config.js b/webpack.config.js index 061845a..d43441e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -17,7 +17,7 @@ const buildConfig = require( './build-config' ); module.exports = { devtool: 'source-map', - entry: path.resolve( __dirname, 'ckeditor.js' ), + entry: path.resolve( __dirname, 'src', 'ckeditor.js' ), output: { path: path.resolve( __dirname, 'build' ),