Slim down support libraries. Just enough to run tests.
This commit is contained in:
parent
ea29882fae
commit
52d8c44a22
34
.gitignore
vendored
34
.gitignore
vendored
@ -1,32 +1,2 @@
|
||||
# ---> Cloud9
|
||||
# Cloud9 IDE - http://c9.io
|
||||
.c9revisions
|
||||
.c9
|
||||
|
||||
# ---> Node
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
dist/
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# ---> SublimeText
|
||||
# workspace files are user-specific
|
||||
*.sublime-workspace
|
||||
|
||||
# project files should be checked into the repository, unless a significant
|
||||
# proportion of contributors will probably not be using SublimeText
|
||||
# *.sublime-project
|
||||
coverage
|
||||
node_modules
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
package.json
|
||||
package-lock.json
|
||||
|
||||
9216
package-lock.json
generated
9216
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
34
package.json
34
package.json
@ -2,19 +2,12 @@
|
||||
"name": "reactimal",
|
||||
"version": "1.0.0",
|
||||
"description": "Reactive programming primitives",
|
||||
"main": "dist/reactimal.js",
|
||||
"module": "dist/reactimal.mjs",
|
||||
"main": "src/index.js",
|
||||
"files": [
|
||||
"src"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "jasmine",
|
||||
"clean": "rimraf dist",
|
||||
"format_code": "nodejs node_modules/prettier/bin-prettier.js --config ./prettier.config.js --write \"{.,{src,spec,docs}/**}/*.{js,json,md}\"",
|
||||
"build:umd": "rollup -c rollup.config.js && uglifyjs -m --screw-ie8 -c -o dist/reactimal.min.js dist/reactimal.js",
|
||||
"build:umd:zip": "npm run build:umd && gzip -c9 dist/reactimal.min.js > dist/reactimal.min.js.gz && gzip -c9 dist/reactimal.min.mjs > dist/reactimal.min.mjs.gz",
|
||||
"build": "npm run build:umd:zip && ls -l dist/",
|
||||
"prepublish": "npm run clean && npm run build"
|
||||
"test": "karmatic"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -26,20 +19,13 @@
|
||||
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
|
||||
"license": "Apache-2.0",
|
||||
"devDependencies": {
|
||||
"jasmine": "^3.2.0",
|
||||
"jasmine-es6": "^0.4.3",
|
||||
"prettier": "^1.14.3",
|
||||
"babel-cli": "6.18.0",
|
||||
"babel-core": "6.21.0",
|
||||
"babel-eslint": "7.1.1",
|
||||
"babel-preset-es2015": "6.18.0",
|
||||
"babel-preset-es2015-rollup": "3.0.0",
|
||||
"babel-preset-stage-0": "6.16.0",
|
||||
"eslint": "3.2.0",
|
||||
"rimraf": "2.5.4",
|
||||
"rollup": "0.66.6",
|
||||
"rollup-plugin-babel": "2.7.1",
|
||||
"rollup-plugin-esmin": "0.1.3",
|
||||
"uglify-es": "3.3.9"
|
||||
"husky": "^3.0.1",
|
||||
"karmatic": "^1.3.1",
|
||||
"webpack": "^4.37.0"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "npm run test"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
module.exports = {
|
||||
printWidth: 100,
|
||||
tabWidth: 1,
|
||||
useTabs: true,
|
||||
singleQuote: true,
|
||||
trailingComma: 'none',
|
||||
bracketSpacing: true,
|
||||
semi: true,
|
||||
requirePragma: false,
|
||||
proseWrap: 'always',
|
||||
arrowParens: 'avoid'
|
||||
};
|
||||
@ -1,43 +0,0 @@
|
||||
import esmin from 'rollup-plugin-esmin';
|
||||
import babel from 'rollup-plugin-babel';
|
||||
import pkg from './package.json';
|
||||
|
||||
const config = {
|
||||
input: 'src/index.js',
|
||||
output: {
|
||||
file: pkg.module,
|
||||
format: 'es'
|
||||
}
|
||||
};
|
||||
|
||||
export default [
|
||||
// reactimal.mjs
|
||||
config,
|
||||
|
||||
// reactimal.min.mjs
|
||||
{
|
||||
...config,
|
||||
output: {
|
||||
...config.output,
|
||||
file: 'dist/reactimal.min.mjs'
|
||||
},
|
||||
plugins: [
|
||||
esmin({
|
||||
overrides: {
|
||||
sourceType: 'module'
|
||||
}
|
||||
})
|
||||
]
|
||||
},
|
||||
|
||||
// reactimal.js
|
||||
{
|
||||
...config,
|
||||
output: {
|
||||
format: 'umd',
|
||||
file: 'dist/reactimal.js',
|
||||
name: 'reactimal'
|
||||
},
|
||||
plugins: [babel({ sourceType: 'module' })]
|
||||
}
|
||||
];
|
||||
@ -1,7 +0,0 @@
|
||||
{
|
||||
"spec_dir": "spec",
|
||||
"spec_files": ["**/*[sS]pec.js"],
|
||||
"helpers": ["helpers/**/*.js"],
|
||||
"stopSpecOnExpectationFailure": false,
|
||||
"random": true
|
||||
}
|
||||
Reference in New Issue
Block a user